diff --git a/Content.Server/Actions/Actions/ScreamAction.cs b/Content.Server/Actions/Actions/ScreamAction.cs index c07f3b5858..cce2098322 100644 --- a/Content.Server/Actions/Actions/ScreamAction.cs +++ b/Content.Server/Actions/Actions/ScreamAction.cs @@ -14,12 +14,13 @@ using Robust.Shared.Player; using Robust.Shared.Random; using Robust.Shared.Serialization.Manager.Attributes; using System; +using Robust.Shared.Serialization; namespace Content.Server.Actions.Actions { [UsedImplicitly] [DataDefinition] - public class ScreamAction : IInstantAction + public class ScreamAction : IInstantAction, ISerializationHooks { private const float Variation = 0.125f; private const float Volume = 4f; @@ -33,7 +34,7 @@ namespace Content.Server.Actions.Actions /// seconds [DataField("cooldown")] private float _cooldown = 10; - public ScreamAction() + void ISerializationHooks.AfterDeserialization() { IoCManager.InjectDependencies(this); } diff --git a/Content.Server/Body/Behavior/LungBehavior.cs b/Content.Server/Body/Behavior/LungBehavior.cs index 8616817612..28c5c6028e 100644 --- a/Content.Server/Body/Behavior/LungBehavior.cs +++ b/Content.Server/Body/Behavior/LungBehavior.cs @@ -11,6 +11,7 @@ using Content.Shared.MobState; using Robust.Shared.GameObjects; using Robust.Shared.IoC; using Robust.Shared.Localization; +using Robust.Shared.Serialization; using Robust.Shared.Serialization.Manager.Attributes; using Robust.Shared.Timing; using Robust.Shared.ViewVariables; @@ -18,7 +19,7 @@ using Robust.Shared.ViewVariables; namespace Content.Server.Body.Behavior { [DataDefinition] - public class LungBehavior : MechanismBehavior + public class LungBehavior : MechanismBehavior, ISerializationHooks { [Dependency] private readonly IGameTiming _gameTiming = default!; @@ -44,7 +45,7 @@ namespace Content.Server.Body.Behavior [ViewVariables] public float CycleDelay { get; set; } = 2; - public LungBehavior() + void ISerializationHooks.AfterDeserialization() { IoCManager.InjectDependencies(this); } diff --git a/Content.Server/Construction/Completions/VisualizerDataInt.cs b/Content.Server/Construction/Completions/VisualizerDataInt.cs index f9b5145b68..40392d0d21 100644 --- a/Content.Server/Construction/Completions/VisualizerDataInt.cs +++ b/Content.Server/Construction/Completions/VisualizerDataInt.cs @@ -5,17 +5,18 @@ using Robust.Server.GameObjects; using Robust.Shared.GameObjects; using Robust.Shared.IoC; using Robust.Shared.Reflection; +using Robust.Shared.Serialization; using Robust.Shared.Serialization.Manager.Attributes; namespace Content.Server.Construction.Completions { [UsedImplicitly] [DataDefinition] - public class VisualizerDataInt : IGraphAction + public class VisualizerDataInt : IGraphAction, ISerializationHooks { [Dependency] private readonly IReflectionManager _reflectionManager = default!; - public VisualizerDataInt() + void ISerializationHooks.AfterDeserialization() { IoCManager.InjectDependencies(this); } diff --git a/Content.Server/Construction/Conditions/ComponentInTile.cs b/Content.Server/Construction/Conditions/ComponentInTile.cs index 74759635b2..40c50cc265 100644 --- a/Content.Server/Construction/Conditions/ComponentInTile.cs +++ b/Content.Server/Construction/Conditions/ComponentInTile.cs @@ -5,6 +5,7 @@ using JetBrains.Annotations; using Robust.Shared.GameObjects; using Robust.Shared.IoC; using Robust.Shared.Map; +using Robust.Shared.Serialization; using Robust.Shared.Serialization.Manager.Attributes; namespace Content.Server.Construction.Conditions @@ -14,12 +15,12 @@ namespace Content.Server.Construction.Conditions /// [UsedImplicitly] [DataDefinition] - public class ComponentInTile : IGraphCondition + public class ComponentInTile : IGraphCondition, ISerializationHooks { [Dependency] private readonly IComponentFactory _componentFactory = default!; [Dependency] private readonly IMapManager _mapManager = default!; - public ComponentInTile() + void ISerializationHooks.AfterDeserialization() { IoCManager.InjectDependencies(this); }