From 2dc05b22751c1b09e666710e06fb238fd2bfd09d Mon Sep 17 00:00:00 2001 From: DrSmugleaf Date: Tue, 8 Dec 2020 11:56:10 +0100 Subject: [PATCH] Add UsedImplicitly to visualizers and entity systems (#2592) --- .../Components/Atmos/GasAnalyzerVisualizer.cs | 2 ++ .../Components/CloningPod/CloningPodVisualizer.cs | 2 ++ .../GameObjects/Components/ComputerVisualizer.cs | 2 ++ .../Components/Crayon/CrayonDecalVisualizer.cs | 2 ++ .../Components/ExtinguisherCabinetVisualizer.cs | 2 ++ .../GameObjects/Components/Fluids/SprayVisualizer.cs | 2 ++ .../Components/Gravity/GravityGeneratorVisualizer.cs | 2 ++ .../Kitchen/MicrowaveBoundUserInterface.cs | 4 +++- .../Components/Kitchen/MicrowaveVisualizer.cs | 2 ++ .../Components/LightBehaviourComponent.cs | 7 ++++++- .../MedicalScanner/MedicalScannerVisualizer.cs | 2 ++ .../Components/Morgue/BodyBagVisualizer.cs | 2 ++ .../Components/Morgue/CrematoriumVisualizer.cs | 4 +++- .../Components/PDA/PDABoundUserInterface.cs | 2 ++ .../Components/Paper/PaperBoundUserInterface.cs | 2 ++ .../Components/ParticleAcceleratorPartVisualizer.cs | 12 +++--------- .../Power/AME/AMEControllerBoundUserInterface.cs | 5 ++++- .../Components/Power/AME/AMEControllerVisualizer.cs | 4 +++- .../Components/Power/AME/AMEVisualizer.cs | 4 +++- .../Components/Power/ApcBoundUserInterface.cs | 2 ++ .../GameObjects/Components/Power/ApcVisualizer.cs | 2 ++ .../Components/Power/AutolatheVisualizer.cs | 2 ++ .../Components/Power/PowerCellVisualizer.cs | 2 ++ .../Components/Power/ProtolatheVisualizer.cs | 2 ++ .../GameObjects/Components/Power/SmesVisualizer.cs | 2 ++ .../Power/SolarControlConsoleBoundUserInterface.cs | 2 ++ .../Components/RadiationCollectorVisualizer.cs | 5 ++--- .../Singularity/ContainmentFieldComponent.cs | 2 ++ .../Components/Singularity/EmitterVisualizer.cs | 2 ++ .../Components/Storage/StorageVisualizer.cs | 2 ++ .../Components/Trigger/TimerTriggerVisualizer.cs | 2 ++ .../GameObjects/EntitySystems/AlertsSystem.cs | 2 ++ .../GameObjects/EntitySystems/CameraRecoilSystem.cs | 2 ++ .../EntitySystems/CharacterInterfaceSystem.cs | 2 ++ .../EntitySystems/ClientInventorySystem.cs | 2 ++ .../GameObjects/EntitySystems/ClientNotifySystem.cs | 7 ------- .../GameObjects/EntitySystems/RangedWeaponSystem.cs | 2 ++ .../GameObjects/Components/Stack/StackComponent.cs | 6 ------ .../TimerTrigger/OnUseTimerTriggerComponent.cs | 5 ----- .../EntitySystems/AntimatterEngineSystem.cs | 5 ----- .../GameObjects/EntitySystems/Click/ExamineSystem.cs | 2 ++ .../GameObjects/EntitySystems/DeviceNetworkSystem.cs | 4 +++- .../EntitySystems/ExpendableLightSystem.cs | 5 +++-- .../GameObjects/EntitySystems/GasAnalyzerSystem.cs | 2 ++ .../GameObjects/EntitySystems/NodeGroupSystem.cs | 2 ++ .../GameObjects/EntitySystems/PowerNetSystem.cs | 2 ++ .../GameObjects/EntitySystems/SingularitySystem.cs | 3 +++ .../GameObjects/EntitySystems/VaporSystem.cs | 3 ++- 48 files changed, 102 insertions(+), 45 deletions(-) delete mode 100644 Content.Client/GameObjects/EntitySystems/ClientNotifySystem.cs diff --git a/Content.Client/GameObjects/Components/Atmos/GasAnalyzerVisualizer.cs b/Content.Client/GameObjects/Components/Atmos/GasAnalyzerVisualizer.cs index 1557891e68..b569bd160a 100644 --- a/Content.Client/GameObjects/Components/Atmos/GasAnalyzerVisualizer.cs +++ b/Content.Client/GameObjects/Components/Atmos/GasAnalyzerVisualizer.cs @@ -1,4 +1,5 @@ using Content.Shared.GameObjects.Components.Atmos; +using JetBrains.Annotations; using Robust.Client.GameObjects; using Robust.Client.Interfaces.GameObjects.Components; using Robust.Shared.Utility; @@ -6,6 +7,7 @@ using YamlDotNet.RepresentationModel; namespace Content.Client.GameObjects.Components.Atmos { + [UsedImplicitly] public class GasAnalyzerVisualizer : AppearanceVisualizer { private string _stateOff; diff --git a/Content.Client/GameObjects/Components/CloningPod/CloningPodVisualizer.cs b/Content.Client/GameObjects/Components/CloningPod/CloningPodVisualizer.cs index e549594173..2c7dfd1484 100644 --- a/Content.Client/GameObjects/Components/CloningPod/CloningPodVisualizer.cs +++ b/Content.Client/GameObjects/Components/CloningPod/CloningPodVisualizer.cs @@ -1,4 +1,5 @@ using System; +using JetBrains.Annotations; using Robust.Client.GameObjects; using Robust.Client.Interfaces.GameObjects.Components; using static Content.Shared.GameObjects.Components.Medical.SharedCloningPodComponent; @@ -6,6 +7,7 @@ using static Content.Shared.GameObjects.Components.Medical.SharedCloningPodCompo namespace Content.Client.GameObjects.Components.CloningPod { + [UsedImplicitly] public class CloningPodVisualizer : AppearanceVisualizer { public override void OnChangeData(AppearanceComponent component) diff --git a/Content.Client/GameObjects/Components/ComputerVisualizer.cs b/Content.Client/GameObjects/Components/ComputerVisualizer.cs index b16effe704..b0833f9252 100644 --- a/Content.Client/GameObjects/Components/ComputerVisualizer.cs +++ b/Content.Client/GameObjects/Components/ComputerVisualizer.cs @@ -1,4 +1,5 @@ using Content.Shared.GameObjects.Components; +using JetBrains.Annotations; using Robust.Client.GameObjects; using Robust.Client.Interfaces.GameObjects.Components; using Robust.Shared.Interfaces.GameObjects; @@ -7,6 +8,7 @@ using YamlDotNet.RepresentationModel; namespace Content.Client.GameObjects.Components { + [UsedImplicitly] public sealed class ComputerVisualizer : AppearanceVisualizer { private string KeyboardState = "generic_key"; diff --git a/Content.Client/GameObjects/Components/Crayon/CrayonDecalVisualizer.cs b/Content.Client/GameObjects/Components/Crayon/CrayonDecalVisualizer.cs index e5b6045f1f..df2f2b49dd 100644 --- a/Content.Client/GameObjects/Components/Crayon/CrayonDecalVisualizer.cs +++ b/Content.Client/GameObjects/Components/Crayon/CrayonDecalVisualizer.cs @@ -1,10 +1,12 @@ using Content.Shared.GameObjects.Components; +using JetBrains.Annotations; using Robust.Client.GameObjects; using Robust.Client.Interfaces.GameObjects.Components; using Robust.Shared.Maths; namespace Content.Client.GameObjects.Components.Crayon { + [UsedImplicitly] public class CrayonDecalVisualizer : AppearanceVisualizer { public override void OnChangeData(AppearanceComponent component) diff --git a/Content.Client/GameObjects/Components/ExtinguisherCabinetVisualizer.cs b/Content.Client/GameObjects/Components/ExtinguisherCabinetVisualizer.cs index 74c24a34b6..04ceda7aac 100644 --- a/Content.Client/GameObjects/Components/ExtinguisherCabinetVisualizer.cs +++ b/Content.Client/GameObjects/Components/ExtinguisherCabinetVisualizer.cs @@ -1,9 +1,11 @@ using Content.Shared.GameObjects.Components; +using JetBrains.Annotations; using Robust.Client.GameObjects; using Robust.Client.Interfaces.GameObjects.Components; namespace Content.Client.GameObjects.Components { + [UsedImplicitly] public class ExtinguisherCabinetVisualizer : AppearanceVisualizer { public override void OnChangeData(AppearanceComponent component) diff --git a/Content.Client/GameObjects/Components/Fluids/SprayVisualizer.cs b/Content.Client/GameObjects/Components/Fluids/SprayVisualizer.cs index 65899c014a..205f7bc761 100644 --- a/Content.Client/GameObjects/Components/Fluids/SprayVisualizer.cs +++ b/Content.Client/GameObjects/Components/Fluids/SprayVisualizer.cs @@ -1,4 +1,5 @@ using Content.Shared.GameObjects.Components.Fluids; +using JetBrains.Annotations; using Robust.Client.GameObjects; using Robust.Client.Interfaces.GameObjects.Components; using Robust.Shared.Utility; @@ -6,6 +7,7 @@ using YamlDotNet.RepresentationModel; namespace Content.Client.GameObjects.Components.Fluids { + [UsedImplicitly] public class SprayVisualizer : AppearanceVisualizer { private string _safetyOnState; diff --git a/Content.Client/GameObjects/Components/Gravity/GravityGeneratorVisualizer.cs b/Content.Client/GameObjects/Components/Gravity/GravityGeneratorVisualizer.cs index df5afbe8df..0c23b57f05 100644 --- a/Content.Client/GameObjects/Components/Gravity/GravityGeneratorVisualizer.cs +++ b/Content.Client/GameObjects/Components/Gravity/GravityGeneratorVisualizer.cs @@ -5,10 +5,12 @@ using Robust.Shared.Interfaces.GameObjects; using Robust.Shared.Utility; using System; using System.Collections.Generic; +using JetBrains.Annotations; using YamlDotNet.RepresentationModel; namespace Content.Client.GameObjects.Components.Gravity { + [UsedImplicitly] public class GravityGeneratorVisualizer : AppearanceVisualizer { private readonly Dictionary _spriteMap = new(); diff --git a/Content.Client/GameObjects/Components/Kitchen/MicrowaveBoundUserInterface.cs b/Content.Client/GameObjects/Components/Kitchen/MicrowaveBoundUserInterface.cs index 3e262e8a52..183ae124fa 100644 --- a/Content.Client/GameObjects/Components/Kitchen/MicrowaveBoundUserInterface.cs +++ b/Content.Client/GameObjects/Components/Kitchen/MicrowaveBoundUserInterface.cs @@ -2,6 +2,7 @@ using System.Collections.Generic; using Content.Shared.Chemistry; using Content.Shared.Kitchen; +using JetBrains.Annotations; using Robust.Client.GameObjects; using Robust.Client.GameObjects.Components.UserInterface; using Robust.Client.Graphics; @@ -19,7 +20,8 @@ using Robust.Shared.Prototypes; namespace Content.Client.GameObjects.Components.Kitchen { - public class MicrowaveBoundUserInterface : BoundUserInterface + [UsedImplicitly] + public class MicrowaveBoundUserInterface : BoundUserInterface { [Dependency] private readonly IEntityManager _entityManager = default!; [Dependency] private readonly IPrototypeManager _prototypeManager = default!; diff --git a/Content.Client/GameObjects/Components/Kitchen/MicrowaveVisualizer.cs b/Content.Client/GameObjects/Components/Kitchen/MicrowaveVisualizer.cs index 2a345e7429..409f890733 100644 --- a/Content.Client/GameObjects/Components/Kitchen/MicrowaveVisualizer.cs +++ b/Content.Client/GameObjects/Components/Kitchen/MicrowaveVisualizer.cs @@ -3,6 +3,7 @@ using Content.Client.GameObjects.Components.Sound; using Content.Shared.GameObjects.Components.Power; using Content.Shared.GameObjects.Components.Sound; using Content.Shared.Kitchen; +using JetBrains.Annotations; using Robust.Client.GameObjects; using Robust.Client.Interfaces.GameObjects.Components; using Robust.Shared.Audio; @@ -10,6 +11,7 @@ using Robust.Shared.Log; namespace Content.Client.GameObjects.Components.Kitchen { + [UsedImplicitly] public sealed class MicrowaveVisualizer : AppearanceVisualizer { public override void OnChangeData(AppearanceComponent component) diff --git a/Content.Client/GameObjects/Components/LightBehaviourComponent.cs b/Content.Client/GameObjects/Components/LightBehaviourComponent.cs index 757c5ca8c8..8ba96da12b 100644 --- a/Content.Client/GameObjects/Components/LightBehaviourComponent.cs +++ b/Content.Client/GameObjects/Components/LightBehaviourComponent.cs @@ -2,6 +2,7 @@ using System.Collections.Generic; using System.Linq; using Content.Shared.GameObjects.Components; +using JetBrains.Annotations; using Robust.Client.Animations; using Robust.Client.GameObjects; using Robust.Client.GameObjects.Components.Animations; @@ -119,7 +120,8 @@ namespace Content.Client.GameObjects.Components /// /// A light behaviour that alternates between StartValue and EndValue /// - public class PulseBehaviour: LightBehaviourAnimationTrack + [UsedImplicitly] + public class PulseBehaviour : LightBehaviourAnimationTrack { public override (int KeyFrameIndex, float FramePlayingTime) AdvancePlayback( object context, int prevKeyFrameIndex, float prevPlayingTime, float frameTime) @@ -173,6 +175,7 @@ namespace Content.Client.GameObjects.Components /// /// A light behaviour that interpolates from StartValue to EndValue /// + [UsedImplicitly] public class FadeBehaviour : LightBehaviourAnimationTrack { public override (int KeyFrameIndex, float FramePlayingTime) AdvancePlayback( @@ -208,6 +211,7 @@ namespace Content.Client.GameObjects.Components /// /// A light behaviour that interpolates using random values chosen between StartValue and EndValue. /// + [UsedImplicitly] public class RandomizeBehaviour : LightBehaviourAnimationTrack { private object _randomValue1 = default; @@ -272,6 +276,7 @@ namespace Content.Client.GameObjects.Components /// /// A light behaviour that cycles through a list of colors. /// + [UsedImplicitly] public class ColorCycleBehaviour : LightBehaviourAnimationTrack { public List ColorsToCycle { get; set; } diff --git a/Content.Client/GameObjects/Components/MedicalScanner/MedicalScannerVisualizer.cs b/Content.Client/GameObjects/Components/MedicalScanner/MedicalScannerVisualizer.cs index ec09f819e3..9d0305dbd0 100644 --- a/Content.Client/GameObjects/Components/MedicalScanner/MedicalScannerVisualizer.cs +++ b/Content.Client/GameObjects/Components/MedicalScanner/MedicalScannerVisualizer.cs @@ -1,4 +1,5 @@ using System; +using JetBrains.Annotations; using Robust.Client.GameObjects; using Robust.Client.Interfaces.GameObjects.Components; using static Content.Shared.GameObjects.Components.Medical.SharedMedicalScannerComponent; @@ -6,6 +7,7 @@ using static Content.Shared.GameObjects.Components.Medical.SharedMedicalScannerC namespace Content.Client.GameObjects.Components.MedicalScanner { + [UsedImplicitly] public class MedicalScannerVisualizer : AppearanceVisualizer { public override void OnChangeData(AppearanceComponent component) diff --git a/Content.Client/GameObjects/Components/Morgue/BodyBagVisualizer.cs b/Content.Client/GameObjects/Components/Morgue/BodyBagVisualizer.cs index 416b20b766..f13aa2aa02 100644 --- a/Content.Client/GameObjects/Components/Morgue/BodyBagVisualizer.cs +++ b/Content.Client/GameObjects/Components/Morgue/BodyBagVisualizer.cs @@ -1,10 +1,12 @@ #nullable enable using Content.Shared.GameObjects.Components.Morgue; +using JetBrains.Annotations; using Robust.Client.GameObjects; using Robust.Client.Interfaces.GameObjects.Components; namespace Content.Client.GameObjects.Components.Morgue { + [UsedImplicitly] public sealed class BodyBagVisualizer : AppearanceVisualizer { public override void OnChangeData(AppearanceComponent component) diff --git a/Content.Client/GameObjects/Components/Morgue/CrematoriumVisualizer.cs b/Content.Client/GameObjects/Components/Morgue/CrematoriumVisualizer.cs index d0381dfce0..f894558982 100644 --- a/Content.Client/GameObjects/Components/Morgue/CrematoriumVisualizer.cs +++ b/Content.Client/GameObjects/Components/Morgue/CrematoriumVisualizer.cs @@ -1,12 +1,14 @@ #nullable enable using Content.Shared.GameObjects.Components.Morgue; +using JetBrains.Annotations; using Robust.Client.GameObjects; using Robust.Client.Interfaces.GameObjects.Components; using Robust.Shared.Utility; using YamlDotNet.RepresentationModel; -namespace Content.Client.GameObjects.Components.Storage +namespace Content.Client.GameObjects.Components.Morgue { + [UsedImplicitly] public sealed class CrematoriumVisualizer : AppearanceVisualizer { private string _stateOpen = ""; diff --git a/Content.Client/GameObjects/Components/PDA/PDABoundUserInterface.cs b/Content.Client/GameObjects/Components/PDA/PDABoundUserInterface.cs index 1bfcee4f8e..6a43ddd244 100644 --- a/Content.Client/GameObjects/Components/PDA/PDABoundUserInterface.cs +++ b/Content.Client/GameObjects/Components/PDA/PDABoundUserInterface.cs @@ -2,6 +2,7 @@ using Content.Client.GameObjects.EntitySystems; using Content.Client.Utility; using Content.Shared.GameObjects.Components.PDA; +using JetBrains.Annotations; using Robust.Client.GameObjects.Components.UserInterface; using Robust.Client.Graphics.Drawing; using Robust.Client.Interfaces.UserInterface; @@ -17,6 +18,7 @@ using Robust.Shared.Utility; namespace Content.Client.GameObjects.Components.PDA { + [UsedImplicitly] public class PDABoundUserInterface : BoundUserInterface { [Dependency] private readonly IPrototypeManager _prototypeManager = default!; diff --git a/Content.Client/GameObjects/Components/Paper/PaperBoundUserInterface.cs b/Content.Client/GameObjects/Components/Paper/PaperBoundUserInterface.cs index 87a609f89c..3dc4b2fbac 100644 --- a/Content.Client/GameObjects/Components/Paper/PaperBoundUserInterface.cs +++ b/Content.Client/GameObjects/Components/Paper/PaperBoundUserInterface.cs @@ -1,10 +1,12 @@ using Content.Shared.GameObjects.Components; +using JetBrains.Annotations; using Robust.Client.GameObjects.Components.UserInterface; using Robust.Client.UserInterface.Controls; using Robust.Shared.GameObjects.Components.UserInterface; namespace Content.Client.GameObjects.Components.Paper { + [UsedImplicitly] public class PaperBoundUserInterface : BoundUserInterface { private PaperWindow _window; diff --git a/Content.Client/GameObjects/Components/ParticleAcceleratorPartVisualizer.cs b/Content.Client/GameObjects/Components/ParticleAcceleratorPartVisualizer.cs index de86d14e7b..9a8adf613e 100644 --- a/Content.Client/GameObjects/Components/ParticleAcceleratorPartVisualizer.cs +++ b/Content.Client/GameObjects/Components/ParticleAcceleratorPartVisualizer.cs @@ -1,24 +1,18 @@ -using System; -using System.Collections.Generic; +using System.Collections.Generic; using System.Linq; using Content.Shared.GameObjects.Components; -using Content.Shared.GameObjects.Components.Singularity; +using JetBrains.Annotations; using Robust.Client.GameObjects; -using Robust.Client.Graphics; using Robust.Client.Interfaces.GameObjects.Components; using Robust.Shared.GameObjects; using Robust.Shared.Interfaces.GameObjects; -using Robust.Shared.Interfaces.Reflection; -using Robust.Shared.Interfaces.Serialization; -using Robust.Shared.IoC; -using Robust.Shared.Log; using Robust.Shared.Prototypes; using Robust.Shared.Serialization; -using Robust.Shared.Utility; using YamlDotNet.RepresentationModel; namespace Content.Client.GameObjects.Components { + [UsedImplicitly] public class ParticleAcceleratorPartVisualizer : AppearanceVisualizer { private readonly Dictionary _states = new(); diff --git a/Content.Client/GameObjects/Components/Power/AME/AMEControllerBoundUserInterface.cs b/Content.Client/GameObjects/Components/Power/AME/AMEControllerBoundUserInterface.cs index ff0bcff85e..260403b063 100644 --- a/Content.Client/GameObjects/Components/Power/AME/AMEControllerBoundUserInterface.cs +++ b/Content.Client/GameObjects/Components/Power/AME/AMEControllerBoundUserInterface.cs @@ -1,9 +1,12 @@ -using Robust.Client.GameObjects.Components.UserInterface; +using Content.Shared.GameObjects.Components.Chemistry.ReagentDispenser; +using JetBrains.Annotations; +using Robust.Client.GameObjects.Components.UserInterface; using Robust.Shared.GameObjects.Components.UserInterface; using static Content.Shared.GameObjects.Components.Power.AME.SharedAMEControllerComponent; namespace Content.Client.GameObjects.Components.Power.AME { + [UsedImplicitly] public class AMEControllerBoundUserInterface : BoundUserInterface { private AMEWindow _window; diff --git a/Content.Client/GameObjects/Components/Power/AME/AMEControllerVisualizer.cs b/Content.Client/GameObjects/Components/Power/AME/AMEControllerVisualizer.cs index 1b3be7ca82..26d08b8ab4 100644 --- a/Content.Client/GameObjects/Components/Power/AME/AMEControllerVisualizer.cs +++ b/Content.Client/GameObjects/Components/Power/AME/AMEControllerVisualizer.cs @@ -1,10 +1,12 @@ -using Robust.Client.GameObjects; +using JetBrains.Annotations; +using Robust.Client.GameObjects; using Robust.Client.Interfaces.GameObjects.Components; using Robust.Shared.Interfaces.GameObjects; using static Content.Shared.GameObjects.Components.Power.AME.SharedAMEControllerComponent; namespace Content.Client.GameObjects.Components.Power.AME { + [UsedImplicitly] public class AMEControllerVisualizer : AppearanceVisualizer { public override void InitializeEntity(IEntity entity) diff --git a/Content.Client/GameObjects/Components/Power/AME/AMEVisualizer.cs b/Content.Client/GameObjects/Components/Power/AME/AMEVisualizer.cs index 229a698ddd..002f0440ce 100644 --- a/Content.Client/GameObjects/Components/Power/AME/AMEVisualizer.cs +++ b/Content.Client/GameObjects/Components/Power/AME/AMEVisualizer.cs @@ -1,10 +1,12 @@ -using Robust.Client.GameObjects; +using JetBrains.Annotations; +using Robust.Client.GameObjects; using Robust.Client.Interfaces.GameObjects.Components; using Robust.Shared.Interfaces.GameObjects; using static Content.Shared.GameObjects.Components.Power.AME.SharedAMEShieldComponent; namespace Content.Client.GameObjects.Components.Power.AME { + [UsedImplicitly] public class AMEVisualizer : AppearanceVisualizer { public override void InitializeEntity(IEntity entity) diff --git a/Content.Client/GameObjects/Components/Power/ApcBoundUserInterface.cs b/Content.Client/GameObjects/Components/Power/ApcBoundUserInterface.cs index 108b85fe55..fa779e163f 100644 --- a/Content.Client/GameObjects/Components/Power/ApcBoundUserInterface.cs +++ b/Content.Client/GameObjects/Components/Power/ApcBoundUserInterface.cs @@ -1,6 +1,7 @@ using System; using Content.Client.UserInterface.Stylesheets; using Content.Shared.GameObjects.Components.Power; +using JetBrains.Annotations; using Robust.Client.GameObjects.Components.UserInterface; using Robust.Client.Graphics.Drawing; using Robust.Client.UserInterface.Controls; @@ -10,6 +11,7 @@ using Robust.Shared.Maths; namespace Content.Client.GameObjects.Components.Power { + [UsedImplicitly] public class ApcBoundUserInterface : BoundUserInterface { private ApcWindow _window; diff --git a/Content.Client/GameObjects/Components/Power/ApcVisualizer.cs b/Content.Client/GameObjects/Components/Power/ApcVisualizer.cs index b12d83ba3e..b6d3de1be5 100644 --- a/Content.Client/GameObjects/Components/Power/ApcVisualizer.cs +++ b/Content.Client/GameObjects/Components/Power/ApcVisualizer.cs @@ -1,4 +1,5 @@ using Content.Shared.GameObjects.Components.Power; +using JetBrains.Annotations; using Robust.Client.GameObjects; using Robust.Client.Interfaces.GameObjects.Components; using Robust.Shared.Interfaces.GameObjects; @@ -7,6 +8,7 @@ namespace Content.Client.GameObjects.Components.Power { public class ApcVisualizer : AppearanceVisualizer { + [UsedImplicitly] public override void InitializeEntity(IEntity entity) { base.InitializeEntity(entity); diff --git a/Content.Client/GameObjects/Components/Power/AutolatheVisualizer.cs b/Content.Client/GameObjects/Components/Power/AutolatheVisualizer.cs index 49d411036f..757dddbc28 100644 --- a/Content.Client/GameObjects/Components/Power/AutolatheVisualizer.cs +++ b/Content.Client/GameObjects/Components/Power/AutolatheVisualizer.cs @@ -1,5 +1,6 @@ using System; using Content.Shared.GameObjects.Components.Power; +using JetBrains.Annotations; using Robust.Client.Animations; using Robust.Client.GameObjects; using Robust.Client.GameObjects.Components.Animations; @@ -9,6 +10,7 @@ using YamlDotNet.RepresentationModel; namespace Content.Client.GameObjects.Components.Power { + [UsedImplicitly] public class AutolatheVisualizer : AppearanceVisualizer { private const string AnimationKey = "autolathe_animation"; diff --git a/Content.Client/GameObjects/Components/Power/PowerCellVisualizer.cs b/Content.Client/GameObjects/Components/Power/PowerCellVisualizer.cs index 10b79e7d93..69649b6952 100644 --- a/Content.Client/GameObjects/Components/Power/PowerCellVisualizer.cs +++ b/Content.Client/GameObjects/Components/Power/PowerCellVisualizer.cs @@ -1,5 +1,6 @@ using Content.Shared.GameObjects.Components.Power; using Content.Shared.Utility; +using JetBrains.Annotations; using Robust.Client.GameObjects; using Robust.Client.Interfaces.GameObjects.Components; using Robust.Shared.Interfaces.GameObjects; @@ -8,6 +9,7 @@ using YamlDotNet.RepresentationModel; namespace Content.Client.GameObjects.Components.Power { + [UsedImplicitly] public class PowerCellVisualizer : AppearanceVisualizer { private string _prefix; diff --git a/Content.Client/GameObjects/Components/Power/ProtolatheVisualizer.cs b/Content.Client/GameObjects/Components/Power/ProtolatheVisualizer.cs index 8176d89c93..9bce43d0ee 100644 --- a/Content.Client/GameObjects/Components/Power/ProtolatheVisualizer.cs +++ b/Content.Client/GameObjects/Components/Power/ProtolatheVisualizer.cs @@ -1,5 +1,6 @@ using System; using Content.Shared.GameObjects.Components.Power; +using JetBrains.Annotations; using Robust.Client.Animations; using Robust.Client.GameObjects; using Robust.Client.GameObjects.Components.Animations; @@ -9,6 +10,7 @@ using YamlDotNet.RepresentationModel; namespace Content.Client.GameObjects.Components.Power { + [UsedImplicitly] public class ProtolatheVisualizer : AppearanceVisualizer { private const string AnimationKey = "protolathe_animation"; diff --git a/Content.Client/GameObjects/Components/Power/SmesVisualizer.cs b/Content.Client/GameObjects/Components/Power/SmesVisualizer.cs index 1e6e9bb5af..0dde132dfc 100644 --- a/Content.Client/GameObjects/Components/Power/SmesVisualizer.cs +++ b/Content.Client/GameObjects/Components/Power/SmesVisualizer.cs @@ -1,10 +1,12 @@ using Content.Shared.GameObjects.Components.Power; +using JetBrains.Annotations; using Robust.Client.GameObjects; using Robust.Client.Interfaces.GameObjects.Components; using Robust.Shared.Interfaces.GameObjects; namespace Content.Client.GameObjects.Components.Power { + [UsedImplicitly] public class SmesVisualizer : AppearanceVisualizer { public override void InitializeEntity(IEntity entity) diff --git a/Content.Client/GameObjects/Components/Power/SolarControlConsoleBoundUserInterface.cs b/Content.Client/GameObjects/Components/Power/SolarControlConsoleBoundUserInterface.cs index 76b51c9bb2..d2b426ea5a 100644 --- a/Content.Client/GameObjects/Components/Power/SolarControlConsoleBoundUserInterface.cs +++ b/Content.Client/GameObjects/Components/Power/SolarControlConsoleBoundUserInterface.cs @@ -1,5 +1,6 @@ using System; using Content.Shared.GameObjects.Components.Power; +using JetBrains.Annotations; using Robust.Client.GameObjects.Components.UserInterface; using Robust.Client.Graphics.Drawing; using Robust.Client.UserInterface; @@ -12,6 +13,7 @@ using Robust.Shared.Maths; namespace Content.Client.GameObjects.Components.Power { + [UsedImplicitly] public class SolarControlConsoleBoundUserInterface : BoundUserInterface { [Dependency] private readonly IGameTiming _gameTiming = default; diff --git a/Content.Client/GameObjects/Components/RadiationCollectorVisualizer.cs b/Content.Client/GameObjects/Components/RadiationCollectorVisualizer.cs index 65b6524a73..c365f617e2 100644 --- a/Content.Client/GameObjects/Components/RadiationCollectorVisualizer.cs +++ b/Content.Client/GameObjects/Components/RadiationCollectorVisualizer.cs @@ -1,8 +1,6 @@ using System; -using Content.Client.GameObjects.Components.Doors; -using Content.Client.GameObjects.Components.Wires; -using Content.Shared.GameObjects.Components.Doors; using Content.Shared.GameObjects.Components.Singularity; +using JetBrains.Annotations; using Robust.Client.Animations; using Robust.Client.GameObjects; using Robust.Client.GameObjects.Components.Animations; @@ -12,6 +10,7 @@ using YamlDotNet.RepresentationModel; namespace Content.Client.GameObjects.Components { + [UsedImplicitly] public class RadiationCollectorVisualizer : AppearanceVisualizer { private const string AnimationKey = "radiationcollector_animation"; diff --git a/Content.Client/GameObjects/Components/Singularity/ContainmentFieldComponent.cs b/Content.Client/GameObjects/Components/Singularity/ContainmentFieldComponent.cs index 692f0b4b89..b5e163fcf3 100644 --- a/Content.Client/GameObjects/Components/Singularity/ContainmentFieldComponent.cs +++ b/Content.Client/GameObjects/Components/Singularity/ContainmentFieldComponent.cs @@ -1,3 +1,4 @@ +using JetBrains.Annotations; using Robust.Client.GameObjects; using Robust.Client.Interfaces.GameObjects.Components; using Robust.Shared.GameObjects; @@ -5,6 +6,7 @@ using Robust.Shared.Log; namespace Content.Client.GameObjects.Components.Singularity { + [UsedImplicitly] public class ContainmentFieldComponent : Component { public override string Name => "Containment Field"; diff --git a/Content.Client/GameObjects/Components/Singularity/EmitterVisualizer.cs b/Content.Client/GameObjects/Components/Singularity/EmitterVisualizer.cs index 44b4d356cc..16c8d964be 100644 --- a/Content.Client/GameObjects/Components/Singularity/EmitterVisualizer.cs +++ b/Content.Client/GameObjects/Components/Singularity/EmitterVisualizer.cs @@ -1,10 +1,12 @@ using System; using Content.Shared.GameObjects.Components.Singularity; +using JetBrains.Annotations; using Robust.Client.GameObjects; using Robust.Client.Interfaces.GameObjects.Components; namespace Content.Client.GameObjects.Components.Singularity { + [UsedImplicitly] public class EmitterVisualizer : AppearanceVisualizer { private const string OverlayBeam = "emitter-beam"; diff --git a/Content.Client/GameObjects/Components/Storage/StorageVisualizer.cs b/Content.Client/GameObjects/Components/Storage/StorageVisualizer.cs index afdf7b2ca1..e8f39347f3 100644 --- a/Content.Client/GameObjects/Components/Storage/StorageVisualizer.cs +++ b/Content.Client/GameObjects/Components/Storage/StorageVisualizer.cs @@ -1,4 +1,5 @@ using Content.Shared.GameObjects.Components.Storage; +using JetBrains.Annotations; using Robust.Client.GameObjects; using Robust.Client.Interfaces.GameObjects.Components; using Robust.Shared.Interfaces.GameObjects; @@ -8,6 +9,7 @@ using YamlDotNet.RepresentationModel; namespace Content.Client.GameObjects.Components.Storage { + [UsedImplicitly] public sealed class StorageVisualizer : AppearanceVisualizer { private string _stateBase; diff --git a/Content.Client/GameObjects/Components/Trigger/TimerTriggerVisualizer.cs b/Content.Client/GameObjects/Components/Trigger/TimerTriggerVisualizer.cs index 2d4fde6db6..b45c9ef4bb 100644 --- a/Content.Client/GameObjects/Components/Trigger/TimerTriggerVisualizer.cs +++ b/Content.Client/GameObjects/Components/Trigger/TimerTriggerVisualizer.cs @@ -1,5 +1,6 @@ using System; using Content.Shared.GameObjects.Components.Trigger; +using JetBrains.Annotations; using Robust.Client.Animations; using Robust.Client.GameObjects; using Robust.Client.GameObjects.Components.Animations; @@ -10,6 +11,7 @@ using YamlDotNet.RepresentationModel; namespace Content.Client.GameObjects.Components.Trigger { + [UsedImplicitly] public class TimerTriggerVisualizer : AppearanceVisualizer { private const string AnimationKey = "priming_animation"; diff --git a/Content.Client/GameObjects/EntitySystems/AlertsSystem.cs b/Content.Client/GameObjects/EntitySystems/AlertsSystem.cs index 107451f9ea..e7c267329c 100644 --- a/Content.Client/GameObjects/EntitySystems/AlertsSystem.cs +++ b/Content.Client/GameObjects/EntitySystems/AlertsSystem.cs @@ -1,10 +1,12 @@ using Content.Client.GameObjects.Components.Mobs; +using JetBrains.Annotations; using Robust.Shared.GameObjects.Systems; using Robust.Shared.Interfaces.Timing; using Robust.Shared.IoC; namespace Content.Client.GameObjects.EntitySystems { + [UsedImplicitly] public class AlertsSystem : EntitySystem { [Dependency] private readonly IGameTiming _gameTiming = default!; diff --git a/Content.Client/GameObjects/EntitySystems/CameraRecoilSystem.cs b/Content.Client/GameObjects/EntitySystems/CameraRecoilSystem.cs index 137dc2a5e7..f37f9c8539 100644 --- a/Content.Client/GameObjects/EntitySystems/CameraRecoilSystem.cs +++ b/Content.Client/GameObjects/EntitySystems/CameraRecoilSystem.cs @@ -1,8 +1,10 @@ using Content.Client.GameObjects.Components.Mobs; +using JetBrains.Annotations; using Robust.Shared.GameObjects.Systems; namespace Content.Client.GameObjects.EntitySystems { + [UsedImplicitly] public sealed class CameraRecoilSystem : EntitySystem { public override void FrameUpdate(float frameTime) diff --git a/Content.Client/GameObjects/EntitySystems/CharacterInterfaceSystem.cs b/Content.Client/GameObjects/EntitySystems/CharacterInterfaceSystem.cs index bdafc4d1a5..41585c189c 100644 --- a/Content.Client/GameObjects/EntitySystems/CharacterInterfaceSystem.cs +++ b/Content.Client/GameObjects/EntitySystems/CharacterInterfaceSystem.cs @@ -1,6 +1,7 @@ using Content.Client.GameObjects.Components.Actor; using Content.Client.UserInterface; using Content.Shared.Input; +using JetBrains.Annotations; using Robust.Client.Player; using Robust.Client.UserInterface.CustomControls; using Robust.Shared.GameObjects.Systems; @@ -9,6 +10,7 @@ using Robust.Shared.IoC; namespace Content.Client.GameObjects.EntitySystems { + [UsedImplicitly] public sealed class CharacterInterfaceSystem : EntitySystem { [Dependency] private readonly IGameHud _gameHud = default!; diff --git a/Content.Client/GameObjects/EntitySystems/ClientInventorySystem.cs b/Content.Client/GameObjects/EntitySystems/ClientInventorySystem.cs index b6ac6bbe2f..6917d1e5c2 100644 --- a/Content.Client/GameObjects/EntitySystems/ClientInventorySystem.cs +++ b/Content.Client/GameObjects/EntitySystems/ClientInventorySystem.cs @@ -1,6 +1,7 @@ using Content.Client.GameObjects.Components.HUD.Inventory; using Content.Client.UserInterface; using Content.Shared.Input; +using JetBrains.Annotations; using Robust.Client.Player; using Robust.Client.UserInterface.CustomControls; using Robust.Shared.GameObjects.Systems; @@ -9,6 +10,7 @@ using Robust.Shared.IoC; namespace Content.Client.GameObjects.EntitySystems { + [UsedImplicitly] public sealed class ClientInventorySystem : EntitySystem { [Dependency] private readonly IGameHud _gameHud = default!; diff --git a/Content.Client/GameObjects/EntitySystems/ClientNotifySystem.cs b/Content.Client/GameObjects/EntitySystems/ClientNotifySystem.cs deleted file mode 100644 index 930fda53a6..0000000000 --- a/Content.Client/GameObjects/EntitySystems/ClientNotifySystem.cs +++ /dev/null @@ -1,7 +0,0 @@ -namespace Content.Client.GameObjects.EntitySystems -{ - public class ClientNotifySystem - { - - } -} diff --git a/Content.Client/GameObjects/EntitySystems/RangedWeaponSystem.cs b/Content.Client/GameObjects/EntitySystems/RangedWeaponSystem.cs index 2fb57315eb..5459fa3076 100644 --- a/Content.Client/GameObjects/EntitySystems/RangedWeaponSystem.cs +++ b/Content.Client/GameObjects/EntitySystems/RangedWeaponSystem.cs @@ -2,6 +2,7 @@ using Content.Client.GameObjects.Components.Items; using Content.Client.GameObjects.Components.Weapons.Ranged; using Content.Shared.GameObjects.Components.Weapons.Ranged; +using JetBrains.Annotations; using Robust.Client.GameObjects.EntitySystems; using Robust.Client.Interfaces.Graphics.ClientEye; using Robust.Client.Interfaces.Input; @@ -15,6 +16,7 @@ using Robust.Shared.Map; namespace Content.Client.GameObjects.EntitySystems { + [UsedImplicitly] public class RangedWeaponSystem : EntitySystem { [Dependency] private readonly IPlayerManager _playerManager = default!; diff --git a/Content.Server/GameObjects/Components/Stack/StackComponent.cs b/Content.Server/GameObjects/Components/Stack/StackComponent.cs index e7712ae14f..ffe054a9fa 100644 --- a/Content.Server/GameObjects/Components/Stack/StackComponent.cs +++ b/Content.Server/GameObjects/Components/Stack/StackComponent.cs @@ -26,12 +26,6 @@ namespace Content.Server.GameObjects.Components.Stack { private bool _throwIndividually = false; - public override int Count - { - get => base.Count; - set => base.Count = value; - } - [ViewVariables(VVAccess.ReadWrite)] public bool ThrowIndividually { diff --git a/Content.Server/GameObjects/Components/Trigger/TimerTrigger/OnUseTimerTriggerComponent.cs b/Content.Server/GameObjects/Components/Trigger/TimerTrigger/OnUseTimerTriggerComponent.cs index 4093af2b95..800fc03f9e 100644 --- a/Content.Server/GameObjects/Components/Trigger/TimerTrigger/OnUseTimerTriggerComponent.cs +++ b/Content.Server/GameObjects/Components/Trigger/TimerTrigger/OnUseTimerTriggerComponent.cs @@ -26,11 +26,6 @@ namespace Content.Server.GameObjects.Components.Trigger.TimerTrigger serializer.DataField(ref _delay, "delay", 0f); } - public override void Initialize() - { - base.Initialize(); - } - bool IUse.UseEntity(UseEntityEventArgs eventArgs) { var triggerSystem = _entitySystemManager.GetEntitySystem(); diff --git a/Content.Server/GameObjects/EntitySystems/AntimatterEngineSystem.cs b/Content.Server/GameObjects/EntitySystems/AntimatterEngineSystem.cs index 0b29c0f3e7..3f4576fb84 100644 --- a/Content.Server/GameObjects/EntitySystems/AntimatterEngineSystem.cs +++ b/Content.Server/GameObjects/EntitySystems/AntimatterEngineSystem.cs @@ -9,11 +9,6 @@ namespace Content.Server.GameObjects.EntitySystems { private float _accumulatedFrameTime; - public override void Initialize() - { - base.Initialize(); - } - public override void Update(float frameTime) { base.Update(frameTime); diff --git a/Content.Server/GameObjects/EntitySystems/Click/ExamineSystem.cs b/Content.Server/GameObjects/EntitySystems/Click/ExamineSystem.cs index a2ef44c52a..a0d2c658c5 100644 --- a/Content.Server/GameObjects/EntitySystems/Click/ExamineSystem.cs +++ b/Content.Server/GameObjects/EntitySystems/Click/ExamineSystem.cs @@ -1,5 +1,6 @@ using Content.Shared.GameObjects.EntitySystemMessages; using Content.Shared.GameObjects.EntitySystems; +using JetBrains.Annotations; using Robust.Server.Interfaces.Player; using Robust.Shared.GameObjects; using Robust.Shared.Interfaces.GameObjects; @@ -9,6 +10,7 @@ using Robust.Shared.Utility; namespace Content.Server.GameObjects.EntitySystems.Click { + [UsedImplicitly] public class ExamineSystem : ExamineSystemShared { private static readonly FormattedMessage _entityNotFoundMessage; diff --git a/Content.Server/GameObjects/EntitySystems/DeviceNetworkSystem.cs b/Content.Server/GameObjects/EntitySystems/DeviceNetworkSystem.cs index 0708dbada4..7ccc81f96d 100644 --- a/Content.Server/GameObjects/EntitySystems/DeviceNetworkSystem.cs +++ b/Content.Server/GameObjects/EntitySystems/DeviceNetworkSystem.cs @@ -1,9 +1,11 @@ using Content.Server.Interfaces; +using JetBrains.Annotations; using Robust.Shared.GameObjects.Systems; using Robust.Shared.IoC; -namespace Content.Server.GameObjects.EntitySystems.DeviceNetwork +namespace Content.Server.GameObjects.EntitySystems { + [UsedImplicitly] internal sealed class DeviceNetworkSystem : EntitySystem { [Dependency] private readonly IDeviceNetwork _network = default!; diff --git a/Content.Server/GameObjects/EntitySystems/ExpendableLightSystem.cs b/Content.Server/GameObjects/EntitySystems/ExpendableLightSystem.cs index 317f288084..4feba72bb0 100644 --- a/Content.Server/GameObjects/EntitySystems/ExpendableLightSystem.cs +++ b/Content.Server/GameObjects/EntitySystems/ExpendableLightSystem.cs @@ -1,9 +1,10 @@ - -using Content.Server.GameObjects.Components.Interactable; +using Content.Server.GameObjects.Components.Interactable; +using JetBrains.Annotations; using Robust.Shared.GameObjects.Systems; namespace Content.Server.GameObjects.EntitySystems { + [UsedImplicitly] public class ExpendableLightSystem : EntitySystem { public override void Update(float frameTime) diff --git a/Content.Server/GameObjects/EntitySystems/GasAnalyzerSystem.cs b/Content.Server/GameObjects/EntitySystems/GasAnalyzerSystem.cs index 1f536cf500..cf452f4111 100644 --- a/Content.Server/GameObjects/EntitySystems/GasAnalyzerSystem.cs +++ b/Content.Server/GameObjects/EntitySystems/GasAnalyzerSystem.cs @@ -1,8 +1,10 @@ using Content.Server.GameObjects.Components.Atmos; +using JetBrains.Annotations; using Robust.Shared.GameObjects.Systems; namespace Content.Server.GameObjects.EntitySystems { + [UsedImplicitly] public class GasAnalyzerSystem : EntitySystem { public override void Update(float frameTime) diff --git a/Content.Server/GameObjects/EntitySystems/NodeGroupSystem.cs b/Content.Server/GameObjects/EntitySystems/NodeGroupSystem.cs index 9b455e8cec..12a2d10161 100644 --- a/Content.Server/GameObjects/EntitySystems/NodeGroupSystem.cs +++ b/Content.Server/GameObjects/EntitySystems/NodeGroupSystem.cs @@ -1,9 +1,11 @@ using Content.Server.GameObjects.Components.NodeContainer.NodeGroups; +using JetBrains.Annotations; using Robust.Shared.GameObjects.Systems; using Robust.Shared.IoC; namespace Content.Server.GameObjects.EntitySystems { + [UsedImplicitly] public class NodeGroupSystem : EntitySystem { [Dependency] private readonly INodeGroupManager _groupManager = default!; diff --git a/Content.Server/GameObjects/EntitySystems/PowerNetSystem.cs b/Content.Server/GameObjects/EntitySystems/PowerNetSystem.cs index 40244597f5..86196dcc2e 100644 --- a/Content.Server/GameObjects/EntitySystems/PowerNetSystem.cs +++ b/Content.Server/GameObjects/EntitySystems/PowerNetSystem.cs @@ -1,9 +1,11 @@ using Content.Server.GameObjects.Components.Power.PowerNetComponents; +using JetBrains.Annotations; using Robust.Shared.GameObjects.Systems; using Robust.Shared.IoC; namespace Content.Server.GameObjects.EntitySystems { + [UsedImplicitly] public class PowerNetSystem : EntitySystem { [Dependency] private readonly IPowerNetManager _powerNetManager = default!; diff --git a/Content.Server/GameObjects/EntitySystems/SingularitySystem.cs b/Content.Server/GameObjects/EntitySystems/SingularitySystem.cs index 825f8a61e1..18a4c524ca 100644 --- a/Content.Server/GameObjects/EntitySystems/SingularitySystem.cs +++ b/Content.Server/GameObjects/EntitySystems/SingularitySystem.cs @@ -1,12 +1,15 @@ using Content.Server.GameObjects.Components.Singularity; +using JetBrains.Annotations; using Robust.Shared.GameObjects.Systems; namespace Content.Server.GameObjects.EntitySystems { + [UsedImplicitly] public class SingularitySystem : EntitySystem { private float curTimeSingulo; private float curTimePull; + public override void Update(float frameTime) { base.Update(frameTime); diff --git a/Content.Server/GameObjects/EntitySystems/VaporSystem.cs b/Content.Server/GameObjects/EntitySystems/VaporSystem.cs index caaddaaff2..e842db680f 100644 --- a/Content.Server/GameObjects/EntitySystems/VaporSystem.cs +++ b/Content.Server/GameObjects/EntitySystems/VaporSystem.cs @@ -1,11 +1,12 @@ using Content.Server.GameObjects.Components.Chemistry; +using JetBrains.Annotations; using Robust.Shared.GameObjects.Systems; namespace Content.Server.GameObjects.EntitySystems { + [UsedImplicitly] public class VaporSystem : EntitySystem { - /// public override void Update(float frameTime) { foreach (var vaporComp in ComponentManager.EntityQuery())