Add UsedImplicitly to visualizers and entity systems (#2592)

This commit is contained in:
DrSmugleaf
2020-12-08 11:56:10 +01:00
committed by GitHub
parent d75c22d5e1
commit 2dc05b2275
48 changed files with 102 additions and 45 deletions

View File

@@ -1,4 +1,5 @@
using Content.Shared.GameObjects.Components.Atmos; using Content.Shared.GameObjects.Components.Atmos;
using JetBrains.Annotations;
using Robust.Client.GameObjects; using Robust.Client.GameObjects;
using Robust.Client.Interfaces.GameObjects.Components; using Robust.Client.Interfaces.GameObjects.Components;
using Robust.Shared.Utility; using Robust.Shared.Utility;
@@ -6,6 +7,7 @@ using YamlDotNet.RepresentationModel;
namespace Content.Client.GameObjects.Components.Atmos namespace Content.Client.GameObjects.Components.Atmos
{ {
[UsedImplicitly]
public class GasAnalyzerVisualizer : AppearanceVisualizer public class GasAnalyzerVisualizer : AppearanceVisualizer
{ {
private string _stateOff; private string _stateOff;

View File

@@ -1,4 +1,5 @@
using System; using System;
using JetBrains.Annotations;
using Robust.Client.GameObjects; using Robust.Client.GameObjects;
using Robust.Client.Interfaces.GameObjects.Components; using Robust.Client.Interfaces.GameObjects.Components;
using static Content.Shared.GameObjects.Components.Medical.SharedCloningPodComponent; 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 namespace Content.Client.GameObjects.Components.CloningPod
{ {
[UsedImplicitly]
public class CloningPodVisualizer : AppearanceVisualizer public class CloningPodVisualizer : AppearanceVisualizer
{ {
public override void OnChangeData(AppearanceComponent component) public override void OnChangeData(AppearanceComponent component)

View File

@@ -1,4 +1,5 @@
using Content.Shared.GameObjects.Components; using Content.Shared.GameObjects.Components;
using JetBrains.Annotations;
using Robust.Client.GameObjects; using Robust.Client.GameObjects;
using Robust.Client.Interfaces.GameObjects.Components; using Robust.Client.Interfaces.GameObjects.Components;
using Robust.Shared.Interfaces.GameObjects; using Robust.Shared.Interfaces.GameObjects;
@@ -7,6 +8,7 @@ using YamlDotNet.RepresentationModel;
namespace Content.Client.GameObjects.Components namespace Content.Client.GameObjects.Components
{ {
[UsedImplicitly]
public sealed class ComputerVisualizer : AppearanceVisualizer public sealed class ComputerVisualizer : AppearanceVisualizer
{ {
private string KeyboardState = "generic_key"; private string KeyboardState = "generic_key";

View File

@@ -1,10 +1,12 @@
using Content.Shared.GameObjects.Components; using Content.Shared.GameObjects.Components;
using JetBrains.Annotations;
using Robust.Client.GameObjects; using Robust.Client.GameObjects;
using Robust.Client.Interfaces.GameObjects.Components; using Robust.Client.Interfaces.GameObjects.Components;
using Robust.Shared.Maths; using Robust.Shared.Maths;
namespace Content.Client.GameObjects.Components.Crayon namespace Content.Client.GameObjects.Components.Crayon
{ {
[UsedImplicitly]
public class CrayonDecalVisualizer : AppearanceVisualizer public class CrayonDecalVisualizer : AppearanceVisualizer
{ {
public override void OnChangeData(AppearanceComponent component) public override void OnChangeData(AppearanceComponent component)

View File

@@ -1,9 +1,11 @@
using Content.Shared.GameObjects.Components; using Content.Shared.GameObjects.Components;
using JetBrains.Annotations;
using Robust.Client.GameObjects; using Robust.Client.GameObjects;
using Robust.Client.Interfaces.GameObjects.Components; using Robust.Client.Interfaces.GameObjects.Components;
namespace Content.Client.GameObjects.Components namespace Content.Client.GameObjects.Components
{ {
[UsedImplicitly]
public class ExtinguisherCabinetVisualizer : AppearanceVisualizer public class ExtinguisherCabinetVisualizer : AppearanceVisualizer
{ {
public override void OnChangeData(AppearanceComponent component) public override void OnChangeData(AppearanceComponent component)

View File

@@ -1,4 +1,5 @@
using Content.Shared.GameObjects.Components.Fluids; using Content.Shared.GameObjects.Components.Fluids;
using JetBrains.Annotations;
using Robust.Client.GameObjects; using Robust.Client.GameObjects;
using Robust.Client.Interfaces.GameObjects.Components; using Robust.Client.Interfaces.GameObjects.Components;
using Robust.Shared.Utility; using Robust.Shared.Utility;
@@ -6,6 +7,7 @@ using YamlDotNet.RepresentationModel;
namespace Content.Client.GameObjects.Components.Fluids namespace Content.Client.GameObjects.Components.Fluids
{ {
[UsedImplicitly]
public class SprayVisualizer : AppearanceVisualizer public class SprayVisualizer : AppearanceVisualizer
{ {
private string _safetyOnState; private string _safetyOnState;

View File

@@ -5,10 +5,12 @@ using Robust.Shared.Interfaces.GameObjects;
using Robust.Shared.Utility; using Robust.Shared.Utility;
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using JetBrains.Annotations;
using YamlDotNet.RepresentationModel; using YamlDotNet.RepresentationModel;
namespace Content.Client.GameObjects.Components.Gravity namespace Content.Client.GameObjects.Components.Gravity
{ {
[UsedImplicitly]
public class GravityGeneratorVisualizer : AppearanceVisualizer public class GravityGeneratorVisualizer : AppearanceVisualizer
{ {
private readonly Dictionary<GravityGeneratorStatus, string> _spriteMap = new(); private readonly Dictionary<GravityGeneratorStatus, string> _spriteMap = new();

View File

@@ -2,6 +2,7 @@
using System.Collections.Generic; using System.Collections.Generic;
using Content.Shared.Chemistry; using Content.Shared.Chemistry;
using Content.Shared.Kitchen; using Content.Shared.Kitchen;
using JetBrains.Annotations;
using Robust.Client.GameObjects; using Robust.Client.GameObjects;
using Robust.Client.GameObjects.Components.UserInterface; using Robust.Client.GameObjects.Components.UserInterface;
using Robust.Client.Graphics; using Robust.Client.Graphics;
@@ -19,6 +20,7 @@ using Robust.Shared.Prototypes;
namespace Content.Client.GameObjects.Components.Kitchen namespace Content.Client.GameObjects.Components.Kitchen
{ {
[UsedImplicitly]
public class MicrowaveBoundUserInterface : BoundUserInterface public class MicrowaveBoundUserInterface : BoundUserInterface
{ {
[Dependency] private readonly IEntityManager _entityManager = default!; [Dependency] private readonly IEntityManager _entityManager = default!;

View File

@@ -3,6 +3,7 @@ using Content.Client.GameObjects.Components.Sound;
using Content.Shared.GameObjects.Components.Power; using Content.Shared.GameObjects.Components.Power;
using Content.Shared.GameObjects.Components.Sound; using Content.Shared.GameObjects.Components.Sound;
using Content.Shared.Kitchen; using Content.Shared.Kitchen;
using JetBrains.Annotations;
using Robust.Client.GameObjects; using Robust.Client.GameObjects;
using Robust.Client.Interfaces.GameObjects.Components; using Robust.Client.Interfaces.GameObjects.Components;
using Robust.Shared.Audio; using Robust.Shared.Audio;
@@ -10,6 +11,7 @@ using Robust.Shared.Log;
namespace Content.Client.GameObjects.Components.Kitchen namespace Content.Client.GameObjects.Components.Kitchen
{ {
[UsedImplicitly]
public sealed class MicrowaveVisualizer : AppearanceVisualizer public sealed class MicrowaveVisualizer : AppearanceVisualizer
{ {
public override void OnChangeData(AppearanceComponent component) public override void OnChangeData(AppearanceComponent component)

View File

@@ -2,6 +2,7 @@
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq; using System.Linq;
using Content.Shared.GameObjects.Components; using Content.Shared.GameObjects.Components;
using JetBrains.Annotations;
using Robust.Client.Animations; using Robust.Client.Animations;
using Robust.Client.GameObjects; using Robust.Client.GameObjects;
using Robust.Client.GameObjects.Components.Animations; using Robust.Client.GameObjects.Components.Animations;
@@ -119,7 +120,8 @@ namespace Content.Client.GameObjects.Components
/// <summary> /// <summary>
/// A light behaviour that alternates between StartValue and EndValue /// A light behaviour that alternates between StartValue and EndValue
/// </summary> /// </summary>
public class PulseBehaviour: LightBehaviourAnimationTrack [UsedImplicitly]
public class PulseBehaviour : LightBehaviourAnimationTrack
{ {
public override (int KeyFrameIndex, float FramePlayingTime) AdvancePlayback( public override (int KeyFrameIndex, float FramePlayingTime) AdvancePlayback(
object context, int prevKeyFrameIndex, float prevPlayingTime, float frameTime) object context, int prevKeyFrameIndex, float prevPlayingTime, float frameTime)
@@ -173,6 +175,7 @@ namespace Content.Client.GameObjects.Components
/// <summary> /// <summary>
/// A light behaviour that interpolates from StartValue to EndValue /// A light behaviour that interpolates from StartValue to EndValue
/// </summary> /// </summary>
[UsedImplicitly]
public class FadeBehaviour : LightBehaviourAnimationTrack public class FadeBehaviour : LightBehaviourAnimationTrack
{ {
public override (int KeyFrameIndex, float FramePlayingTime) AdvancePlayback( public override (int KeyFrameIndex, float FramePlayingTime) AdvancePlayback(
@@ -208,6 +211,7 @@ namespace Content.Client.GameObjects.Components
/// <summary> /// <summary>
/// A light behaviour that interpolates using random values chosen between StartValue and EndValue. /// A light behaviour that interpolates using random values chosen between StartValue and EndValue.
/// </summary> /// </summary>
[UsedImplicitly]
public class RandomizeBehaviour : LightBehaviourAnimationTrack public class RandomizeBehaviour : LightBehaviourAnimationTrack
{ {
private object _randomValue1 = default; private object _randomValue1 = default;
@@ -272,6 +276,7 @@ namespace Content.Client.GameObjects.Components
/// <summary> /// <summary>
/// A light behaviour that cycles through a list of colors. /// A light behaviour that cycles through a list of colors.
/// </summary> /// </summary>
[UsedImplicitly]
public class ColorCycleBehaviour : LightBehaviourAnimationTrack public class ColorCycleBehaviour : LightBehaviourAnimationTrack
{ {
public List<Color> ColorsToCycle { get; set; } public List<Color> ColorsToCycle { get; set; }

View File

@@ -1,4 +1,5 @@
using System; using System;
using JetBrains.Annotations;
using Robust.Client.GameObjects; using Robust.Client.GameObjects;
using Robust.Client.Interfaces.GameObjects.Components; using Robust.Client.Interfaces.GameObjects.Components;
using static Content.Shared.GameObjects.Components.Medical.SharedMedicalScannerComponent; 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 namespace Content.Client.GameObjects.Components.MedicalScanner
{ {
[UsedImplicitly]
public class MedicalScannerVisualizer : AppearanceVisualizer public class MedicalScannerVisualizer : AppearanceVisualizer
{ {
public override void OnChangeData(AppearanceComponent component) public override void OnChangeData(AppearanceComponent component)

View File

@@ -1,10 +1,12 @@
#nullable enable #nullable enable
using Content.Shared.GameObjects.Components.Morgue; using Content.Shared.GameObjects.Components.Morgue;
using JetBrains.Annotations;
using Robust.Client.GameObjects; using Robust.Client.GameObjects;
using Robust.Client.Interfaces.GameObjects.Components; using Robust.Client.Interfaces.GameObjects.Components;
namespace Content.Client.GameObjects.Components.Morgue namespace Content.Client.GameObjects.Components.Morgue
{ {
[UsedImplicitly]
public sealed class BodyBagVisualizer : AppearanceVisualizer public sealed class BodyBagVisualizer : AppearanceVisualizer
{ {
public override void OnChangeData(AppearanceComponent component) public override void OnChangeData(AppearanceComponent component)

View File

@@ -1,12 +1,14 @@
#nullable enable #nullable enable
using Content.Shared.GameObjects.Components.Morgue; using Content.Shared.GameObjects.Components.Morgue;
using JetBrains.Annotations;
using Robust.Client.GameObjects; using Robust.Client.GameObjects;
using Robust.Client.Interfaces.GameObjects.Components; using Robust.Client.Interfaces.GameObjects.Components;
using Robust.Shared.Utility; using Robust.Shared.Utility;
using YamlDotNet.RepresentationModel; using YamlDotNet.RepresentationModel;
namespace Content.Client.GameObjects.Components.Storage namespace Content.Client.GameObjects.Components.Morgue
{ {
[UsedImplicitly]
public sealed class CrematoriumVisualizer : AppearanceVisualizer public sealed class CrematoriumVisualizer : AppearanceVisualizer
{ {
private string _stateOpen = ""; private string _stateOpen = "";

View File

@@ -2,6 +2,7 @@
using Content.Client.GameObjects.EntitySystems; using Content.Client.GameObjects.EntitySystems;
using Content.Client.Utility; using Content.Client.Utility;
using Content.Shared.GameObjects.Components.PDA; using Content.Shared.GameObjects.Components.PDA;
using JetBrains.Annotations;
using Robust.Client.GameObjects.Components.UserInterface; using Robust.Client.GameObjects.Components.UserInterface;
using Robust.Client.Graphics.Drawing; using Robust.Client.Graphics.Drawing;
using Robust.Client.Interfaces.UserInterface; using Robust.Client.Interfaces.UserInterface;
@@ -17,6 +18,7 @@ using Robust.Shared.Utility;
namespace Content.Client.GameObjects.Components.PDA namespace Content.Client.GameObjects.Components.PDA
{ {
[UsedImplicitly]
public class PDABoundUserInterface : BoundUserInterface public class PDABoundUserInterface : BoundUserInterface
{ {
[Dependency] private readonly IPrototypeManager _prototypeManager = default!; [Dependency] private readonly IPrototypeManager _prototypeManager = default!;

View File

@@ -1,10 +1,12 @@
using Content.Shared.GameObjects.Components; using Content.Shared.GameObjects.Components;
using JetBrains.Annotations;
using Robust.Client.GameObjects.Components.UserInterface; using Robust.Client.GameObjects.Components.UserInterface;
using Robust.Client.UserInterface.Controls; using Robust.Client.UserInterface.Controls;
using Robust.Shared.GameObjects.Components.UserInterface; using Robust.Shared.GameObjects.Components.UserInterface;
namespace Content.Client.GameObjects.Components.Paper namespace Content.Client.GameObjects.Components.Paper
{ {
[UsedImplicitly]
public class PaperBoundUserInterface : BoundUserInterface public class PaperBoundUserInterface : BoundUserInterface
{ {
private PaperWindow _window; private PaperWindow _window;

View File

@@ -1,24 +1,18 @@
using System; using System.Collections.Generic;
using System.Collections.Generic;
using System.Linq; using System.Linq;
using Content.Shared.GameObjects.Components; using Content.Shared.GameObjects.Components;
using Content.Shared.GameObjects.Components.Singularity; using JetBrains.Annotations;
using Robust.Client.GameObjects; using Robust.Client.GameObjects;
using Robust.Client.Graphics;
using Robust.Client.Interfaces.GameObjects.Components; using Robust.Client.Interfaces.GameObjects.Components;
using Robust.Shared.GameObjects; using Robust.Shared.GameObjects;
using Robust.Shared.Interfaces.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.Prototypes;
using Robust.Shared.Serialization; using Robust.Shared.Serialization;
using Robust.Shared.Utility;
using YamlDotNet.RepresentationModel; using YamlDotNet.RepresentationModel;
namespace Content.Client.GameObjects.Components namespace Content.Client.GameObjects.Components
{ {
[UsedImplicitly]
public class ParticleAcceleratorPartVisualizer : AppearanceVisualizer public class ParticleAcceleratorPartVisualizer : AppearanceVisualizer
{ {
private readonly Dictionary<ParticleAcceleratorVisualState, string> _states = new(); private readonly Dictionary<ParticleAcceleratorVisualState, string> _states = new();

View File

@@ -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 Robust.Shared.GameObjects.Components.UserInterface;
using static Content.Shared.GameObjects.Components.Power.AME.SharedAMEControllerComponent; using static Content.Shared.GameObjects.Components.Power.AME.SharedAMEControllerComponent;
namespace Content.Client.GameObjects.Components.Power.AME namespace Content.Client.GameObjects.Components.Power.AME
{ {
[UsedImplicitly]
public class AMEControllerBoundUserInterface : BoundUserInterface public class AMEControllerBoundUserInterface : BoundUserInterface
{ {
private AMEWindow _window; private AMEWindow _window;

View File

@@ -1,10 +1,12 @@
using Robust.Client.GameObjects; using JetBrains.Annotations;
using Robust.Client.GameObjects;
using Robust.Client.Interfaces.GameObjects.Components; using Robust.Client.Interfaces.GameObjects.Components;
using Robust.Shared.Interfaces.GameObjects; using Robust.Shared.Interfaces.GameObjects;
using static Content.Shared.GameObjects.Components.Power.AME.SharedAMEControllerComponent; using static Content.Shared.GameObjects.Components.Power.AME.SharedAMEControllerComponent;
namespace Content.Client.GameObjects.Components.Power.AME namespace Content.Client.GameObjects.Components.Power.AME
{ {
[UsedImplicitly]
public class AMEControllerVisualizer : AppearanceVisualizer public class AMEControllerVisualizer : AppearanceVisualizer
{ {
public override void InitializeEntity(IEntity entity) public override void InitializeEntity(IEntity entity)

View File

@@ -1,10 +1,12 @@
using Robust.Client.GameObjects; using JetBrains.Annotations;
using Robust.Client.GameObjects;
using Robust.Client.Interfaces.GameObjects.Components; using Robust.Client.Interfaces.GameObjects.Components;
using Robust.Shared.Interfaces.GameObjects; using Robust.Shared.Interfaces.GameObjects;
using static Content.Shared.GameObjects.Components.Power.AME.SharedAMEShieldComponent; using static Content.Shared.GameObjects.Components.Power.AME.SharedAMEShieldComponent;
namespace Content.Client.GameObjects.Components.Power.AME namespace Content.Client.GameObjects.Components.Power.AME
{ {
[UsedImplicitly]
public class AMEVisualizer : AppearanceVisualizer public class AMEVisualizer : AppearanceVisualizer
{ {
public override void InitializeEntity(IEntity entity) public override void InitializeEntity(IEntity entity)

View File

@@ -1,6 +1,7 @@
using System; using System;
using Content.Client.UserInterface.Stylesheets; using Content.Client.UserInterface.Stylesheets;
using Content.Shared.GameObjects.Components.Power; using Content.Shared.GameObjects.Components.Power;
using JetBrains.Annotations;
using Robust.Client.GameObjects.Components.UserInterface; using Robust.Client.GameObjects.Components.UserInterface;
using Robust.Client.Graphics.Drawing; using Robust.Client.Graphics.Drawing;
using Robust.Client.UserInterface.Controls; using Robust.Client.UserInterface.Controls;
@@ -10,6 +11,7 @@ using Robust.Shared.Maths;
namespace Content.Client.GameObjects.Components.Power namespace Content.Client.GameObjects.Components.Power
{ {
[UsedImplicitly]
public class ApcBoundUserInterface : BoundUserInterface public class ApcBoundUserInterface : BoundUserInterface
{ {
private ApcWindow _window; private ApcWindow _window;

View File

@@ -1,4 +1,5 @@
using Content.Shared.GameObjects.Components.Power; using Content.Shared.GameObjects.Components.Power;
using JetBrains.Annotations;
using Robust.Client.GameObjects; using Robust.Client.GameObjects;
using Robust.Client.Interfaces.GameObjects.Components; using Robust.Client.Interfaces.GameObjects.Components;
using Robust.Shared.Interfaces.GameObjects; using Robust.Shared.Interfaces.GameObjects;
@@ -7,6 +8,7 @@ namespace Content.Client.GameObjects.Components.Power
{ {
public class ApcVisualizer : AppearanceVisualizer public class ApcVisualizer : AppearanceVisualizer
{ {
[UsedImplicitly]
public override void InitializeEntity(IEntity entity) public override void InitializeEntity(IEntity entity)
{ {
base.InitializeEntity(entity); base.InitializeEntity(entity);

View File

@@ -1,5 +1,6 @@
using System; using System;
using Content.Shared.GameObjects.Components.Power; using Content.Shared.GameObjects.Components.Power;
using JetBrains.Annotations;
using Robust.Client.Animations; using Robust.Client.Animations;
using Robust.Client.GameObjects; using Robust.Client.GameObjects;
using Robust.Client.GameObjects.Components.Animations; using Robust.Client.GameObjects.Components.Animations;
@@ -9,6 +10,7 @@ using YamlDotNet.RepresentationModel;
namespace Content.Client.GameObjects.Components.Power namespace Content.Client.GameObjects.Components.Power
{ {
[UsedImplicitly]
public class AutolatheVisualizer : AppearanceVisualizer public class AutolatheVisualizer : AppearanceVisualizer
{ {
private const string AnimationKey = "autolathe_animation"; private const string AnimationKey = "autolathe_animation";

View File

@@ -1,5 +1,6 @@
using Content.Shared.GameObjects.Components.Power; using Content.Shared.GameObjects.Components.Power;
using Content.Shared.Utility; using Content.Shared.Utility;
using JetBrains.Annotations;
using Robust.Client.GameObjects; using Robust.Client.GameObjects;
using Robust.Client.Interfaces.GameObjects.Components; using Robust.Client.Interfaces.GameObjects.Components;
using Robust.Shared.Interfaces.GameObjects; using Robust.Shared.Interfaces.GameObjects;
@@ -8,6 +9,7 @@ using YamlDotNet.RepresentationModel;
namespace Content.Client.GameObjects.Components.Power namespace Content.Client.GameObjects.Components.Power
{ {
[UsedImplicitly]
public class PowerCellVisualizer : AppearanceVisualizer public class PowerCellVisualizer : AppearanceVisualizer
{ {
private string _prefix; private string _prefix;

View File

@@ -1,5 +1,6 @@
using System; using System;
using Content.Shared.GameObjects.Components.Power; using Content.Shared.GameObjects.Components.Power;
using JetBrains.Annotations;
using Robust.Client.Animations; using Robust.Client.Animations;
using Robust.Client.GameObjects; using Robust.Client.GameObjects;
using Robust.Client.GameObjects.Components.Animations; using Robust.Client.GameObjects.Components.Animations;
@@ -9,6 +10,7 @@ using YamlDotNet.RepresentationModel;
namespace Content.Client.GameObjects.Components.Power namespace Content.Client.GameObjects.Components.Power
{ {
[UsedImplicitly]
public class ProtolatheVisualizer : AppearanceVisualizer public class ProtolatheVisualizer : AppearanceVisualizer
{ {
private const string AnimationKey = "protolathe_animation"; private const string AnimationKey = "protolathe_animation";

View File

@@ -1,10 +1,12 @@
using Content.Shared.GameObjects.Components.Power; using Content.Shared.GameObjects.Components.Power;
using JetBrains.Annotations;
using Robust.Client.GameObjects; using Robust.Client.GameObjects;
using Robust.Client.Interfaces.GameObjects.Components; using Robust.Client.Interfaces.GameObjects.Components;
using Robust.Shared.Interfaces.GameObjects; using Robust.Shared.Interfaces.GameObjects;
namespace Content.Client.GameObjects.Components.Power namespace Content.Client.GameObjects.Components.Power
{ {
[UsedImplicitly]
public class SmesVisualizer : AppearanceVisualizer public class SmesVisualizer : AppearanceVisualizer
{ {
public override void InitializeEntity(IEntity entity) public override void InitializeEntity(IEntity entity)

View File

@@ -1,5 +1,6 @@
using System; using System;
using Content.Shared.GameObjects.Components.Power; using Content.Shared.GameObjects.Components.Power;
using JetBrains.Annotations;
using Robust.Client.GameObjects.Components.UserInterface; using Robust.Client.GameObjects.Components.UserInterface;
using Robust.Client.Graphics.Drawing; using Robust.Client.Graphics.Drawing;
using Robust.Client.UserInterface; using Robust.Client.UserInterface;
@@ -12,6 +13,7 @@ using Robust.Shared.Maths;
namespace Content.Client.GameObjects.Components.Power namespace Content.Client.GameObjects.Components.Power
{ {
[UsedImplicitly]
public class SolarControlConsoleBoundUserInterface : BoundUserInterface public class SolarControlConsoleBoundUserInterface : BoundUserInterface
{ {
[Dependency] private readonly IGameTiming _gameTiming = default; [Dependency] private readonly IGameTiming _gameTiming = default;

View File

@@ -1,8 +1,6 @@
using System; 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 Content.Shared.GameObjects.Components.Singularity;
using JetBrains.Annotations;
using Robust.Client.Animations; using Robust.Client.Animations;
using Robust.Client.GameObjects; using Robust.Client.GameObjects;
using Robust.Client.GameObjects.Components.Animations; using Robust.Client.GameObjects.Components.Animations;
@@ -12,6 +10,7 @@ using YamlDotNet.RepresentationModel;
namespace Content.Client.GameObjects.Components namespace Content.Client.GameObjects.Components
{ {
[UsedImplicitly]
public class RadiationCollectorVisualizer : AppearanceVisualizer public class RadiationCollectorVisualizer : AppearanceVisualizer
{ {
private const string AnimationKey = "radiationcollector_animation"; private const string AnimationKey = "radiationcollector_animation";

View File

@@ -1,3 +1,4 @@
using JetBrains.Annotations;
using Robust.Client.GameObjects; using Robust.Client.GameObjects;
using Robust.Client.Interfaces.GameObjects.Components; using Robust.Client.Interfaces.GameObjects.Components;
using Robust.Shared.GameObjects; using Robust.Shared.GameObjects;
@@ -5,6 +6,7 @@ using Robust.Shared.Log;
namespace Content.Client.GameObjects.Components.Singularity namespace Content.Client.GameObjects.Components.Singularity
{ {
[UsedImplicitly]
public class ContainmentFieldComponent : Component public class ContainmentFieldComponent : Component
{ {
public override string Name => "Containment Field"; public override string Name => "Containment Field";

View File

@@ -1,10 +1,12 @@
using System; using System;
using Content.Shared.GameObjects.Components.Singularity; using Content.Shared.GameObjects.Components.Singularity;
using JetBrains.Annotations;
using Robust.Client.GameObjects; using Robust.Client.GameObjects;
using Robust.Client.Interfaces.GameObjects.Components; using Robust.Client.Interfaces.GameObjects.Components;
namespace Content.Client.GameObjects.Components.Singularity namespace Content.Client.GameObjects.Components.Singularity
{ {
[UsedImplicitly]
public class EmitterVisualizer : AppearanceVisualizer public class EmitterVisualizer : AppearanceVisualizer
{ {
private const string OverlayBeam = "emitter-beam"; private const string OverlayBeam = "emitter-beam";

View File

@@ -1,4 +1,5 @@
using Content.Shared.GameObjects.Components.Storage; using Content.Shared.GameObjects.Components.Storage;
using JetBrains.Annotations;
using Robust.Client.GameObjects; using Robust.Client.GameObjects;
using Robust.Client.Interfaces.GameObjects.Components; using Robust.Client.Interfaces.GameObjects.Components;
using Robust.Shared.Interfaces.GameObjects; using Robust.Shared.Interfaces.GameObjects;
@@ -8,6 +9,7 @@ using YamlDotNet.RepresentationModel;
namespace Content.Client.GameObjects.Components.Storage namespace Content.Client.GameObjects.Components.Storage
{ {
[UsedImplicitly]
public sealed class StorageVisualizer : AppearanceVisualizer public sealed class StorageVisualizer : AppearanceVisualizer
{ {
private string _stateBase; private string _stateBase;

View File

@@ -1,5 +1,6 @@
using System; using System;
using Content.Shared.GameObjects.Components.Trigger; using Content.Shared.GameObjects.Components.Trigger;
using JetBrains.Annotations;
using Robust.Client.Animations; using Robust.Client.Animations;
using Robust.Client.GameObjects; using Robust.Client.GameObjects;
using Robust.Client.GameObjects.Components.Animations; using Robust.Client.GameObjects.Components.Animations;
@@ -10,6 +11,7 @@ using YamlDotNet.RepresentationModel;
namespace Content.Client.GameObjects.Components.Trigger namespace Content.Client.GameObjects.Components.Trigger
{ {
[UsedImplicitly]
public class TimerTriggerVisualizer : AppearanceVisualizer public class TimerTriggerVisualizer : AppearanceVisualizer
{ {
private const string AnimationKey = "priming_animation"; private const string AnimationKey = "priming_animation";

View File

@@ -1,10 +1,12 @@
using Content.Client.GameObjects.Components.Mobs; using Content.Client.GameObjects.Components.Mobs;
using JetBrains.Annotations;
using Robust.Shared.GameObjects.Systems; using Robust.Shared.GameObjects.Systems;
using Robust.Shared.Interfaces.Timing; using Robust.Shared.Interfaces.Timing;
using Robust.Shared.IoC; using Robust.Shared.IoC;
namespace Content.Client.GameObjects.EntitySystems namespace Content.Client.GameObjects.EntitySystems
{ {
[UsedImplicitly]
public class AlertsSystem : EntitySystem public class AlertsSystem : EntitySystem
{ {
[Dependency] private readonly IGameTiming _gameTiming = default!; [Dependency] private readonly IGameTiming _gameTiming = default!;

View File

@@ -1,8 +1,10 @@
using Content.Client.GameObjects.Components.Mobs; using Content.Client.GameObjects.Components.Mobs;
using JetBrains.Annotations;
using Robust.Shared.GameObjects.Systems; using Robust.Shared.GameObjects.Systems;
namespace Content.Client.GameObjects.EntitySystems namespace Content.Client.GameObjects.EntitySystems
{ {
[UsedImplicitly]
public sealed class CameraRecoilSystem : EntitySystem public sealed class CameraRecoilSystem : EntitySystem
{ {
public override void FrameUpdate(float frameTime) public override void FrameUpdate(float frameTime)

View File

@@ -1,6 +1,7 @@
using Content.Client.GameObjects.Components.Actor; using Content.Client.GameObjects.Components.Actor;
using Content.Client.UserInterface; using Content.Client.UserInterface;
using Content.Shared.Input; using Content.Shared.Input;
using JetBrains.Annotations;
using Robust.Client.Player; using Robust.Client.Player;
using Robust.Client.UserInterface.CustomControls; using Robust.Client.UserInterface.CustomControls;
using Robust.Shared.GameObjects.Systems; using Robust.Shared.GameObjects.Systems;
@@ -9,6 +10,7 @@ using Robust.Shared.IoC;
namespace Content.Client.GameObjects.EntitySystems namespace Content.Client.GameObjects.EntitySystems
{ {
[UsedImplicitly]
public sealed class CharacterInterfaceSystem : EntitySystem public sealed class CharacterInterfaceSystem : EntitySystem
{ {
[Dependency] private readonly IGameHud _gameHud = default!; [Dependency] private readonly IGameHud _gameHud = default!;

View File

@@ -1,6 +1,7 @@
using Content.Client.GameObjects.Components.HUD.Inventory; using Content.Client.GameObjects.Components.HUD.Inventory;
using Content.Client.UserInterface; using Content.Client.UserInterface;
using Content.Shared.Input; using Content.Shared.Input;
using JetBrains.Annotations;
using Robust.Client.Player; using Robust.Client.Player;
using Robust.Client.UserInterface.CustomControls; using Robust.Client.UserInterface.CustomControls;
using Robust.Shared.GameObjects.Systems; using Robust.Shared.GameObjects.Systems;
@@ -9,6 +10,7 @@ using Robust.Shared.IoC;
namespace Content.Client.GameObjects.EntitySystems namespace Content.Client.GameObjects.EntitySystems
{ {
[UsedImplicitly]
public sealed class ClientInventorySystem : EntitySystem public sealed class ClientInventorySystem : EntitySystem
{ {
[Dependency] private readonly IGameHud _gameHud = default!; [Dependency] private readonly IGameHud _gameHud = default!;

View File

@@ -1,7 +0,0 @@
namespace Content.Client.GameObjects.EntitySystems
{
public class ClientNotifySystem
{
}
}

View File

@@ -2,6 +2,7 @@
using Content.Client.GameObjects.Components.Items; using Content.Client.GameObjects.Components.Items;
using Content.Client.GameObjects.Components.Weapons.Ranged; using Content.Client.GameObjects.Components.Weapons.Ranged;
using Content.Shared.GameObjects.Components.Weapons.Ranged; using Content.Shared.GameObjects.Components.Weapons.Ranged;
using JetBrains.Annotations;
using Robust.Client.GameObjects.EntitySystems; using Robust.Client.GameObjects.EntitySystems;
using Robust.Client.Interfaces.Graphics.ClientEye; using Robust.Client.Interfaces.Graphics.ClientEye;
using Robust.Client.Interfaces.Input; using Robust.Client.Interfaces.Input;
@@ -15,6 +16,7 @@ using Robust.Shared.Map;
namespace Content.Client.GameObjects.EntitySystems namespace Content.Client.GameObjects.EntitySystems
{ {
[UsedImplicitly]
public class RangedWeaponSystem : EntitySystem public class RangedWeaponSystem : EntitySystem
{ {
[Dependency] private readonly IPlayerManager _playerManager = default!; [Dependency] private readonly IPlayerManager _playerManager = default!;

View File

@@ -26,12 +26,6 @@ namespace Content.Server.GameObjects.Components.Stack
{ {
private bool _throwIndividually = false; private bool _throwIndividually = false;
public override int Count
{
get => base.Count;
set => base.Count = value;
}
[ViewVariables(VVAccess.ReadWrite)] [ViewVariables(VVAccess.ReadWrite)]
public bool ThrowIndividually public bool ThrowIndividually
{ {

View File

@@ -26,11 +26,6 @@ namespace Content.Server.GameObjects.Components.Trigger.TimerTrigger
serializer.DataField(ref _delay, "delay", 0f); serializer.DataField(ref _delay, "delay", 0f);
} }
public override void Initialize()
{
base.Initialize();
}
bool IUse.UseEntity(UseEntityEventArgs eventArgs) bool IUse.UseEntity(UseEntityEventArgs eventArgs)
{ {
var triggerSystem = _entitySystemManager.GetEntitySystem<TriggerSystem>(); var triggerSystem = _entitySystemManager.GetEntitySystem<TriggerSystem>();

View File

@@ -9,11 +9,6 @@ namespace Content.Server.GameObjects.EntitySystems
{ {
private float _accumulatedFrameTime; private float _accumulatedFrameTime;
public override void Initialize()
{
base.Initialize();
}
public override void Update(float frameTime) public override void Update(float frameTime)
{ {
base.Update(frameTime); base.Update(frameTime);

View File

@@ -1,5 +1,6 @@
using Content.Shared.GameObjects.EntitySystemMessages; using Content.Shared.GameObjects.EntitySystemMessages;
using Content.Shared.GameObjects.EntitySystems; using Content.Shared.GameObjects.EntitySystems;
using JetBrains.Annotations;
using Robust.Server.Interfaces.Player; using Robust.Server.Interfaces.Player;
using Robust.Shared.GameObjects; using Robust.Shared.GameObjects;
using Robust.Shared.Interfaces.GameObjects; using Robust.Shared.Interfaces.GameObjects;
@@ -9,6 +10,7 @@ using Robust.Shared.Utility;
namespace Content.Server.GameObjects.EntitySystems.Click namespace Content.Server.GameObjects.EntitySystems.Click
{ {
[UsedImplicitly]
public class ExamineSystem : ExamineSystemShared public class ExamineSystem : ExamineSystemShared
{ {
private static readonly FormattedMessage _entityNotFoundMessage; private static readonly FormattedMessage _entityNotFoundMessage;

View File

@@ -1,9 +1,11 @@
using Content.Server.Interfaces; using Content.Server.Interfaces;
using JetBrains.Annotations;
using Robust.Shared.GameObjects.Systems; using Robust.Shared.GameObjects.Systems;
using Robust.Shared.IoC; using Robust.Shared.IoC;
namespace Content.Server.GameObjects.EntitySystems.DeviceNetwork namespace Content.Server.GameObjects.EntitySystems
{ {
[UsedImplicitly]
internal sealed class DeviceNetworkSystem : EntitySystem internal sealed class DeviceNetworkSystem : EntitySystem
{ {
[Dependency] private readonly IDeviceNetwork _network = default!; [Dependency] private readonly IDeviceNetwork _network = default!;

View File

@@ -1,9 +1,10 @@
 using Content.Server.GameObjects.Components.Interactable;
using Content.Server.GameObjects.Components.Interactable; using JetBrains.Annotations;
using Robust.Shared.GameObjects.Systems; using Robust.Shared.GameObjects.Systems;
namespace Content.Server.GameObjects.EntitySystems namespace Content.Server.GameObjects.EntitySystems
{ {
[UsedImplicitly]
public class ExpendableLightSystem : EntitySystem public class ExpendableLightSystem : EntitySystem
{ {
public override void Update(float frameTime) public override void Update(float frameTime)

View File

@@ -1,8 +1,10 @@
using Content.Server.GameObjects.Components.Atmos; using Content.Server.GameObjects.Components.Atmos;
using JetBrains.Annotations;
using Robust.Shared.GameObjects.Systems; using Robust.Shared.GameObjects.Systems;
namespace Content.Server.GameObjects.EntitySystems namespace Content.Server.GameObjects.EntitySystems
{ {
[UsedImplicitly]
public class GasAnalyzerSystem : EntitySystem public class GasAnalyzerSystem : EntitySystem
{ {
public override void Update(float frameTime) public override void Update(float frameTime)

View File

@@ -1,9 +1,11 @@
using Content.Server.GameObjects.Components.NodeContainer.NodeGroups; using Content.Server.GameObjects.Components.NodeContainer.NodeGroups;
using JetBrains.Annotations;
using Robust.Shared.GameObjects.Systems; using Robust.Shared.GameObjects.Systems;
using Robust.Shared.IoC; using Robust.Shared.IoC;
namespace Content.Server.GameObjects.EntitySystems namespace Content.Server.GameObjects.EntitySystems
{ {
[UsedImplicitly]
public class NodeGroupSystem : EntitySystem public class NodeGroupSystem : EntitySystem
{ {
[Dependency] private readonly INodeGroupManager _groupManager = default!; [Dependency] private readonly INodeGroupManager _groupManager = default!;

View File

@@ -1,9 +1,11 @@
using Content.Server.GameObjects.Components.Power.PowerNetComponents; using Content.Server.GameObjects.Components.Power.PowerNetComponents;
using JetBrains.Annotations;
using Robust.Shared.GameObjects.Systems; using Robust.Shared.GameObjects.Systems;
using Robust.Shared.IoC; using Robust.Shared.IoC;
namespace Content.Server.GameObjects.EntitySystems namespace Content.Server.GameObjects.EntitySystems
{ {
[UsedImplicitly]
public class PowerNetSystem : EntitySystem public class PowerNetSystem : EntitySystem
{ {
[Dependency] private readonly IPowerNetManager _powerNetManager = default!; [Dependency] private readonly IPowerNetManager _powerNetManager = default!;

View File

@@ -1,12 +1,15 @@
using Content.Server.GameObjects.Components.Singularity; using Content.Server.GameObjects.Components.Singularity;
using JetBrains.Annotations;
using Robust.Shared.GameObjects.Systems; using Robust.Shared.GameObjects.Systems;
namespace Content.Server.GameObjects.EntitySystems namespace Content.Server.GameObjects.EntitySystems
{ {
[UsedImplicitly]
public class SingularitySystem : EntitySystem public class SingularitySystem : EntitySystem
{ {
private float curTimeSingulo; private float curTimeSingulo;
private float curTimePull; private float curTimePull;
public override void Update(float frameTime) public override void Update(float frameTime)
{ {
base.Update(frameTime); base.Update(frameTime);

View File

@@ -1,11 +1,12 @@
using Content.Server.GameObjects.Components.Chemistry; using Content.Server.GameObjects.Components.Chemistry;
using JetBrains.Annotations;
using Robust.Shared.GameObjects.Systems; using Robust.Shared.GameObjects.Systems;
namespace Content.Server.GameObjects.EntitySystems namespace Content.Server.GameObjects.EntitySystems
{ {
[UsedImplicitly]
public class VaporSystem : EntitySystem public class VaporSystem : EntitySystem
{ {
/// <inheritdoc />
public override void Update(float frameTime) public override void Update(float frameTime)
{ {
foreach (var vaporComp in ComponentManager.EntityQuery<VaporComponent>()) foreach (var vaporComp in ComponentManager.EntityQuery<VaporComponent>())