Fix some warnings relating to fields being unused.
This commit is contained in:
@@ -19,7 +19,6 @@ namespace Content.Client.GameTicking.Managers
|
|||||||
public class ClientGameTicker : SharedGameTicker
|
public class ClientGameTicker : SharedGameTicker
|
||||||
{
|
{
|
||||||
[Dependency] private readonly IStateManager _stateManager = default!;
|
[Dependency] private readonly IStateManager _stateManager = default!;
|
||||||
[Dependency] private readonly IClientNetManager _netManager = default!;
|
|
||||||
|
|
||||||
[ViewVariables] private bool _initialized;
|
[ViewVariables] private bool _initialized;
|
||||||
private readonly List<string> _jobsAvailable = new();
|
private readonly List<string> _jobsAvailable = new();
|
||||||
|
|||||||
@@ -25,11 +25,9 @@ namespace Content.Client.Inventory
|
|||||||
[UsedImplicitly]
|
[UsedImplicitly]
|
||||||
public class HumanInventoryInterfaceController : InventoryInterfaceController
|
public class HumanInventoryInterfaceController : InventoryInterfaceController
|
||||||
{
|
{
|
||||||
[Dependency] private readonly IResourceCache _resourceCache = default!;
|
|
||||||
[Dependency] private readonly IGameHud _gameHud = default!;
|
[Dependency] private readonly IGameHud _gameHud = default!;
|
||||||
[Dependency] private readonly IItemSlotManager _itemSlotManager = default!;
|
[Dependency] private readonly IItemSlotManager _itemSlotManager = default!;
|
||||||
[Dependency] private readonly INetConfigurationManager _configManager = default!;
|
[Dependency] private readonly INetConfigurationManager _configManager = default!;
|
||||||
[Dependency] private readonly IPrototypeManager _prototypeManager = default!;
|
|
||||||
|
|
||||||
private readonly Dictionary<Slots, List<ItemSlotButton>> _inventoryButtons
|
private readonly Dictionary<Slots, List<ItemSlotButton>> _inventoryButtons
|
||||||
= new();
|
= new();
|
||||||
@@ -283,7 +281,6 @@ namespace Content.Client.Inventory
|
|||||||
private const int RightSeparation = 2;
|
private const int RightSeparation = 2;
|
||||||
|
|
||||||
public IReadOnlyDictionary<Slots, ItemSlotButton> Buttons { get; }
|
public IReadOnlyDictionary<Slots, ItemSlotButton> Buttons { get; }
|
||||||
[Dependency] private readonly IGameHud _gameHud = default!;
|
|
||||||
|
|
||||||
public HumanInventoryWindow(IGameHud gameHud)
|
public HumanInventoryWindow(IGameHud gameHud)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -24,14 +24,10 @@ namespace Content.Client.Items.Managers
|
|||||||
{
|
{
|
||||||
public class ItemSlotManager : IItemSlotManager
|
public class ItemSlotManager : IItemSlotManager
|
||||||
{
|
{
|
||||||
[Dependency] private readonly IPlayerManager _playerManager = default!;
|
|
||||||
[Dependency] private readonly IGameTiming _gameTiming = default!;
|
[Dependency] private readonly IGameTiming _gameTiming = default!;
|
||||||
[Dependency] private readonly IInputManager _inputManager = default!;
|
|
||||||
[Dependency] private readonly IEntitySystemManager _entitySystemManager = default!;
|
[Dependency] private readonly IEntitySystemManager _entitySystemManager = default!;
|
||||||
[Dependency] private readonly IUserInterfaceManager _uiMgr = default!;
|
[Dependency] private readonly IUserInterfaceManager _uiMgr = default!;
|
||||||
[Dependency] private readonly IEntityManager _entityManager = default!;
|
[Dependency] private readonly IEntityManager _entityManager = default!;
|
||||||
[Dependency] private readonly IEyeManager _eyeManager = default!;
|
|
||||||
[Dependency] private readonly IMapManager _mapManager = default!;
|
|
||||||
[Dependency] private readonly IComponentManager _componentManager = default!;
|
[Dependency] private readonly IComponentManager _componentManager = default!;
|
||||||
|
|
||||||
private readonly HashSet<EntityUid> _highlightEntities = new();
|
private readonly HashSet<EntityUid> _highlightEntities = new();
|
||||||
|
|||||||
@@ -11,8 +11,6 @@ namespace Content.Client.Parallax
|
|||||||
public class ParallaxOverlay : Overlay
|
public class ParallaxOverlay : Overlay
|
||||||
{
|
{
|
||||||
[Dependency] private readonly IParallaxManager _parallaxManager = default!;
|
[Dependency] private readonly IParallaxManager _parallaxManager = default!;
|
||||||
[Dependency] private readonly IEyeManager _eyeManager = default!;
|
|
||||||
[Dependency] private readonly IClyde _displayManager = default!;
|
|
||||||
[Dependency] private readonly IPrototypeManager _prototypeManager = default!;
|
[Dependency] private readonly IPrototypeManager _prototypeManager = default!;
|
||||||
|
|
||||||
private const float Slowness = 0.5f;
|
private const float Slowness = 0.5f;
|
||||||
|
|||||||
@@ -28,9 +28,6 @@ namespace Content.Client.Viewport
|
|||||||
[Dependency] private readonly IInputManager _inputManager = default!;
|
[Dependency] private readonly IInputManager _inputManager = default!;
|
||||||
[Dependency] private readonly IChatManager _chatManager = default!;
|
[Dependency] private readonly IChatManager _chatManager = default!;
|
||||||
[Dependency] private readonly IVoteManager _voteManager = default!;
|
[Dependency] private readonly IVoteManager _voteManager = default!;
|
||||||
[Dependency] private readonly IConfigurationManager _configurationManager = default!;
|
|
||||||
[Dependency] private readonly IClientAdminManager _adminManager = default!;
|
|
||||||
[Dependency] private readonly IClyde _clyde = default!;
|
|
||||||
[Dependency] private readonly IEyeManager _eyeManager = default!;
|
[Dependency] private readonly IEyeManager _eyeManager = default!;
|
||||||
|
|
||||||
[ViewVariables] private ChatBox? _gameChat;
|
[ViewVariables] private ChatBox? _gameChat;
|
||||||
|
|||||||
@@ -20,7 +20,6 @@ namespace Content.Server.Actions
|
|||||||
[ComponentReference(typeof(SharedActionsComponent))]
|
[ComponentReference(typeof(SharedActionsComponent))]
|
||||||
public sealed class ServerActionsComponent : SharedActionsComponent
|
public sealed class ServerActionsComponent : SharedActionsComponent
|
||||||
{
|
{
|
||||||
[Dependency] private readonly IServerEntityManager _entityManager = default!;
|
|
||||||
[Dependency] private readonly IServerGameStateManager _stateManager = default!;
|
[Dependency] private readonly IServerGameStateManager _stateManager = default!;
|
||||||
|
|
||||||
public override void HandleNetworkMessage(ComponentMessage message, INetChannel netChannel, ICommonSession? session = null)
|
public override void HandleNetworkMessage(ComponentMessage message, INetChannel netChannel, ICommonSession? session = null)
|
||||||
|
|||||||
@@ -17,7 +17,6 @@ namespace Content.Server.Atmos.EntitySystems
|
|||||||
[UsedImplicitly]
|
[UsedImplicitly]
|
||||||
public sealed class AtmosDebugOverlaySystem : SharedAtmosDebugOverlaySystem
|
public sealed class AtmosDebugOverlaySystem : SharedAtmosDebugOverlaySystem
|
||||||
{
|
{
|
||||||
[Dependency] private readonly IGameTiming _gameTiming = default!;
|
|
||||||
[Dependency] private readonly IPlayerManager _playerManager = default!;
|
[Dependency] private readonly IPlayerManager _playerManager = default!;
|
||||||
[Dependency] private readonly IMapManager _mapManager = default!;
|
[Dependency] private readonly IMapManager _mapManager = default!;
|
||||||
[Dependency] private readonly IConfigurationManager _configManager = default!;
|
[Dependency] private readonly IConfigurationManager _configManager = default!;
|
||||||
|
|||||||
@@ -84,7 +84,6 @@ namespace Content.Server.GameTicking
|
|||||||
[Dependency] private readonly IServerPreferencesManager _prefsManager = default!;
|
[Dependency] private readonly IServerPreferencesManager _prefsManager = default!;
|
||||||
[Dependency] private readonly IBaseServer _baseServer = default!;
|
[Dependency] private readonly IBaseServer _baseServer = default!;
|
||||||
[Dependency] private readonly IWatchdogApi _watchdogApi = default!;
|
[Dependency] private readonly IWatchdogApi _watchdogApi = default!;
|
||||||
[Dependency] private readonly IEntitySystemManager _entitySystemManager = default!;
|
|
||||||
[Dependency] private readonly IReflectionManager _reflectionManager = default!;
|
[Dependency] private readonly IReflectionManager _reflectionManager = default!;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -23,7 +23,6 @@ namespace Content.Server.MachineLinking.System
|
|||||||
{
|
{
|
||||||
public class SignalLinkerSystem : EntitySystem
|
public class SignalLinkerSystem : EntitySystem
|
||||||
{
|
{
|
||||||
[Dependency] private IComponentManager _componentManager = default!;
|
|
||||||
private InteractionSystem _interaction = default!;
|
private InteractionSystem _interaction = default!;
|
||||||
|
|
||||||
private SignalLinkCollection _linkCollection = new();
|
private SignalLinkCollection _linkCollection = new();
|
||||||
|
|||||||
@@ -33,12 +33,8 @@ namespace Content.Server.Physics.Controllers
|
|||||||
{
|
{
|
||||||
public class MoverController : SharedMoverController
|
public class MoverController : SharedMoverController
|
||||||
{
|
{
|
||||||
[Dependency] private readonly IPrototypeManager _prototypeManager = default!;
|
|
||||||
[Dependency] private readonly ITileDefinitionManager _tileDefinitionManager = default!;
|
[Dependency] private readonly ITileDefinitionManager _tileDefinitionManager = default!;
|
||||||
[Dependency] private readonly IMapManager _mapManager = default!;
|
[Dependency] private readonly IMapManager _mapManager = default!;
|
||||||
[Dependency] private readonly IRobustRandom _robustRandom = default!;
|
|
||||||
|
|
||||||
private AudioSystem _audioSystem = default!;
|
|
||||||
|
|
||||||
private const float StepSoundMoveDistanceRunning = 2;
|
private const float StepSoundMoveDistanceRunning = 2;
|
||||||
private const float StepSoundMoveDistanceWalking = 1.5f;
|
private const float StepSoundMoveDistanceWalking = 1.5f;
|
||||||
@@ -50,7 +46,6 @@ namespace Content.Server.Physics.Controllers
|
|||||||
public override void Initialize()
|
public override void Initialize()
|
||||||
{
|
{
|
||||||
base.Initialize();
|
base.Initialize();
|
||||||
_audioSystem = EntitySystem.Get<AudioSystem>();
|
|
||||||
|
|
||||||
var configManager = IoCManager.Resolve<IConfigurationManager>();
|
var configManager = IoCManager.Resolve<IConfigurationManager>();
|
||||||
configManager.OnValueChanged(CCVars.ShuttleDockSpeedCap, value => _shuttleDockSpeedCap = value, true);
|
configManager.OnValueChanged(CCVars.ShuttleDockSpeedCap, value => _shuttleDockSpeedCap = value, true);
|
||||||
|
|||||||
@@ -23,7 +23,6 @@ namespace Content.Server.Research.Components
|
|||||||
public class ResearchConsoleComponent : SharedResearchConsoleComponent, IActivate
|
public class ResearchConsoleComponent : SharedResearchConsoleComponent, IActivate
|
||||||
{
|
{
|
||||||
[Dependency] private readonly IPrototypeManager _prototypeManager = default!;
|
[Dependency] private readonly IPrototypeManager _prototypeManager = default!;
|
||||||
[Dependency] private readonly IRobustRandom _random = default!;
|
|
||||||
|
|
||||||
[DataField("sound")]
|
[DataField("sound")]
|
||||||
private SoundSpecifier _soundCollectionName = new SoundCollectionSpecifier("keyboard");
|
private SoundSpecifier _soundCollectionName = new SoundCollectionSpecifier("keyboard");
|
||||||
|
|||||||
Submodule RobustToolbox updated: 3142dcbfda...ac21e24f33
Reference in New Issue
Block a user