diff --git a/Content.Benchmarks/ColorInterpolateBenchmark.cs b/Content.Benchmarks/ColorInterpolateBenchmark.cs index c09b26ef54..03ee12de5f 100644 --- a/Content.Benchmarks/ColorInterpolateBenchmark.cs +++ b/Content.Benchmarks/ColorInterpolateBenchmark.cs @@ -12,7 +12,7 @@ using SysVector4 = System.Numerics.Vector4; namespace Content.Benchmarks { [DisassemblyDiagnoser] - public class ColorInterpolateBenchmark + public sealed class ColorInterpolateBenchmark { #if NETCOREAPP private const MethodImplOptions AggressiveOpt = MethodImplOptions.AggressiveOptimization; diff --git a/Content.Benchmarks/ComponentFetchBenchmark.cs b/Content.Benchmarks/ComponentFetchBenchmark.cs index 2fad40ca67..c29df7aa6e 100644 --- a/Content.Benchmarks/ComponentFetchBenchmark.cs +++ b/Content.Benchmarks/ComponentFetchBenchmark.cs @@ -6,7 +6,7 @@ using Robust.Shared.Utility; namespace Content.Benchmarks { [SimpleJob] - public class ComponentFetchBenchmark + public sealed class ComponentFetchBenchmark { [Params(5000)] public int NEnt { get; set; } @@ -218,39 +218,39 @@ namespace Content.Benchmarks public EntityUid Uid; } - private class BComponent1 : BComponent + private sealed class BComponent1 : BComponent { } - private class BComponent2 : BComponent + private sealed class BComponent2 : BComponent { } - private class BComponent3 : BComponent + private sealed class BComponent3 : BComponent { } - private class BComponent4 : BComponent + private sealed class BComponent4 : BComponent { } - private class BComponentLookup : BComponent + private sealed class BComponentLookup : BComponent { } - private class BComponent6 : BComponent + private sealed class BComponent6 : BComponent { } - private class BComponent7 : BComponent + private sealed class BComponent7 : BComponent { } - private class BComponent8 : BComponent + private sealed class BComponent8 : BComponent { } - private class BComponent9 : BComponent + private sealed class BComponent9 : BComponent { } } diff --git a/Content.Benchmarks/DependencyInjectBenchmark.cs b/Content.Benchmarks/DependencyInjectBenchmark.cs index e87a43288e..aed00ec70b 100644 --- a/Content.Benchmarks/DependencyInjectBenchmark.cs +++ b/Content.Benchmarks/DependencyInjectBenchmark.cs @@ -6,7 +6,7 @@ namespace Content.Benchmarks { // To actually run this benchmark you'll have to make DependencyCollection public so it's accessible. - public class DependencyInjectBenchmark + public sealed class DependencyInjectBenchmark { [Params(InjectMode.Reflection, InjectMode.DynamicMethod)] public InjectMode Mode { get; set; } diff --git a/Content.Benchmarks/DynamicTreeBenchmark.cs b/Content.Benchmarks/DynamicTreeBenchmark.cs index 9dff449809..056982c847 100644 --- a/Content.Benchmarks/DynamicTreeBenchmark.cs +++ b/Content.Benchmarks/DynamicTreeBenchmark.cs @@ -5,7 +5,7 @@ using Robust.Shared.Physics; namespace Content.Benchmarks { [SimpleJob, MemoryDiagnoser] - public class DynamicTreeBenchmark + public sealed class DynamicTreeBenchmark { private static readonly Box2[] _aabbs1 = { diff --git a/Content.Benchmarks/EntityFetchBenchmark.cs b/Content.Benchmarks/EntityFetchBenchmark.cs index 3db0783502..165f0e9fb8 100644 --- a/Content.Benchmarks/EntityFetchBenchmark.cs +++ b/Content.Benchmarks/EntityFetchBenchmark.cs @@ -6,7 +6,7 @@ using Robust.Shared.Utility; namespace Content.Benchmarks { [SimpleJob] - public class EntityFetchBenchmark + public sealed class EntityFetchBenchmark { [Params(1000)] public int N { get; set; } diff --git a/Content.Benchmarks/EntityManagerGetAllComponents.cs b/Content.Benchmarks/EntityManagerGetAllComponents.cs index e81e09c7a9..a10ab758c9 100644 --- a/Content.Benchmarks/EntityManagerGetAllComponents.cs +++ b/Content.Benchmarks/EntityManagerGetAllComponents.cs @@ -10,7 +10,7 @@ using Robust.Shared.Reflection; namespace Content.Benchmarks { - public class EntityManagerGetAllComponents + public sealed class EntityManagerGetAllComponents { private IEntityManager _entityManager; @@ -87,7 +87,7 @@ namespace Content.Benchmarks return count; } - private class DummyComponent : Component + private sealed class DummyComponent : Component { } } diff --git a/Content.Benchmarks/NetSerializerIntBenchmark.cs b/Content.Benchmarks/NetSerializerIntBenchmark.cs index 3fe810dc07..5480da7f7d 100644 --- a/Content.Benchmarks/NetSerializerIntBenchmark.cs +++ b/Content.Benchmarks/NetSerializerIntBenchmark.cs @@ -6,7 +6,7 @@ using BenchmarkDotNet.Attributes; namespace Content.Benchmarks { [SimpleJob] - public class NetSerializerIntBenchmark + public sealed class NetSerializerIntBenchmark { private MemoryStream _writeStream; private MemoryStream _readStream; diff --git a/Content.Benchmarks/NetSerializerStringBenchmark.cs b/Content.Benchmarks/NetSerializerStringBenchmark.cs index 1d8aad77b5..6d79d28398 100644 --- a/Content.Benchmarks/NetSerializerStringBenchmark.cs +++ b/Content.Benchmarks/NetSerializerStringBenchmark.cs @@ -13,7 +13,7 @@ namespace Content.Benchmarks // Code for the *Slow and *Unsafe implementations taken from NetSerializer, licensed under the MIT license. [MemoryDiagnoser] - public class NetSerializerStringBenchmark + public sealed class NetSerializerStringBenchmark { private const int StringByteBufferLength = 256; private const int StringCharBufferLength = 128; diff --git a/Content.Benchmarks/StereoToMonoBenchmark.cs b/Content.Benchmarks/StereoToMonoBenchmark.cs index 89dec8a3dd..545c2ff472 100644 --- a/Content.Benchmarks/StereoToMonoBenchmark.cs +++ b/Content.Benchmarks/StereoToMonoBenchmark.cs @@ -3,7 +3,7 @@ using BenchmarkDotNet.Attributes; namespace Content.Benchmarks { - public class StereoToMonoBenchmark + public sealed class StereoToMonoBenchmark { [Params(128, 256, 512)] public int N { get; set; } diff --git a/Content.Client/AI/ClientAiDebugSystem.cs b/Content.Client/AI/ClientAiDebugSystem.cs index 74a5e20d96..e9b1c3b2cf 100644 --- a/Content.Client/AI/ClientAiDebugSystem.cs +++ b/Content.Client/AI/ClientAiDebugSystem.cs @@ -13,7 +13,7 @@ using static Robust.Client.UserInterface.Controls.BoxContainer; namespace Content.Client.AI { #if DEBUG - public class ClientAiDebugSystem : EntitySystem + public sealed class ClientAiDebugSystem : EntitySystem { [Dependency] private readonly IEyeManager _eyeManager = default!; diff --git a/Content.Client/AI/ClientPathfindingDebugSystem.cs b/Content.Client/AI/ClientPathfindingDebugSystem.cs index 428fbeffeb..638bbc2976 100644 --- a/Content.Client/AI/ClientPathfindingDebugSystem.cs +++ b/Content.Client/AI/ClientPathfindingDebugSystem.cs @@ -16,7 +16,7 @@ using Robust.Shared.Timing; namespace Content.Client.AI { #if DEBUG - public class ClientPathfindingDebugSystem : EntitySystem + public sealed class ClientPathfindingDebugSystem : EntitySystem { [Dependency] private readonly IPrototypeManager _prototypeManager = default!; [Dependency] private readonly IEyeManager _eyeManager = default!; diff --git a/Content.Client/AME/UI/AMEControllerBoundUserInterface.cs b/Content.Client/AME/UI/AMEControllerBoundUserInterface.cs index aaeaf538f3..4700292400 100644 --- a/Content.Client/AME/UI/AMEControllerBoundUserInterface.cs +++ b/Content.Client/AME/UI/AMEControllerBoundUserInterface.cs @@ -7,7 +7,7 @@ using static Content.Shared.AME.SharedAMEControllerComponent; namespace Content.Client.AME.UI { [UsedImplicitly] - public class AMEControllerBoundUserInterface : BoundUserInterface + public sealed class AMEControllerBoundUserInterface : BoundUserInterface { private AMEWindow? _window; diff --git a/Content.Client/AME/UI/AMEWindow.xaml.cs b/Content.Client/AME/UI/AMEWindow.xaml.cs index 83f7b354db..da7abc7587 100644 --- a/Content.Client/AME/UI/AMEWindow.xaml.cs +++ b/Content.Client/AME/UI/AMEWindow.xaml.cs @@ -12,7 +12,7 @@ using static Content.Shared.AME.SharedAMEControllerComponent; namespace Content.Client.AME.UI { [GenerateTypedNameReferences] - public partial class AMEWindow : DefaultWindow + public sealed partial class AMEWindow : DefaultWindow { public AMEWindow(AMEControllerBoundUserInterface ui) { diff --git a/Content.Client/AME/Visualizers/AMEControllerVisualizer.cs b/Content.Client/AME/Visualizers/AMEControllerVisualizer.cs index d4c1a19427..27526e1e64 100644 --- a/Content.Client/AME/Visualizers/AMEControllerVisualizer.cs +++ b/Content.Client/AME/Visualizers/AMEControllerVisualizer.cs @@ -7,7 +7,7 @@ using static Content.Shared.AME.SharedAMEControllerComponent; namespace Content.Client.AME.Visualizers { [UsedImplicitly] - public class AMEControllerVisualizer : AppearanceVisualizer + public sealed class AMEControllerVisualizer : AppearanceVisualizer { public override void InitializeEntity(EntityUid entity) { diff --git a/Content.Client/AME/Visualizers/AMEVisualizer.cs b/Content.Client/AME/Visualizers/AMEVisualizer.cs index 98910b0b6d..dabbccba20 100644 --- a/Content.Client/AME/Visualizers/AMEVisualizer.cs +++ b/Content.Client/AME/Visualizers/AMEVisualizer.cs @@ -7,7 +7,7 @@ using static Content.Shared.AME.SharedAMEShieldComponent; namespace Content.Client.AME.Visualizers { [UsedImplicitly] - public class AMEVisualizer : AppearanceVisualizer + public sealed class AMEVisualizer : AppearanceVisualizer { public override void InitializeEntity(EntityUid entity) { diff --git a/Content.Client/Access/UI/IdCardConsoleBoundUserInterface.cs b/Content.Client/Access/UI/IdCardConsoleBoundUserInterface.cs index e492d7e89b..ec639c8b90 100644 --- a/Content.Client/Access/UI/IdCardConsoleBoundUserInterface.cs +++ b/Content.Client/Access/UI/IdCardConsoleBoundUserInterface.cs @@ -7,7 +7,7 @@ using static Content.Shared.Access.Components.SharedIdCardConsoleComponent; namespace Content.Client.Access.UI { - public class IdCardConsoleBoundUserInterface : BoundUserInterface + public sealed class IdCardConsoleBoundUserInterface : BoundUserInterface { [Dependency] private readonly IPrototypeManager _prototypeManager = default!; [Dependency] private readonly IEntityManager _entityManager = default!; diff --git a/Content.Client/Access/UI/IdCardConsoleWindow.xaml.cs b/Content.Client/Access/UI/IdCardConsoleWindow.xaml.cs index c6be90059f..8562d8e73b 100644 --- a/Content.Client/Access/UI/IdCardConsoleWindow.xaml.cs +++ b/Content.Client/Access/UI/IdCardConsoleWindow.xaml.cs @@ -13,7 +13,7 @@ using static Content.Shared.Access.Components.SharedIdCardConsoleComponent; namespace Content.Client.Access.UI { [GenerateTypedNameReferences] - public partial class IdCardConsoleWindow : DefaultWindow + public sealed partial class IdCardConsoleWindow : DefaultWindow { private readonly IdCardConsoleBoundUserInterface _owner; diff --git a/Content.Client/Actions/ActionsSystem.cs b/Content.Client/Actions/ActionsSystem.cs index e56112b2c5..b5201fcd62 100644 --- a/Content.Client/Actions/ActionsSystem.cs +++ b/Content.Client/Actions/ActionsSystem.cs @@ -12,7 +12,7 @@ using Robust.Shared.IoC; namespace Content.Client.Actions { [UsedImplicitly] - public class ActionsSystem : EntitySystem + public sealed class ActionsSystem : EntitySystem { [Dependency] private readonly IPlayerManager _playerManager = default!; diff --git a/Content.Client/Actions/Assignments/ActionAssignments.cs b/Content.Client/Actions/Assignments/ActionAssignments.cs index 5eb0f79632..a7e3e7d8aa 100644 --- a/Content.Client/Actions/Assignments/ActionAssignments.cs +++ b/Content.Client/Actions/Assignments/ActionAssignments.cs @@ -9,7 +9,7 @@ namespace Content.Client.Actions.Assignments /// /// Tracks and manages the hotbar assignments for actions. /// - public class ActionAssignments + public sealed class ActionAssignments { // the slots and assignments fields hold client's assignments (what action goes in what slot), // which are completely client side and independent of what actions they've actually been granted and diff --git a/Content.Client/Actions/UI/ActionAlertTooltip.cs b/Content.Client/Actions/UI/ActionAlertTooltip.cs index b64faa56b1..392e67873a 100644 --- a/Content.Client/Actions/UI/ActionAlertTooltip.cs +++ b/Content.Client/Actions/UI/ActionAlertTooltip.cs @@ -11,7 +11,7 @@ namespace Content.Client.Actions.UI /// /// Tooltip for actions or alerts because they are very similar. /// - public class ActionAlertTooltip : PanelContainer + public sealed class ActionAlertTooltip : PanelContainer { private const float TooltipTextMaxWidth = 350; diff --git a/Content.Client/Actions/UI/ActionMenu.cs b/Content.Client/Actions/UI/ActionMenu.cs index dfce37feb8..b3140a32b5 100644 --- a/Content.Client/Actions/UI/ActionMenu.cs +++ b/Content.Client/Actions/UI/ActionMenu.cs @@ -27,7 +27,7 @@ namespace Content.Client.Actions.UI /// Action selection menu, allows filtering and searching over all possible /// actions and populating those actions into the hotbar. /// - public class ActionMenu : DefaultWindow + public sealed class ActionMenu : DefaultWindow { private const string ItemTag = "item"; private const string NotItemTag = "not item"; diff --git a/Content.Client/Actions/UI/ActionMenuItem.cs b/Content.Client/Actions/UI/ActionMenuItem.cs index 32e42aa9ec..03293e03f5 100644 --- a/Content.Client/Actions/UI/ActionMenuItem.cs +++ b/Content.Client/Actions/UI/ActionMenuItem.cs @@ -10,7 +10,7 @@ namespace Content.Client.Actions.UI /// /// An individual action visible in the action menu. /// - public class ActionMenuItem : ContainerButton + public sealed class ActionMenuItem : ContainerButton { // shorter than default tooltip delay so user can // quickly explore what each action is diff --git a/Content.Client/Actions/UI/ActionSlot.cs b/Content.Client/Actions/UI/ActionSlot.cs index 57ee669280..77f0ac4c07 100644 --- a/Content.Client/Actions/UI/ActionSlot.cs +++ b/Content.Client/Actions/UI/ActionSlot.cs @@ -25,7 +25,7 @@ namespace Content.Client.Actions.UI /// A slot in the action hotbar. Not extending BaseButton because /// its needs diverged too much. /// - public class ActionSlot : PanelContainer + public sealed class ActionSlot : PanelContainer { // shorter than default tooltip delay so user can more easily // see what actions they've been given diff --git a/Content.Client/Administration/AdminNameOverlay.cs b/Content.Client/Administration/AdminNameOverlay.cs index 821a140f06..e4963cbfa6 100644 --- a/Content.Client/Administration/AdminNameOverlay.cs +++ b/Content.Client/Administration/AdminNameOverlay.cs @@ -7,7 +7,7 @@ using Robust.Shared.Maths; namespace Content.Client.Administration { - internal class AdminNameOverlay : Overlay + internal sealed class AdminNameOverlay : Overlay { private readonly AdminSystem _system; private readonly IEntityManager _entityManager; diff --git a/Content.Client/Administration/AdminSystem.Menu.cs b/Content.Client/Administration/AdminSystem.Menu.cs index 6f02c3df1c..964dcf4114 100644 --- a/Content.Client/Administration/AdminSystem.Menu.cs +++ b/Content.Client/Administration/AdminSystem.Menu.cs @@ -19,7 +19,7 @@ using Robust.Shared.Network; namespace Content.Client.Administration { - public partial class AdminSystem + public sealed partial class AdminSystem { [Dependency] private readonly INetManager _netManager = default!; [Dependency] private readonly IInputManager _inputManager = default!; diff --git a/Content.Client/Administration/AdminSystem.Overlay.cs b/Content.Client/Administration/AdminSystem.Overlay.cs index 6c85e04bd0..4c6b24a6d6 100644 --- a/Content.Client/Administration/AdminSystem.Overlay.cs +++ b/Content.Client/Administration/AdminSystem.Overlay.cs @@ -5,7 +5,7 @@ using Robust.Shared.IoC; namespace Content.Client.Administration { - public partial class AdminSystem + public sealed partial class AdminSystem { [Dependency] private readonly IClientAdminManager _adminManager = default!; [Dependency] private readonly IEyeManager _eyeManager = default!; diff --git a/Content.Client/Administration/AdminSystem.cs b/Content.Client/Administration/AdminSystem.cs index 3b4b0a9240..137a4ea3fb 100644 --- a/Content.Client/Administration/AdminSystem.cs +++ b/Content.Client/Administration/AdminSystem.cs @@ -9,7 +9,7 @@ using Robust.Shared.Network; namespace Content.Client.Administration { - public partial class AdminSystem : EntitySystem + public sealed partial class AdminSystem : EntitySystem { public event Action>? PlayerListChanged; diff --git a/Content.Client/Administration/AdminVerbSystem.cs b/Content.Client/Administration/AdminVerbSystem.cs index e8dc2f5589..cb440a92da 100644 --- a/Content.Client/Administration/AdminVerbSystem.cs +++ b/Content.Client/Administration/AdminVerbSystem.cs @@ -9,7 +9,7 @@ namespace Content.Client.Verbs /// /// Client-side admin verb system. These usually open some sort of UIs. /// - class AdminVerbSystem : EntitySystem + sealed class AdminVerbSystem : EntitySystem { [Dependency] private readonly IClientConGroupController _clientConGroupController = default!; [Dependency] private readonly IClientConsoleHost _clientConsoleHost = default!; diff --git a/Content.Client/Administration/BwoinkSystem.cs b/Content.Client/Administration/BwoinkSystem.cs index 9b83d8a27f..14a39f0eb1 100644 --- a/Content.Client/Administration/BwoinkSystem.cs +++ b/Content.Client/Administration/BwoinkSystem.cs @@ -20,7 +20,7 @@ using Robust.Shared.Network; namespace Content.Client.Administration { [UsedImplicitly] - public class BwoinkSystem : SharedBwoinkSystem + public sealed class BwoinkSystem : SharedBwoinkSystem { [Dependency] private readonly IClientAdminManager _adminManager = default!; [Dependency] private readonly IPlayerManager _playerManager = default!; diff --git a/Content.Client/Administration/Logs/AdminLogSystem.cs b/Content.Client/Administration/Logs/AdminLogSystem.cs index 895fd62925..1a423ab01d 100644 --- a/Content.Client/Administration/Logs/AdminLogSystem.cs +++ b/Content.Client/Administration/Logs/AdminLogSystem.cs @@ -2,6 +2,6 @@ namespace Content.Client.Administration.Logs; -public class AdminLogSystem : SharedAdminLogSystem +public sealed class AdminLogSystem : SharedAdminLogSystem { } diff --git a/Content.Client/Administration/Managers/ClientAdminManager.cs b/Content.Client/Administration/Managers/ClientAdminManager.cs index 37ad8aa7e0..1f3ed03bb9 100644 --- a/Content.Client/Administration/Managers/ClientAdminManager.cs +++ b/Content.Client/Administration/Managers/ClientAdminManager.cs @@ -11,7 +11,7 @@ using Robust.Shared.Reflection; namespace Content.Client.Administration.Managers { - public class ClientAdminManager : IClientAdminManager, IClientConGroupImplementation, IPostInjectInit + public sealed class ClientAdminManager : IClientAdminManager, IClientConGroupImplementation, IPostInjectInit { [Dependency] private readonly IClientNetManager _netMgr = default!; [Dependency] private readonly IClientConGroupController _conGroup = default!; diff --git a/Content.Client/Administration/Managers/GamePrototypeLoadManager.cs b/Content.Client/Administration/Managers/GamePrototypeLoadManager.cs index 15944516a2..74cd9cd7d3 100644 --- a/Content.Client/Administration/Managers/GamePrototypeLoadManager.cs +++ b/Content.Client/Administration/Managers/GamePrototypeLoadManager.cs @@ -8,7 +8,7 @@ using Robust.Shared.Prototypes; namespace Content.Client.Administration.Managers; -public class GamePrototypeLoadManager : IGamePrototypeLoadManager +public sealed class GamePrototypeLoadManager : IGamePrototypeLoadManager { [Dependency] private readonly IClientNetManager _netManager = default!; [Dependency] private readonly IPrototypeManager _prototypeManager = default!; diff --git a/Content.Client/Administration/UI/AdminAnnounceWindow.xaml.cs b/Content.Client/Administration/UI/AdminAnnounceWindow.xaml.cs index 94b373d87b..0cc0a8f61b 100644 --- a/Content.Client/Administration/UI/AdminAnnounceWindow.xaml.cs +++ b/Content.Client/Administration/UI/AdminAnnounceWindow.xaml.cs @@ -10,7 +10,7 @@ using Robust.Shared.Localization; namespace Content.Client.Administration.UI { [GenerateTypedNameReferences] - public partial class AdminAnnounceWindow : DefaultWindow + public sealed partial class AdminAnnounceWindow : DefaultWindow { [Dependency] private readonly ILocalizationManager _localization = default!; diff --git a/Content.Client/Administration/UI/AdminMenuWindow.xaml.cs b/Content.Client/Administration/UI/AdminMenuWindow.xaml.cs index 76d12af176..be0c5da45d 100644 --- a/Content.Client/Administration/UI/AdminMenuWindow.xaml.cs +++ b/Content.Client/Administration/UI/AdminMenuWindow.xaml.cs @@ -9,7 +9,7 @@ using Robust.Shared.Localization; namespace Content.Client.Administration.UI { [GenerateTypedNameReferences] - public partial class AdminMenuWindow : DefaultWindow + public sealed partial class AdminMenuWindow : DefaultWindow { [Dependency] private readonly IGameHud? _gameHud = default!; diff --git a/Content.Client/Administration/UI/AdminMenuWindowEui.cs b/Content.Client/Administration/UI/AdminMenuWindowEui.cs index f26ae5a1a6..24e78c7a5a 100644 --- a/Content.Client/Administration/UI/AdminMenuWindowEui.cs +++ b/Content.Client/Administration/UI/AdminMenuWindowEui.cs @@ -4,7 +4,7 @@ using Robust.Client.UserInterface.Controls; namespace Content.Client.Administration.UI { - public class AdminAnnounceEui : BaseEui + public sealed class AdminAnnounceEui : BaseEui { private readonly AdminAnnounceWindow _window; diff --git a/Content.Client/Administration/UI/BwoinkWindow.xaml.cs b/Content.Client/Administration/UI/BwoinkWindow.xaml.cs index 92bc73f09e..3af538d887 100644 --- a/Content.Client/Administration/UI/BwoinkWindow.xaml.cs +++ b/Content.Client/Administration/UI/BwoinkWindow.xaml.cs @@ -19,7 +19,7 @@ namespace Content.Client.Administration.UI /// This window connects to a BwoinkSystem channel. BwoinkSystem manages the rest. /// [GenerateTypedNameReferences] - public partial class BwoinkWindow : DefaultWindow + public sealed partial class BwoinkWindow : DefaultWindow { [Dependency] private readonly IClientAdminManager _adminManager = default!; [Dependency] private readonly IClientConsoleHost _console = default!; diff --git a/Content.Client/Administration/UI/CustomControls/AdminLogImpactButton.cs b/Content.Client/Administration/UI/CustomControls/AdminLogImpactButton.cs index 5cf2e94f9c..879569ce2e 100644 --- a/Content.Client/Administration/UI/CustomControls/AdminLogImpactButton.cs +++ b/Content.Client/Administration/UI/CustomControls/AdminLogImpactButton.cs @@ -4,7 +4,7 @@ using Robust.Client.UserInterface.Controls; namespace Content.Client.Administration.UI.CustomControls; -public class AdminLogImpactButton : Button +public sealed class AdminLogImpactButton : Button { public AdminLogImpactButton(LogImpact impact) { diff --git a/Content.Client/Administration/UI/CustomControls/AdminLogLabel.cs b/Content.Client/Administration/UI/CustomControls/AdminLogLabel.cs index ee7fee8e70..0de38ce234 100644 --- a/Content.Client/Administration/UI/CustomControls/AdminLogLabel.cs +++ b/Content.Client/Administration/UI/CustomControls/AdminLogLabel.cs @@ -4,7 +4,7 @@ using Robust.Client.UserInterface.Controls; namespace Content.Client.Administration.UI.CustomControls; -public class AdminLogLabel : RichTextLabel +public sealed class AdminLogLabel : RichTextLabel { public AdminLogLabel(ref SharedAdminLog log, HSeparator separator) { diff --git a/Content.Client/Administration/UI/CustomControls/AdminLogPlayerButton.cs b/Content.Client/Administration/UI/CustomControls/AdminLogPlayerButton.cs index 3e4c71732b..a3b0438561 100644 --- a/Content.Client/Administration/UI/CustomControls/AdminLogPlayerButton.cs +++ b/Content.Client/Administration/UI/CustomControls/AdminLogPlayerButton.cs @@ -3,7 +3,7 @@ using Robust.Client.UserInterface.Controls; namespace Content.Client.Administration.UI.CustomControls; -public class AdminLogPlayerButton : Button +public sealed class AdminLogPlayerButton : Button { public AdminLogPlayerButton(Guid id) { diff --git a/Content.Client/Administration/UI/CustomControls/AdminLogTypeButton.cs b/Content.Client/Administration/UI/CustomControls/AdminLogTypeButton.cs index 6ee1ae95d8..e0a8a55e79 100644 --- a/Content.Client/Administration/UI/CustomControls/AdminLogTypeButton.cs +++ b/Content.Client/Administration/UI/CustomControls/AdminLogTypeButton.cs @@ -4,7 +4,7 @@ using Robust.Client.UserInterface.Controls; namespace Content.Client.Administration.UI.CustomControls; -public class AdminLogTypeButton : Button +public sealed class AdminLogTypeButton : Button { public AdminLogTypeButton(LogType type) { diff --git a/Content.Client/Administration/UI/CustomControls/BwoinkPanel.xaml.cs b/Content.Client/Administration/UI/CustomControls/BwoinkPanel.xaml.cs index 3135389af4..582147b69b 100644 --- a/Content.Client/Administration/UI/CustomControls/BwoinkPanel.xaml.cs +++ b/Content.Client/Administration/UI/CustomControls/BwoinkPanel.xaml.cs @@ -10,7 +10,7 @@ using Robust.Shared.Utility; namespace Content.Client.Administration.UI.CustomControls { [GenerateTypedNameReferences] - public partial class BwoinkPanel : BoxContainer + public sealed partial class BwoinkPanel : BoxContainer { private readonly BwoinkSystem _bwoinkSystem; public readonly NetUserId ChannelId; diff --git a/Content.Client/Administration/UI/CustomControls/CommandButton.cs b/Content.Client/Administration/UI/CustomControls/CommandButton.cs index 5e5c224aaa..2b61a0fe02 100644 --- a/Content.Client/Administration/UI/CustomControls/CommandButton.cs +++ b/Content.Client/Administration/UI/CustomControls/CommandButton.cs @@ -4,6 +4,7 @@ using Robust.Shared.IoC; namespace Content.Client.Administration.UI.CustomControls { + [Virtual] public class CommandButton : Button { public string? Command { get; set; } diff --git a/Content.Client/Administration/UI/CustomControls/HSeparator.cs b/Content.Client/Administration/UI/CustomControls/HSeparator.cs index 3e7005942d..2dfb0b27fe 100644 --- a/Content.Client/Administration/UI/CustomControls/HSeparator.cs +++ b/Content.Client/Administration/UI/CustomControls/HSeparator.cs @@ -5,7 +5,7 @@ using Robust.Shared.Maths; namespace Content.Client.Administration.UI.CustomControls; -public class HSeparator : Control +public sealed class HSeparator : Control { private static readonly Color SeparatorColor = Color.FromHex("#3D4059"); diff --git a/Content.Client/Administration/UI/CustomControls/PlayerListControl.xaml.cs b/Content.Client/Administration/UI/CustomControls/PlayerListControl.xaml.cs index 332994fdb5..02c87dc778 100644 --- a/Content.Client/Administration/UI/CustomControls/PlayerListControl.xaml.cs +++ b/Content.Client/Administration/UI/CustomControls/PlayerListControl.xaml.cs @@ -11,7 +11,7 @@ using Robust.Shared.IoC; namespace Content.Client.Administration.UI.CustomControls { [GenerateTypedNameReferences] - public partial class PlayerListControl : BoxContainer + public sealed partial class PlayerListControl : BoxContainer { private readonly AdminSystem _adminSystem; diff --git a/Content.Client/Administration/UI/CustomControls/UICommandButton.cs b/Content.Client/Administration/UI/CustomControls/UICommandButton.cs index d4ec6e9fe7..ea10c7637e 100644 --- a/Content.Client/Administration/UI/CustomControls/UICommandButton.cs +++ b/Content.Client/Administration/UI/CustomControls/UICommandButton.cs @@ -4,7 +4,7 @@ using Robust.Shared.IoC; namespace Content.Client.Administration.UI.CustomControls { - public class UICommandButton : CommandButton + public sealed class UICommandButton : CommandButton { public Type? WindowType { get; set; } private DefaultWindow? _window; diff --git a/Content.Client/Administration/UI/CustomControls/VSeparator.cs b/Content.Client/Administration/UI/CustomControls/VSeparator.cs index b413cacd49..3f4dbc18bc 100644 --- a/Content.Client/Administration/UI/CustomControls/VSeparator.cs +++ b/Content.Client/Administration/UI/CustomControls/VSeparator.cs @@ -4,7 +4,7 @@ using Robust.Shared.Maths; namespace Content.Client.Administration.UI.CustomControls; -public class VSeparator : PanelContainer +public sealed class VSeparator : PanelContainer { private static readonly Color SeparatorColor = Color.FromHex("#3D4059"); diff --git a/Content.Client/Administration/UI/Logs/AdminLogsControl.xaml.cs b/Content.Client/Administration/UI/Logs/AdminLogsControl.xaml.cs index 8b8fea5efd..210d14babe 100644 --- a/Content.Client/Administration/UI/Logs/AdminLogsControl.xaml.cs +++ b/Content.Client/Administration/UI/Logs/AdminLogsControl.xaml.cs @@ -16,7 +16,7 @@ using static Robust.Client.UserInterface.Controls.LineEdit; namespace Content.Client.Administration.UI.Logs; [GenerateTypedNameReferences] -public partial class AdminLogsControl : Control +public sealed partial class AdminLogsControl : Control { private readonly Comparer _adminLogTypeButtonComparer = Comparer.Create((a, b) => diff --git a/Content.Client/Administration/UI/Logs/AdminLogsEui.cs b/Content.Client/Administration/UI/Logs/AdminLogsEui.cs index 90492f5de6..39917c31a9 100644 --- a/Content.Client/Administration/UI/Logs/AdminLogsEui.cs +++ b/Content.Client/Administration/UI/Logs/AdminLogsEui.cs @@ -13,7 +13,7 @@ using static Content.Shared.Administration.AdminLogsEuiMsg; namespace Content.Client.Administration.UI.Logs; [UsedImplicitly] -public class AdminLogsEui : BaseEui +public sealed class AdminLogsEui : BaseEui { [Dependency] private readonly IClyde _clyde = default!; [Dependency] private readonly IUserInterfaceManager _uiManager = default!; diff --git a/Content.Client/Administration/UI/Logs/AdminLogsWindow.xaml.cs b/Content.Client/Administration/UI/Logs/AdminLogsWindow.xaml.cs index 8743296815..23e6e9145e 100644 --- a/Content.Client/Administration/UI/Logs/AdminLogsWindow.xaml.cs +++ b/Content.Client/Administration/UI/Logs/AdminLogsWindow.xaml.cs @@ -5,7 +5,7 @@ using Robust.Client.UserInterface.XAML; namespace Content.Client.Administration.UI.Logs; [GenerateTypedNameReferences] -public partial class AdminLogsWindow : DefaultWindow +public sealed partial class AdminLogsWindow : DefaultWindow { public AdminLogsWindow() { diff --git a/Content.Client/Administration/UI/SetOutfit/SetOutfitMenu.xaml.cs b/Content.Client/Administration/UI/SetOutfit/SetOutfitMenu.xaml.cs index 4aa3ce0a93..d06fcc3726 100644 --- a/Content.Client/Administration/UI/SetOutfit/SetOutfitMenu.xaml.cs +++ b/Content.Client/Administration/UI/SetOutfit/SetOutfitMenu.xaml.cs @@ -12,7 +12,7 @@ using Robust.Shared.Prototypes; namespace Content.Client.Administration.UI.SetOutfit { [GenerateTypedNameReferences] - public partial class SetOutfitMenu : DefaultWindow + public sealed partial class SetOutfitMenu : DefaultWindow { [Dependency] private readonly IPrototypeManager _prototypeManager = default!; [Dependency] private readonly IClientConsoleHost _consoleHost = default!; diff --git a/Content.Client/Administration/UI/Tabs/AdminTab/AdminShuttleWindow.xaml.cs b/Content.Client/Administration/UI/Tabs/AdminTab/AdminShuttleWindow.xaml.cs index 48377196b9..fbd7c3dcf3 100644 --- a/Content.Client/Administration/UI/Tabs/AdminTab/AdminShuttleWindow.xaml.cs +++ b/Content.Client/Administration/UI/Tabs/AdminTab/AdminShuttleWindow.xaml.cs @@ -11,7 +11,7 @@ using Robust.Shared.Localization; namespace Content.Client.Administration.UI.Tabs.AdminTab { [GenerateTypedNameReferences] - public partial class AdminShuttleWindow : DefaultWindow + public sealed partial class AdminShuttleWindow : DefaultWindow { public AdminShuttleWindow() { diff --git a/Content.Client/Administration/UI/Tabs/AdminTab/AdminTab.xaml.cs b/Content.Client/Administration/UI/Tabs/AdminTab/AdminTab.xaml.cs index 02dad6cbd2..63534659f4 100644 --- a/Content.Client/Administration/UI/Tabs/AdminTab/AdminTab.xaml.cs +++ b/Content.Client/Administration/UI/Tabs/AdminTab/AdminTab.xaml.cs @@ -4,7 +4,7 @@ using Robust.Client.UserInterface; namespace Content.Client.Administration.UI.Tabs.AdminTab { [GenerateTypedNameReferences] - public partial class AdminTab : Control + public sealed partial class AdminTab : Control { } } diff --git a/Content.Client/Administration/UI/Tabs/AdminTab/BanWindow.xaml.cs b/Content.Client/Administration/UI/Tabs/AdminTab/BanWindow.xaml.cs index c40b2369ef..f3ac70bbef 100644 --- a/Content.Client/Administration/UI/Tabs/AdminTab/BanWindow.xaml.cs +++ b/Content.Client/Administration/UI/Tabs/AdminTab/BanWindow.xaml.cs @@ -13,7 +13,7 @@ namespace Content.Client.Administration.UI.Tabs.AdminTab { [GenerateTypedNameReferences] [UsedImplicitly] - public partial class BanWindow : DefaultWindow + public sealed partial class BanWindow : DefaultWindow { public BanWindow() { diff --git a/Content.Client/Administration/UI/Tabs/AdminTab/PlayerActionsWindow.xaml.cs b/Content.Client/Administration/UI/Tabs/AdminTab/PlayerActionsWindow.xaml.cs index bc9b246c17..3532609fec 100644 --- a/Content.Client/Administration/UI/Tabs/AdminTab/PlayerActionsWindow.xaml.cs +++ b/Content.Client/Administration/UI/Tabs/AdminTab/PlayerActionsWindow.xaml.cs @@ -12,7 +12,7 @@ namespace Content.Client.Administration.UI.Tabs.AdminTab { [GenerateTypedNameReferences] [UsedImplicitly] - public partial class PlayerActionsWindow : DefaultWindow + public sealed partial class PlayerActionsWindow : DefaultWindow { private PlayerInfo? _selectedPlayer; diff --git a/Content.Client/Administration/UI/Tabs/AdminTab/TeleportWindow.xaml.cs b/Content.Client/Administration/UI/Tabs/AdminTab/TeleportWindow.xaml.cs index 267cbc1219..c5a9bd036a 100644 --- a/Content.Client/Administration/UI/Tabs/AdminTab/TeleportWindow.xaml.cs +++ b/Content.Client/Administration/UI/Tabs/AdminTab/TeleportWindow.xaml.cs @@ -11,7 +11,7 @@ namespace Content.Client.Administration.UI.Tabs.AdminTab { [GenerateTypedNameReferences] [UsedImplicitly] - public partial class TeleportWindow : DefaultWindow + public sealed partial class TeleportWindow : DefaultWindow { private PlayerInfo? _selectedPlayer; diff --git a/Content.Client/Administration/UI/Tabs/AdminbusTab/StationEventsWindow.xaml.cs b/Content.Client/Administration/UI/Tabs/AdminbusTab/StationEventsWindow.xaml.cs index b69ff79758..62048c45ab 100644 --- a/Content.Client/Administration/UI/Tabs/AdminbusTab/StationEventsWindow.xaml.cs +++ b/Content.Client/Administration/UI/Tabs/AdminbusTab/StationEventsWindow.xaml.cs @@ -14,7 +14,7 @@ namespace Content.Client.Administration.UI.Tabs.AdminbusTab { [GenerateTypedNameReferences] [UsedImplicitly] - public partial class StationEventsWindow : DefaultWindow + public sealed partial class StationEventsWindow : DefaultWindow { private List? _data; diff --git a/Content.Client/Administration/UI/Tabs/AtmosTab/AddAtmosWindow.xaml.cs b/Content.Client/Administration/UI/Tabs/AtmosTab/AddAtmosWindow.xaml.cs index 820425e0b6..bc27287d28 100644 --- a/Content.Client/Administration/UI/Tabs/AtmosTab/AddAtmosWindow.xaml.cs +++ b/Content.Client/Administration/UI/Tabs/AtmosTab/AddAtmosWindow.xaml.cs @@ -14,7 +14,7 @@ namespace Content.Client.Administration.UI.Tabs.AtmosTab { [GenerateTypedNameReferences] [UsedImplicitly] - public partial class AddAtmosWindow : DefaultWindow + public sealed partial class AddAtmosWindow : DefaultWindow { private IEnumerable? _data; diff --git a/Content.Client/Administration/UI/Tabs/AtmosTab/AddGasWindow.xaml.cs b/Content.Client/Administration/UI/Tabs/AtmosTab/AddGasWindow.xaml.cs index a4c250d080..4818ed804b 100644 --- a/Content.Client/Administration/UI/Tabs/AtmosTab/AddGasWindow.xaml.cs +++ b/Content.Client/Administration/UI/Tabs/AtmosTab/AddGasWindow.xaml.cs @@ -16,7 +16,7 @@ namespace Content.Client.Administration.UI.Tabs.AtmosTab { [GenerateTypedNameReferences] [UsedImplicitly] - public partial class AddGasWindow : DefaultWindow + public sealed partial class AddGasWindow : DefaultWindow { private IEnumerable? _gridData; private IEnumerable? _gasData; diff --git a/Content.Client/Administration/UI/Tabs/AtmosTab/AtmosTab.xaml.cs b/Content.Client/Administration/UI/Tabs/AtmosTab/AtmosTab.xaml.cs index b7d682e12a..b757c1b4f0 100644 --- a/Content.Client/Administration/UI/Tabs/AtmosTab/AtmosTab.xaml.cs +++ b/Content.Client/Administration/UI/Tabs/AtmosTab/AtmosTab.xaml.cs @@ -4,7 +4,7 @@ using Robust.Client.UserInterface; namespace Content.Client.Administration.UI.Tabs.AtmosTab { [GenerateTypedNameReferences] - public partial class AtmosTab : Control + public sealed partial class AtmosTab : Control { } } diff --git a/Content.Client/Administration/UI/Tabs/AtmosTab/FillGasWindow.xaml.cs b/Content.Client/Administration/UI/Tabs/AtmosTab/FillGasWindow.xaml.cs index 86e13bfa43..7e5fa9c19f 100644 --- a/Content.Client/Administration/UI/Tabs/AtmosTab/FillGasWindow.xaml.cs +++ b/Content.Client/Administration/UI/Tabs/AtmosTab/FillGasWindow.xaml.cs @@ -16,7 +16,7 @@ namespace Content.Client.Administration.UI.Tabs.AtmosTab { [GenerateTypedNameReferences] [UsedImplicitly] - public partial class FillGasWindow : DefaultWindow + public sealed partial class FillGasWindow : DefaultWindow { private IEnumerable? _gridData; private IEnumerable? _gasData; diff --git a/Content.Client/Administration/UI/Tabs/AtmosTab/SetTemperatureWindow.xaml.cs b/Content.Client/Administration/UI/Tabs/AtmosTab/SetTemperatureWindow.xaml.cs index db4360ac28..af0b1b6e18 100644 --- a/Content.Client/Administration/UI/Tabs/AtmosTab/SetTemperatureWindow.xaml.cs +++ b/Content.Client/Administration/UI/Tabs/AtmosTab/SetTemperatureWindow.xaml.cs @@ -14,7 +14,7 @@ namespace Content.Client.Administration.UI.Tabs.AtmosTab { [GenerateTypedNameReferences] [UsedImplicitly] - public partial class SetTemperatureWindow : DefaultWindow + public sealed partial class SetTemperatureWindow : DefaultWindow { private IEnumerable? _data; diff --git a/Content.Client/Administration/UI/Tabs/PlayerTab/PlayerTab.xaml.cs b/Content.Client/Administration/UI/Tabs/PlayerTab/PlayerTab.xaml.cs index 903c3c2578..e99fed59ff 100644 --- a/Content.Client/Administration/UI/Tabs/PlayerTab/PlayerTab.xaml.cs +++ b/Content.Client/Administration/UI/Tabs/PlayerTab/PlayerTab.xaml.cs @@ -15,7 +15,7 @@ using Robust.Shared.Maths; namespace Content.Client.Administration.UI.Tabs.PlayerTab { [GenerateTypedNameReferences] - public partial class PlayerTab : Control + public sealed partial class PlayerTab : Control { private readonly AdminSystem _adminSystem; diff --git a/Content.Client/Administration/UI/Tabs/PlayerTab/PlayerTabEntry.xaml.cs b/Content.Client/Administration/UI/Tabs/PlayerTab/PlayerTabEntry.xaml.cs index 5c3aeb356f..fe4bc0a4b4 100644 --- a/Content.Client/Administration/UI/Tabs/PlayerTab/PlayerTabEntry.xaml.cs +++ b/Content.Client/Administration/UI/Tabs/PlayerTab/PlayerTabEntry.xaml.cs @@ -7,7 +7,7 @@ using Robust.Shared.GameObjects; namespace Content.Client.Administration.UI.Tabs.PlayerTab; [GenerateTypedNameReferences] -public partial class PlayerTabEntry : ContainerButton +public sealed partial class PlayerTabEntry : ContainerButton { public EntityUid? PlayerUid; diff --git a/Content.Client/Administration/UI/Tabs/RoundTab.xaml.cs b/Content.Client/Administration/UI/Tabs/RoundTab.xaml.cs index 0e897bd376..28073bc91d 100644 --- a/Content.Client/Administration/UI/Tabs/RoundTab.xaml.cs +++ b/Content.Client/Administration/UI/Tabs/RoundTab.xaml.cs @@ -4,7 +4,7 @@ using Robust.Client.UserInterface; namespace Content.Client.Administration.UI.Tabs { [GenerateTypedNameReferences] - public partial class RoundTab : Control + public sealed partial class RoundTab : Control { } } diff --git a/Content.Client/Administration/UI/Tabs/ServerTab.xaml.cs b/Content.Client/Administration/UI/Tabs/ServerTab.xaml.cs index 9f7d6a0e40..e76b390aae 100644 --- a/Content.Client/Administration/UI/Tabs/ServerTab.xaml.cs +++ b/Content.Client/Administration/UI/Tabs/ServerTab.xaml.cs @@ -4,7 +4,7 @@ using Robust.Client.UserInterface; namespace Content.Client.Administration.UI.Tabs { [GenerateTypedNameReferences] - public partial class ServerTab : Control + public sealed partial class ServerTab : Control { } } diff --git a/Content.Client/Alerts/ClientAlertsSystem.cs b/Content.Client/Alerts/ClientAlertsSystem.cs index c1792923c4..d4c92e2c27 100644 --- a/Content.Client/Alerts/ClientAlertsSystem.cs +++ b/Content.Client/Alerts/ClientAlertsSystem.cs @@ -14,7 +14,7 @@ using Robust.Shared.Prototypes; namespace Content.Client.Alerts; [UsedImplicitly] -internal class ClientAlertsSystem : AlertsSystem +internal sealed class ClientAlertsSystem : AlertsSystem { public AlertOrderPrototype? AlertOrder { get; set; } @@ -37,7 +37,7 @@ internal class ClientAlertsSystem : AlertsSystem protected override void LoadPrototypes() { base.LoadPrototypes(); - + AlertOrder = _prototypeManager.EnumeratePrototypes().FirstOrDefault(); if (AlertOrder == null) Logger.ErrorS("alert", "no alertOrder prototype found, alerts will be in random order"); diff --git a/Content.Client/Alerts/UI/AlertControl.cs b/Content.Client/Alerts/UI/AlertControl.cs index 4f84a1567b..22845e91ac 100644 --- a/Content.Client/Alerts/UI/AlertControl.cs +++ b/Content.Client/Alerts/UI/AlertControl.cs @@ -10,7 +10,7 @@ using Robust.Shared.Timing; namespace Content.Client.Alerts.UI { - public class AlertControl : BaseButton + public sealed class AlertControl : BaseButton { // shorter than default tooltip delay so user can more easily // see what alerts they have diff --git a/Content.Client/Alerts/UI/AlertsUI.xaml.cs b/Content.Client/Alerts/UI/AlertsUI.xaml.cs index 470b683cb3..4b349c2bde 100644 --- a/Content.Client/Alerts/UI/AlertsUI.xaml.cs +++ b/Content.Client/Alerts/UI/AlertsUI.xaml.cs @@ -16,7 +16,7 @@ using Robust.Shared.Timing; namespace Content.Client.Alerts.UI; -public class AlertsFramePresenter : IDisposable +public sealed class AlertsFramePresenter : IDisposable { [Dependency] private readonly IEntitySystemManager _systemManager = default!; [Dependency] private readonly IUserInterfaceManager _userInterfaceManager = default!; diff --git a/Content.Client/Arcade/BlockGameMenu.cs b/Content.Client/Arcade/BlockGameMenu.cs index 360306e6e7..5452d7c5d0 100644 --- a/Content.Client/Arcade/BlockGameMenu.cs +++ b/Content.Client/Arcade/BlockGameMenu.cs @@ -18,7 +18,7 @@ using static Robust.Client.UserInterface.Controls.BoxContainer; namespace Content.Client.Arcade { - public class BlockGameMenu : DefaultWindow + public sealed class BlockGameMenu : DefaultWindow { private static readonly Color OverlayBackgroundColor = new(74,74,81,180); private static readonly Color OverlayShadowColor = new(0,0,0,83); diff --git a/Content.Client/Arcade/SpaceVillainArcadeMenu.cs b/Content.Client/Arcade/SpaceVillainArcadeMenu.cs index e8b400c1f1..bbd7635459 100644 --- a/Content.Client/Arcade/SpaceVillainArcadeMenu.cs +++ b/Content.Client/Arcade/SpaceVillainArcadeMenu.cs @@ -7,7 +7,7 @@ using Vector2 = Robust.Shared.Maths.Vector2; namespace Content.Client.Arcade { - public class SpaceVillainArcadeMenu : DefaultWindow + public sealed class SpaceVillainArcadeMenu : DefaultWindow { public SpaceVillainArcadeBoundUserInterface Owner { get; set; } @@ -92,7 +92,7 @@ namespace Content.Client.Arcade _enemyActionLabel.Text = message.EnemyActionMessage; } - private class ActionButton : Button + private sealed class ActionButton : Button { private readonly SpaceVillainArcadeBoundUserInterface _owner; private readonly SharedSpaceVillainArcadeComponent.PlayerAction _playerAction; diff --git a/Content.Client/Arcade/UI/BlockGameBoundUserInterface.cs b/Content.Client/Arcade/UI/BlockGameBoundUserInterface.cs index 568784fd69..b1182199f7 100644 --- a/Content.Client/Arcade/UI/BlockGameBoundUserInterface.cs +++ b/Content.Client/Arcade/UI/BlockGameBoundUserInterface.cs @@ -4,7 +4,7 @@ using Robust.Shared.GameObjects; namespace Content.Client.Arcade.UI { - public class BlockGameBoundUserInterface : BoundUserInterface + public sealed class BlockGameBoundUserInterface : BoundUserInterface { private BlockGameMenu? _menu; diff --git a/Content.Client/Arcade/UI/SpaceVillainArcadeBoundUserInterface.cs b/Content.Client/Arcade/UI/SpaceVillainArcadeBoundUserInterface.cs index 442b148c10..c9f4d9b79b 100644 --- a/Content.Client/Arcade/UI/SpaceVillainArcadeBoundUserInterface.cs +++ b/Content.Client/Arcade/UI/SpaceVillainArcadeBoundUserInterface.cs @@ -5,7 +5,7 @@ using static Content.Shared.Arcade.SharedSpaceVillainArcadeComponent; namespace Content.Client.Arcade.UI { - public class SpaceVillainArcadeBoundUserInterface : BoundUserInterface + public sealed class SpaceVillainArcadeBoundUserInterface : BoundUserInterface { [ViewVariables] private SpaceVillainArcadeMenu? _menu; diff --git a/Content.Client/Atmos/Components/GasAnalyzerComponent.cs b/Content.Client/Atmos/Components/GasAnalyzerComponent.cs index d6a4aee4ff..e16cca3dcf 100644 --- a/Content.Client/Atmos/Components/GasAnalyzerComponent.cs +++ b/Content.Client/Atmos/Components/GasAnalyzerComponent.cs @@ -12,7 +12,7 @@ using Robust.Shared.ViewVariables; namespace Content.Client.Atmos.Components { [RegisterComponent] - internal class GasAnalyzerComponent : SharedGasAnalyzerComponent, IItemStatus + internal sealed class GasAnalyzerComponent : SharedGasAnalyzerComponent, IItemStatus { [ViewVariables(VVAccess.ReadWrite)] private bool _uiUpdateNeeded; [ViewVariables] private GasAnalyzerDanger Danger { get; set; } diff --git a/Content.Client/Atmos/EntitySystems/AtmosphereSystem.cs b/Content.Client/Atmos/EntitySystems/AtmosphereSystem.cs index ee67361146..d7f9d60d83 100644 --- a/Content.Client/Atmos/EntitySystems/AtmosphereSystem.cs +++ b/Content.Client/Atmos/EntitySystems/AtmosphereSystem.cs @@ -4,7 +4,7 @@ using JetBrains.Annotations; namespace Content.Client.Atmos.EntitySystems { [UsedImplicitly] - public class AtmosphereSystem : SharedAtmosphereSystem + public sealed class AtmosphereSystem : SharedAtmosphereSystem { } } diff --git a/Content.Client/Atmos/Monitor/AtmosMonitorVisualizer.cs b/Content.Client/Atmos/Monitor/AtmosMonitorVisualizer.cs index dc86118e1e..1a1a6d458d 100644 --- a/Content.Client/Atmos/Monitor/AtmosMonitorVisualizer.cs +++ b/Content.Client/Atmos/Monitor/AtmosMonitorVisualizer.cs @@ -9,7 +9,7 @@ using Robust.Shared.Serialization.Manager.Attributes; namespace Content.Client.Atmos.Monitor { - public class AtmosMonitorVisualizer : AppearanceVisualizer + public sealed class AtmosMonitorVisualizer : AppearanceVisualizer { [Dependency] IEntityManager _entityManager = default!; [DataField("layerMap")] diff --git a/Content.Client/Atmos/Monitor/UI/AirAlarmBoundUserInterface.cs b/Content.Client/Atmos/Monitor/UI/AirAlarmBoundUserInterface.cs index 0c28dd3b0e..df419b282c 100644 --- a/Content.Client/Atmos/Monitor/UI/AirAlarmBoundUserInterface.cs +++ b/Content.Client/Atmos/Monitor/UI/AirAlarmBoundUserInterface.cs @@ -8,7 +8,7 @@ using Robust.Shared.Log; namespace Content.Client.Atmos.Monitor.UI { - public class AirAlarmBoundUserInterface : BoundUserInterface + public sealed class AirAlarmBoundUserInterface : BoundUserInterface { private AirAlarmWindow? _window; diff --git a/Content.Client/Atmos/Monitor/UI/AirAlarmWindow.xaml.cs b/Content.Client/Atmos/Monitor/UI/AirAlarmWindow.xaml.cs index 76155762fc..3b79f618bc 100644 --- a/Content.Client/Atmos/Monitor/UI/AirAlarmWindow.xaml.cs +++ b/Content.Client/Atmos/Monitor/UI/AirAlarmWindow.xaml.cs @@ -16,7 +16,7 @@ using Robust.Shared.Localization; namespace Content.Client.Atmos.Monitor.UI { [GenerateTypedNameReferences] - public partial class AirAlarmWindow : DefaultWindow + public sealed partial class AirAlarmWindow : DefaultWindow { public event Action? AtmosDeviceDataChanged; public event Action? AtmosAlarmThresholdChanged; diff --git a/Content.Client/Atmos/Monitor/UI/Widgets/PumpControl.xaml.cs b/Content.Client/Atmos/Monitor/UI/Widgets/PumpControl.xaml.cs index 071bac229a..71af09af64 100644 --- a/Content.Client/Atmos/Monitor/UI/Widgets/PumpControl.xaml.cs +++ b/Content.Client/Atmos/Monitor/UI/Widgets/PumpControl.xaml.cs @@ -11,7 +11,7 @@ using Robust.Shared.Localization; namespace Content.Client.Atmos.Monitor.UI.Widgets { [GenerateTypedNameReferences] - public partial class PumpControl : BoxContainer + public sealed partial class PumpControl : BoxContainer { private GasVentPumpData _data; private string _address; diff --git a/Content.Client/Atmos/Monitor/UI/Widgets/ScrubberControl.xaml.cs b/Content.Client/Atmos/Monitor/UI/Widgets/ScrubberControl.xaml.cs index 24726bbe9c..9aaee77f98 100644 --- a/Content.Client/Atmos/Monitor/UI/Widgets/ScrubberControl.xaml.cs +++ b/Content.Client/Atmos/Monitor/UI/Widgets/ScrubberControl.xaml.cs @@ -14,7 +14,7 @@ using Robust.Shared.Localization; namespace Content.Client.Atmos.Monitor.UI.Widgets { [GenerateTypedNameReferences] - public partial class ScrubberControl : BoxContainer + public sealed partial class ScrubberControl : BoxContainer { private GasVentScrubberData _data; private string _address; diff --git a/Content.Client/Atmos/Monitor/UI/Widgets/ThresholdControl.xaml.cs b/Content.Client/Atmos/Monitor/UI/Widgets/ThresholdControl.xaml.cs index 52d9695c84..d05d92f8f2 100644 --- a/Content.Client/Atmos/Monitor/UI/Widgets/ThresholdControl.xaml.cs +++ b/Content.Client/Atmos/Monitor/UI/Widgets/ThresholdControl.xaml.cs @@ -12,7 +12,7 @@ using Robust.Shared.Localization; namespace Content.Client.Atmos.Monitor.UI.Widgets { [GenerateTypedNameReferences] - public partial class ThresholdControl : BoxContainer + public sealed partial class ThresholdControl : BoxContainer { private AtmosAlarmThreshold _threshold; private AtmosMonitorThresholdType _type; @@ -151,7 +151,7 @@ namespace Content.Client.Atmos.Monitor.UI.Widgets } - private class ThresholdBoundControl : BoxContainer + private sealed class ThresholdBoundControl : BoxContainer { // raw values to use in thresholds, prefer these // over directly setting Modified(Value/LastValue) diff --git a/Content.Client/Atmos/Overlays/AtmosDebugOverlay.cs b/Content.Client/Atmos/Overlays/AtmosDebugOverlay.cs index e73e5a065b..6530ee9ba4 100644 --- a/Content.Client/Atmos/Overlays/AtmosDebugOverlay.cs +++ b/Content.Client/Atmos/Overlays/AtmosDebugOverlay.cs @@ -10,7 +10,7 @@ using Robust.Shared.Maths; namespace Content.Client.Atmos.Overlays { - public class AtmosDebugOverlay : Overlay + public sealed class AtmosDebugOverlay : Overlay { private readonly AtmosDebugOverlaySystem _atmosDebugOverlaySystem; diff --git a/Content.Client/Atmos/UI/GasAnalyzerBoundUserInterface.cs b/Content.Client/Atmos/UI/GasAnalyzerBoundUserInterface.cs index ad25648633..fe91547f5a 100644 --- a/Content.Client/Atmos/UI/GasAnalyzerBoundUserInterface.cs +++ b/Content.Client/Atmos/UI/GasAnalyzerBoundUserInterface.cs @@ -4,7 +4,7 @@ using static Content.Shared.Atmos.Components.SharedGasAnalyzerComponent; namespace Content.Client.Atmos.UI { - public class GasAnalyzerBoundUserInterface : BoundUserInterface + public sealed class GasAnalyzerBoundUserInterface : BoundUserInterface { public GasAnalyzerBoundUserInterface(ClientUserInterfaceComponent owner, object uiKey) : base(owner, uiKey) { diff --git a/Content.Client/Atmos/UI/GasAnalyzerMenu.cs b/Content.Client/Atmos/UI/GasAnalyzerMenu.cs index 965211432e..8549165383 100644 --- a/Content.Client/Atmos/UI/GasAnalyzerMenu.cs +++ b/Content.Client/Atmos/UI/GasAnalyzerMenu.cs @@ -14,7 +14,7 @@ using static Robust.Client.UserInterface.Controls.BoxContainer; namespace Content.Client.Atmos.UI { - public class GasAnalyzerWindow : BaseWindow + public sealed class GasAnalyzerWindow : BaseWindow { public GasAnalyzerBoundUserInterface Owner { get; } diff --git a/Content.Client/Atmos/UI/GasCanisterBoundUserInterface.cs b/Content.Client/Atmos/UI/GasCanisterBoundUserInterface.cs index 0f21ef4b1d..d67d64fb05 100644 --- a/Content.Client/Atmos/UI/GasCanisterBoundUserInterface.cs +++ b/Content.Client/Atmos/UI/GasCanisterBoundUserInterface.cs @@ -9,7 +9,7 @@ namespace Content.Client.Atmos.UI /// Initializes a and updates it when new server messages are received. /// [UsedImplicitly] - public class GasCanisterBoundUserInterface : BoundUserInterface + public sealed class GasCanisterBoundUserInterface : BoundUserInterface { private GasCanisterWindow? _window; diff --git a/Content.Client/Atmos/UI/GasCanisterWindow.xaml.cs b/Content.Client/Atmos/UI/GasCanisterWindow.xaml.cs index 6f90db5df5..69fc5a73aa 100644 --- a/Content.Client/Atmos/UI/GasCanisterWindow.xaml.cs +++ b/Content.Client/Atmos/UI/GasCanisterWindow.xaml.cs @@ -11,7 +11,7 @@ namespace Content.Client.Atmos.UI /// Client-side UI used to control a canister. /// [GenerateTypedNameReferences] - public partial class GasCanisterWindow : DefaultWindow + public sealed partial class GasCanisterWindow : DefaultWindow { private readonly ButtonGroup _buttonGroup = new(); diff --git a/Content.Client/Atmos/UI/GasFilterBoundUserInterface.cs b/Content.Client/Atmos/UI/GasFilterBoundUserInterface.cs index 271748e9d9..c0c5944995 100644 --- a/Content.Client/Atmos/UI/GasFilterBoundUserInterface.cs +++ b/Content.Client/Atmos/UI/GasFilterBoundUserInterface.cs @@ -12,7 +12,7 @@ namespace Content.Client.Atmos.UI /// Initializes a and updates it when new server messages are received. /// [UsedImplicitly] - public class GasFilterBoundUserInterface : BoundUserInterface + public sealed class GasFilterBoundUserInterface : BoundUserInterface { private GasFilterWindow? _window; diff --git a/Content.Client/Atmos/UI/GasFilterWindow.xaml.cs b/Content.Client/Atmos/UI/GasFilterWindow.xaml.cs index c02e195d4c..d52de513d6 100644 --- a/Content.Client/Atmos/UI/GasFilterWindow.xaml.cs +++ b/Content.Client/Atmos/UI/GasFilterWindow.xaml.cs @@ -14,7 +14,7 @@ namespace Content.Client.Atmos.UI /// Client-side UI used to control a gas filter. /// [GenerateTypedNameReferences] - public partial class GasFilterWindow : DefaultWindow + public sealed partial class GasFilterWindow : DefaultWindow { private readonly ButtonGroup _buttonGroup = new(); diff --git a/Content.Client/Atmos/UI/GasMixerBoundUserInteface.cs b/Content.Client/Atmos/UI/GasMixerBoundUserInteface.cs index 5be7a367f7..900b91fea2 100644 --- a/Content.Client/Atmos/UI/GasMixerBoundUserInteface.cs +++ b/Content.Client/Atmos/UI/GasMixerBoundUserInteface.cs @@ -13,7 +13,7 @@ namespace Content.Client.Atmos.UI /// Initializes a and updates it when new server messages are received. /// [UsedImplicitly] - public class GasMixerBoundUserInterface : BoundUserInterface + public sealed class GasMixerBoundUserInterface : BoundUserInterface { private GasMixerWindow? _window; diff --git a/Content.Client/Atmos/UI/GasMixerWindow.xaml.cs b/Content.Client/Atmos/UI/GasMixerWindow.xaml.cs index 1aefbf6cbf..009f4d29be 100644 --- a/Content.Client/Atmos/UI/GasMixerWindow.xaml.cs +++ b/Content.Client/Atmos/UI/GasMixerWindow.xaml.cs @@ -19,7 +19,7 @@ namespace Content.Client.Atmos.UI /// Client-side UI used to control a gas mixer. /// [GenerateTypedNameReferences] - public partial class GasMixerWindow : DefaultWindow + public sealed partial class GasMixerWindow : DefaultWindow { public bool MixerStatus = true; diff --git a/Content.Client/Atmos/UI/GasPressurePumpBoundUserInterface.cs b/Content.Client/Atmos/UI/GasPressurePumpBoundUserInterface.cs index 95b305a99d..75a129fad7 100644 --- a/Content.Client/Atmos/UI/GasPressurePumpBoundUserInterface.cs +++ b/Content.Client/Atmos/UI/GasPressurePumpBoundUserInterface.cs @@ -13,7 +13,7 @@ namespace Content.Client.Atmos.UI /// Initializes a and updates it when new server messages are received. /// [UsedImplicitly] - public class GasPressurePumpBoundUserInterface : BoundUserInterface + public sealed class GasPressurePumpBoundUserInterface : BoundUserInterface { private GasPressurePumpWindow? _window; diff --git a/Content.Client/Atmos/UI/GasPressurePumpWindow.xaml.cs b/Content.Client/Atmos/UI/GasPressurePumpWindow.xaml.cs index 2977091387..22d8a1e9df 100644 --- a/Content.Client/Atmos/UI/GasPressurePumpWindow.xaml.cs +++ b/Content.Client/Atmos/UI/GasPressurePumpWindow.xaml.cs @@ -16,7 +16,7 @@ namespace Content.Client.Atmos.UI /// Client-side UI used to control a gas pressure pump. /// [GenerateTypedNameReferences] - public partial class GasPressurePumpWindow : DefaultWindow + public sealed partial class GasPressurePumpWindow : DefaultWindow { public bool PumpStatus = true; diff --git a/Content.Client/Atmos/UI/GasVolumePumpBoundUserInterface.cs b/Content.Client/Atmos/UI/GasVolumePumpBoundUserInterface.cs index 6fa2b510c3..5348416f07 100644 --- a/Content.Client/Atmos/UI/GasVolumePumpBoundUserInterface.cs +++ b/Content.Client/Atmos/UI/GasVolumePumpBoundUserInterface.cs @@ -10,7 +10,7 @@ namespace Content.Client.Atmos.UI /// Initializes a and updates it when new server messages are received. /// [UsedImplicitly] - public class GasVolumePumpBoundUserInterface : BoundUserInterface + public sealed class GasVolumePumpBoundUserInterface : BoundUserInterface { private GasVolumePumpWindow? _window; diff --git a/Content.Client/Atmos/UI/GasVolumePumpWindow.xaml.cs b/Content.Client/Atmos/UI/GasVolumePumpWindow.xaml.cs index dc0fc288bb..2ca567302d 100644 --- a/Content.Client/Atmos/UI/GasVolumePumpWindow.xaml.cs +++ b/Content.Client/Atmos/UI/GasVolumePumpWindow.xaml.cs @@ -16,7 +16,7 @@ namespace Content.Client.Atmos.UI /// Client-side UI used to control a gas volume pump. /// [GenerateTypedNameReferences] - public partial class GasVolumePumpWindow : DefaultWindow + public sealed partial class GasVolumePumpWindow : DefaultWindow { public bool PumpStatus = true; diff --git a/Content.Client/Atmos/Visualizers/AtmosPlaqueVisualizer.cs b/Content.Client/Atmos/Visualizers/AtmosPlaqueVisualizer.cs index 5bf7c324d6..80382624dd 100644 --- a/Content.Client/Atmos/Visualizers/AtmosPlaqueVisualizer.cs +++ b/Content.Client/Atmos/Visualizers/AtmosPlaqueVisualizer.cs @@ -8,7 +8,7 @@ using Robust.Shared.Serialization.Manager.Attributes; namespace Content.Client.Atmos.Visualizers { [UsedImplicitly] - public class AtmosPlaqueVisualizer : AppearanceVisualizer + public sealed class AtmosPlaqueVisualizer : AppearanceVisualizer { [DataField("layer")] private int Layer { get; } diff --git a/Content.Client/Atmos/Visualizers/FireVisualizer.cs b/Content.Client/Atmos/Visualizers/FireVisualizer.cs index 504543201f..fe84d6bf6c 100644 --- a/Content.Client/Atmos/Visualizers/FireVisualizer.cs +++ b/Content.Client/Atmos/Visualizers/FireVisualizer.cs @@ -8,7 +8,7 @@ using Robust.Shared.Serialization.Manager.Attributes; namespace Content.Client.Atmos.Visualizers { [UsedImplicitly] - public class FireVisualizer : AppearanceVisualizer + public sealed class FireVisualizer : AppearanceVisualizer { [DataField("fireStackAlternateState")] private int _fireStackAlternateState = 3; diff --git a/Content.Client/Atmos/Visualizers/GasAnalyzerVisualizer.cs b/Content.Client/Atmos/Visualizers/GasAnalyzerVisualizer.cs index ca5eca40a6..6875174036 100644 --- a/Content.Client/Atmos/Visualizers/GasAnalyzerVisualizer.cs +++ b/Content.Client/Atmos/Visualizers/GasAnalyzerVisualizer.cs @@ -8,7 +8,7 @@ using Robust.Shared.Serialization.Manager.Attributes; namespace Content.Client.Atmos.Visualizers { [UsedImplicitly] - public class GasAnalyzerVisualizer : AppearanceVisualizer + public sealed class GasAnalyzerVisualizer : AppearanceVisualizer { [DataField("state_off")] private string? _stateOff; diff --git a/Content.Client/Atmos/Visualizers/GasCanisterVisualizer.cs b/Content.Client/Atmos/Visualizers/GasCanisterVisualizer.cs index 99ba7c2539..d89acfc342 100644 --- a/Content.Client/Atmos/Visualizers/GasCanisterVisualizer.cs +++ b/Content.Client/Atmos/Visualizers/GasCanisterVisualizer.cs @@ -8,7 +8,7 @@ using Robust.Shared.Serialization.Manager.Attributes; namespace Content.Client.Atmos.Visualizers { [UsedImplicitly] - public class GasCanisterVisualizer : AppearanceVisualizer + public sealed class GasCanisterVisualizer : AppearanceVisualizer { [DataField("pressureStates")] private readonly string[] _statePressure = {"", "", "", ""}; diff --git a/Content.Client/Atmos/Visualizers/GasFilterVisualizer.cs b/Content.Client/Atmos/Visualizers/GasFilterVisualizer.cs index 5ad5468c42..3fea6381fd 100644 --- a/Content.Client/Atmos/Visualizers/GasFilterVisualizer.cs +++ b/Content.Client/Atmos/Visualizers/GasFilterVisualizer.cs @@ -5,7 +5,7 @@ using JetBrains.Annotations; namespace Content.Client.Atmos.Visualizers { [UsedImplicitly] - public class GasFilterVisualizer : EnabledAtmosDeviceVisualizer + public sealed class GasFilterVisualizer : EnabledAtmosDeviceVisualizer { protected override object LayerMap => Layers.Enabled; protected override Enum DataKey => FilterVisuals.Enabled; diff --git a/Content.Client/Atmos/Visualizers/GasPortableVisualizer.cs b/Content.Client/Atmos/Visualizers/GasPortableVisualizer.cs index 42251edaaf..de8beba07d 100644 --- a/Content.Client/Atmos/Visualizers/GasPortableVisualizer.cs +++ b/Content.Client/Atmos/Visualizers/GasPortableVisualizer.cs @@ -8,7 +8,7 @@ using Robust.Shared.Serialization.Manager.Attributes; namespace Content.Client.Atmos.Visualizers { [UsedImplicitly] - public class GasPortableVisualizer : AppearanceVisualizer + public sealed class GasPortableVisualizer : AppearanceVisualizer { [DataField("stateConnected")] private string? _stateConnected; diff --git a/Content.Client/Atmos/Visualizers/GasValveVisualizer.cs b/Content.Client/Atmos/Visualizers/GasValveVisualizer.cs index 6cd963b4a4..4cfb7eab73 100644 --- a/Content.Client/Atmos/Visualizers/GasValveVisualizer.cs +++ b/Content.Client/Atmos/Visualizers/GasValveVisualizer.cs @@ -5,7 +5,7 @@ using JetBrains.Annotations; namespace Content.Client.Atmos.Visualizers { [UsedImplicitly] - public class GasValveVisualizer : EnabledAtmosDeviceVisualizer + public sealed class GasValveVisualizer : EnabledAtmosDeviceVisualizer { protected override object LayerMap => Layers.Enabled; protected override Enum DataKey => FilterVisuals.Enabled; diff --git a/Content.Client/Atmos/Visualizers/OutletInjectorVisualizer.cs b/Content.Client/Atmos/Visualizers/OutletInjectorVisualizer.cs index ec23d7b503..1eb5bbaa9e 100644 --- a/Content.Client/Atmos/Visualizers/OutletInjectorVisualizer.cs +++ b/Content.Client/Atmos/Visualizers/OutletInjectorVisualizer.cs @@ -5,7 +5,7 @@ using JetBrains.Annotations; namespace Content.Client.Atmos.Visualizers { [UsedImplicitly] - public class OutletInjectorVisualizer : EnabledAtmosDeviceVisualizer + public sealed class OutletInjectorVisualizer : EnabledAtmosDeviceVisualizer { protected override object LayerMap => Layers.Enabled; protected override Enum DataKey => OutletInjectorVisuals.Enabled; diff --git a/Content.Client/Atmos/Visualizers/PassiveVentVisualizer.cs b/Content.Client/Atmos/Visualizers/PassiveVentVisualizer.cs index d2d08244bc..3eb507fa8a 100644 --- a/Content.Client/Atmos/Visualizers/PassiveVentVisualizer.cs +++ b/Content.Client/Atmos/Visualizers/PassiveVentVisualizer.cs @@ -5,7 +5,7 @@ using JetBrains.Annotations; namespace Content.Client.Atmos.Visualizers { [UsedImplicitly] - public class PassiveVentVisualizer : EnabledAtmosDeviceVisualizer + public sealed class PassiveVentVisualizer : EnabledAtmosDeviceVisualizer { protected override object LayerMap => Layers.Enabled; protected override Enum DataKey => PassiveVentVisuals.Enabled; diff --git a/Content.Client/Atmos/Visualizers/PressurePumpVisualizer.cs b/Content.Client/Atmos/Visualizers/PressurePumpVisualizer.cs index e0b5db06d3..7eff2bdc6e 100644 --- a/Content.Client/Atmos/Visualizers/PressurePumpVisualizer.cs +++ b/Content.Client/Atmos/Visualizers/PressurePumpVisualizer.cs @@ -5,7 +5,7 @@ using JetBrains.Annotations; namespace Content.Client.Atmos.Visualizers { [UsedImplicitly] - public class PressurePumpVisualizer : EnabledAtmosDeviceVisualizer + public sealed class PressurePumpVisualizer : EnabledAtmosDeviceVisualizer { protected override object LayerMap => Layers.Enabled; protected override Enum DataKey => PressurePumpVisuals.Enabled; diff --git a/Content.Client/Atmos/Visualizers/ScrubberVisualizer.cs b/Content.Client/Atmos/Visualizers/ScrubberVisualizer.cs index 295633cc35..8ac626b17a 100644 --- a/Content.Client/Atmos/Visualizers/ScrubberVisualizer.cs +++ b/Content.Client/Atmos/Visualizers/ScrubberVisualizer.cs @@ -7,7 +7,7 @@ using Robust.Shared.IoC; namespace Content.Client.Atmos.Visualizers { [UsedImplicitly] - public class ScrubberVisualizer : AppearanceVisualizer + public sealed class ScrubberVisualizer : AppearanceVisualizer { private string _offState = "scrub_off"; private string _scrubState = "scrub_on"; diff --git a/Content.Client/Atmos/Visualizers/ThermoMachineVisualizer.cs b/Content.Client/Atmos/Visualizers/ThermoMachineVisualizer.cs index ab7db6ae92..b7dfc69740 100644 --- a/Content.Client/Atmos/Visualizers/ThermoMachineVisualizer.cs +++ b/Content.Client/Atmos/Visualizers/ThermoMachineVisualizer.cs @@ -5,7 +5,7 @@ using JetBrains.Annotations; namespace Content.Client.Atmos.Visualizers { [UsedImplicitly] - public class ThermoMachineVisualizer : EnabledAtmosDeviceVisualizer + public sealed class ThermoMachineVisualizer : EnabledAtmosDeviceVisualizer { protected override object LayerMap => Layers.Enabled; protected override Enum DataKey => ThermoMachineVisuals.Enabled; diff --git a/Content.Client/Atmos/Visualizers/VentPumpVisualizer.cs b/Content.Client/Atmos/Visualizers/VentPumpVisualizer.cs index 15bf0938de..57e17cab3b 100644 --- a/Content.Client/Atmos/Visualizers/VentPumpVisualizer.cs +++ b/Content.Client/Atmos/Visualizers/VentPumpVisualizer.cs @@ -7,7 +7,7 @@ using Robust.Shared.IoC; namespace Content.Client.Atmos.Visualizers { [UsedImplicitly] - public class VentPumpVisualizer : AppearanceVisualizer + public sealed class VentPumpVisualizer : AppearanceVisualizer { private string _offState = "vent_off"; private string _inState = "vent_in"; diff --git a/Content.Client/Audio/BackgroundAudioSystem.cs b/Content.Client/Audio/BackgroundAudioSystem.cs index 29f7c98187..9e4ce2d1ad 100644 --- a/Content.Client/Audio/BackgroundAudioSystem.cs +++ b/Content.Client/Audio/BackgroundAudioSystem.cs @@ -18,7 +18,7 @@ using Robust.Shared.Random; namespace Content.Client.Audio { [UsedImplicitly] - public class BackgroundAudioSystem : EntitySystem + public sealed class BackgroundAudioSystem : EntitySystem { [Dependency] private readonly IPrototypeManager _prototypeManager = default!; [Dependency] private readonly IRobustRandom _robustRandom = default!; diff --git a/Content.Client/Body/Components/BodyComponent.cs b/Content.Client/Body/Components/BodyComponent.cs index c49b850969..d82ac656f8 100644 --- a/Content.Client/Body/Components/BodyComponent.cs +++ b/Content.Client/Body/Components/BodyComponent.cs @@ -6,7 +6,7 @@ namespace Content.Client.Body.Components { [RegisterComponent] [ComponentReference(typeof(SharedBodyComponent))] - public class BodyComponent : SharedBodyComponent, IDraggable + public sealed class BodyComponent : SharedBodyComponent, IDraggable { bool IDraggable.CanStartDrag(StartDragDropEvent args) { diff --git a/Content.Client/Body/Components/BodyPartComponent.cs b/Content.Client/Body/Components/BodyPartComponent.cs index 127990ee93..9dd47352c9 100644 --- a/Content.Client/Body/Components/BodyPartComponent.cs +++ b/Content.Client/Body/Components/BodyPartComponent.cs @@ -5,7 +5,7 @@ namespace Content.Client.Body.Components { [RegisterComponent] [ComponentReference(typeof(SharedBodyPartComponent))] - public class BodyPartComponent : SharedBodyPartComponent + public sealed class BodyPartComponent : SharedBodyPartComponent { } } diff --git a/Content.Client/Body/UI/BodyScannerBoundUserInterface.cs b/Content.Client/Body/UI/BodyScannerBoundUserInterface.cs index 417059745a..c340095bd8 100644 --- a/Content.Client/Body/UI/BodyScannerBoundUserInterface.cs +++ b/Content.Client/Body/UI/BodyScannerBoundUserInterface.cs @@ -9,7 +9,7 @@ using Robust.Shared.ViewVariables; namespace Content.Client.Body.UI { [UsedImplicitly] - public class BodyScannerBoundUserInterface : BoundUserInterface + public sealed class BodyScannerBoundUserInterface : BoundUserInterface { [ViewVariables] private BodyScannerDisplay? _display; diff --git a/Content.Client/Botany/PlantHolderVisualizer.cs b/Content.Client/Botany/PlantHolderVisualizer.cs index aee51cab44..1994f64c9b 100644 --- a/Content.Client/Botany/PlantHolderVisualizer.cs +++ b/Content.Client/Botany/PlantHolderVisualizer.cs @@ -8,7 +8,7 @@ using Robust.Shared.Utility; namespace Content.Client.Botany { [UsedImplicitly] - public class PlantHolderVisualizer : AppearanceVisualizer + public sealed class PlantHolderVisualizer : AppearanceVisualizer { public override void InitializeEntity(EntityUid entity) { diff --git a/Content.Client/Buckle/BuckleComponent.cs b/Content.Client/Buckle/BuckleComponent.cs index 0842d56402..52743e3695 100644 --- a/Content.Client/Buckle/BuckleComponent.cs +++ b/Content.Client/Buckle/BuckleComponent.cs @@ -7,7 +7,7 @@ namespace Content.Client.Buckle { [RegisterComponent] [ComponentReference(typeof(SharedBuckleComponent))] - public class BuckleComponent : SharedBuckleComponent + public sealed class BuckleComponent : SharedBuckleComponent { private bool _buckled; private int? _originalDrawDepth; diff --git a/Content.Client/Buckle/BuckleVisualizer.cs b/Content.Client/Buckle/BuckleVisualizer.cs index 035b6e8aa0..6daae3eec5 100644 --- a/Content.Client/Buckle/BuckleVisualizer.cs +++ b/Content.Client/Buckle/BuckleVisualizer.cs @@ -11,7 +11,7 @@ using Robust.Shared.Maths; namespace Content.Client.Buckle { [UsedImplicitly] - public class BuckleVisualizer : AppearanceVisualizer + public sealed class BuckleVisualizer : AppearanceVisualizer { public override void OnChangeData(AppearanceComponent component) { diff --git a/Content.Client/Buckle/Strap/StrapComponent.cs b/Content.Client/Buckle/Strap/StrapComponent.cs index 5bfa5520a0..27da0cfe3e 100644 --- a/Content.Client/Buckle/Strap/StrapComponent.cs +++ b/Content.Client/Buckle/Strap/StrapComponent.cs @@ -6,7 +6,7 @@ namespace Content.Client.Buckle.Strap { [RegisterComponent] [ComponentReference(typeof(SharedStrapComponent))] - public class StrapComponent : SharedStrapComponent + public sealed class StrapComponent : SharedStrapComponent { public override bool DragDropOn(DragDropEvent eventArgs) { diff --git a/Content.Client/Cargo/CargoConsoleBoundUserInterface.cs b/Content.Client/Cargo/CargoConsoleBoundUserInterface.cs index 117b54d4c6..944c133ecb 100644 --- a/Content.Client/Cargo/CargoConsoleBoundUserInterface.cs +++ b/Content.Client/Cargo/CargoConsoleBoundUserInterface.cs @@ -11,7 +11,7 @@ using static Robust.Client.UserInterface.Controls.BaseButton; namespace Content.Client.Cargo { - public class CargoConsoleBoundUserInterface : BoundUserInterface + public sealed class CargoConsoleBoundUserInterface : BoundUserInterface { [ViewVariables] private CargoConsoleMenu? _menu; diff --git a/Content.Client/Cargo/Components/CargoOrderDatabaseComponent.cs b/Content.Client/Cargo/Components/CargoOrderDatabaseComponent.cs index f99c6dc46d..5279e6dc0e 100644 --- a/Content.Client/Cargo/Components/CargoOrderDatabaseComponent.cs +++ b/Content.Client/Cargo/Components/CargoOrderDatabaseComponent.cs @@ -7,7 +7,7 @@ using Robust.Shared.GameObjects; namespace Content.Client.Cargo.Components { [RegisterComponent] - public class CargoOrderDatabaseComponent : SharedCargoOrderDatabaseComponent + public sealed class CargoOrderDatabaseComponent : SharedCargoOrderDatabaseComponent { private readonly List _orders = new(); @@ -22,7 +22,7 @@ namespace Content.Client.Cargo.Components /// /// Removes all orders from the database. /// - public virtual void Clear() + public void Clear() { _orders.Clear(); } @@ -31,7 +31,7 @@ namespace Content.Client.Cargo.Components /// Adds an order to the database. /// /// The order to be added. - public virtual void AddOrder(CargoOrderData order) + public void AddOrder(CargoOrderData order) { if (!_orders.Contains(order)) _orders.Add(order); diff --git a/Content.Client/Cargo/Components/GalacticMarketComponent.cs b/Content.Client/Cargo/Components/GalacticMarketComponent.cs index 27bb68b298..b26ee0b1f4 100644 --- a/Content.Client/Cargo/Components/GalacticMarketComponent.cs +++ b/Content.Client/Cargo/Components/GalacticMarketComponent.cs @@ -8,7 +8,7 @@ using Robust.Shared.Prototypes; namespace Content.Client.Cargo.Components { [RegisterComponent] - public class GalacticMarketComponent : SharedGalacticMarketComponent + public sealed class GalacticMarketComponent : SharedGalacticMarketComponent { [Dependency] private readonly IPrototypeManager _prototypeManager = default!; diff --git a/Content.Client/Cargo/UI/CargoConsoleMenu.xaml.cs b/Content.Client/Cargo/UI/CargoConsoleMenu.xaml.cs index 82a1ea13b6..126bf1d3e3 100644 --- a/Content.Client/Cargo/UI/CargoConsoleMenu.xaml.cs +++ b/Content.Client/Cargo/UI/CargoConsoleMenu.xaml.cs @@ -19,7 +19,7 @@ using static Robust.Client.UserInterface.Controls.BoxContainer; namespace Content.Client.Cargo.UI { [GenerateTypedNameReferences] - public partial class CargoConsoleMenu : DefaultWindow + public sealed partial class CargoConsoleMenu : DefaultWindow { public CargoConsoleBoundUserInterface Owner { get; private set; } diff --git a/Content.Client/Cargo/UI/CargoConsoleOrderMenu.xaml.cs b/Content.Client/Cargo/UI/CargoConsoleOrderMenu.xaml.cs index e098612937..20f1653473 100644 --- a/Content.Client/Cargo/UI/CargoConsoleOrderMenu.xaml.cs +++ b/Content.Client/Cargo/UI/CargoConsoleOrderMenu.xaml.cs @@ -8,7 +8,7 @@ using Robust.Shared.IoC; namespace Content.Client.Cargo.UI { [GenerateTypedNameReferences] - partial class CargoConsoleOrderMenu : DefaultWindow + sealed partial class CargoConsoleOrderMenu : DefaultWindow { public CargoConsoleOrderMenu() { diff --git a/Content.Client/Cargo/UI/CargoOrderRow.xaml.cs b/Content.Client/Cargo/UI/CargoOrderRow.xaml.cs index 27e1aaa061..77abcf4069 100644 --- a/Content.Client/Cargo/UI/CargoOrderRow.xaml.cs +++ b/Content.Client/Cargo/UI/CargoOrderRow.xaml.cs @@ -6,7 +6,7 @@ using Robust.Client.UserInterface.XAML; namespace Content.Client.Cargo.UI { [GenerateTypedNameReferences] - public partial class CargoOrderRow : PanelContainer + public sealed partial class CargoOrderRow : PanelContainer { public CargoOrderData? Order { get; set; } diff --git a/Content.Client/Cargo/UI/CargoProductRow.xaml.cs b/Content.Client/Cargo/UI/CargoProductRow.xaml.cs index 2c7c396500..0f3796dac2 100644 --- a/Content.Client/Cargo/UI/CargoProductRow.xaml.cs +++ b/Content.Client/Cargo/UI/CargoProductRow.xaml.cs @@ -6,7 +6,7 @@ using Robust.Client.UserInterface.XAML; namespace Content.Client.Cargo.UI { [GenerateTypedNameReferences] - public partial class CargoProductRow : PanelContainer + public sealed partial class CargoProductRow : PanelContainer { public CargoProductPrototype? Product { get; set; } diff --git a/Content.Client/Cargo/UI/GalacticBankSelectionMenu.cs b/Content.Client/Cargo/UI/GalacticBankSelectionMenu.cs index d148d5586b..b742676829 100644 --- a/Content.Client/Cargo/UI/GalacticBankSelectionMenu.cs +++ b/Content.Client/Cargo/UI/GalacticBankSelectionMenu.cs @@ -5,7 +5,7 @@ using Robust.Shared.Localization; namespace Content.Client.Cargo.UI { - public class GalacticBankSelectionMenu : DefaultWindow + public sealed class GalacticBankSelectionMenu : DefaultWindow { private readonly ItemList _accounts; private int _accountCount; diff --git a/Content.Client/CharacterAppearance/MagicMirrorBoundUserInterface.cs b/Content.Client/CharacterAppearance/MagicMirrorBoundUserInterface.cs index bceb82bcc1..bf53552c12 100644 --- a/Content.Client/CharacterAppearance/MagicMirrorBoundUserInterface.cs +++ b/Content.Client/CharacterAppearance/MagicMirrorBoundUserInterface.cs @@ -18,7 +18,7 @@ using static Robust.Client.UserInterface.Controls.BoxContainer; namespace Content.Client.CharacterAppearance { [UsedImplicitly] - public class MagicMirrorBoundUserInterface : BoundUserInterface + public sealed class MagicMirrorBoundUserInterface : BoundUserInterface { private MagicMirrorWindow? _window; @@ -72,7 +72,7 @@ namespace Content.Client.CharacterAppearance } } - public class ColorSlider : Control + public sealed class ColorSlider : Control { private readonly Slider _slider; private readonly LineEdit _textBox; @@ -276,7 +276,7 @@ namespace Content.Client.CharacterAppearance // ColorSlider } - public class EyeColorPicker : Control + public sealed class EyeColorPicker : Control { public event Action? OnEyeColorPicked; @@ -329,7 +329,7 @@ namespace Content.Client.CharacterAppearance // ColorSlider } - public class MagicMirrorWindow : DefaultWindow + public sealed class MagicMirrorWindow : DefaultWindow { private readonly HairStylePicker _hairStylePicker; private readonly HairStylePicker _facialHairStylePicker; diff --git a/Content.Client/CharacterAppearance/Systems/HumanoidAppearanceSystem.cs b/Content.Client/CharacterAppearance/Systems/HumanoidAppearanceSystem.cs index ba9aaf098d..6a167591e1 100644 --- a/Content.Client/CharacterAppearance/Systems/HumanoidAppearanceSystem.cs +++ b/Content.Client/CharacterAppearance/Systems/HumanoidAppearanceSystem.cs @@ -12,7 +12,7 @@ using Robust.Shared.Prototypes; namespace Content.Client.CharacterAppearance.Systems { - public class HumanoidAppearanceSystem : SharedHumanoidAppearanceSystem + public sealed class HumanoidAppearanceSystem : SharedHumanoidAppearanceSystem { [Dependency] private readonly SpriteAccessoryManager _accessoryManager = default!; [Dependency] private readonly IPrototypeManager _prototypeManager = default!; diff --git a/Content.Client/CharacterInfo/Components/CharacterInfoSystem.cs b/Content.Client/CharacterInfo/Components/CharacterInfoSystem.cs index 965260a3a1..7227c16cee 100644 --- a/Content.Client/CharacterInfo/Components/CharacterInfoSystem.cs +++ b/Content.Client/CharacterInfo/Components/CharacterInfoSystem.cs @@ -10,7 +10,7 @@ using Robust.Shared.Maths; namespace Content.Client.CharacterInfo.Components; -public class CharacterInfoSystem : EntitySystem +public sealed class CharacterInfoSystem : EntitySystem { public override void Initialize() { @@ -97,13 +97,13 @@ public class CharacterInfoSystem : EntitySystem { Orientation = BoxContainer.LayoutOrientation.Horizontal }; - + briefinghBox.AddChild(new Label { Text = briefing, Modulate = Color.Yellow }); - + vbox.AddChild(briefinghBox); comp.Control.ObjectivesContainer.AddChild(vbox); } diff --git a/Content.Client/CharacterInfo/ProgressTextureRect.cs b/Content.Client/CharacterInfo/ProgressTextureRect.cs index 57e75bc27d..74113fe2aa 100644 --- a/Content.Client/CharacterInfo/ProgressTextureRect.cs +++ b/Content.Client/CharacterInfo/ProgressTextureRect.cs @@ -6,7 +6,7 @@ using Robust.Shared.Maths; namespace Content.Client.CharacterInfo { - public class ProgressTextureRect : TextureRect + public sealed class ProgressTextureRect : TextureRect { public float Progress; diff --git a/Content.Client/CharacterInterface/CharacterInterfaceComponent.cs b/Content.Client/CharacterInterface/CharacterInterfaceComponent.cs index 033eda82d2..03c92d3b29 100644 --- a/Content.Client/CharacterInterface/CharacterInterfaceComponent.cs +++ b/Content.Client/CharacterInterface/CharacterInterfaceComponent.cs @@ -12,7 +12,7 @@ namespace Content.Client.CharacterInterface /// user interfaces into a single window and keybind for the user /// [RegisterComponent] - public class CharacterInterfaceComponent : Component + public sealed class CharacterInterfaceComponent : Component { /// /// Window to hold each of the character interfaces @@ -27,7 +27,7 @@ namespace Content.Client.CharacterInterface /// /// A window that collects and shows all the individual character user interfaces /// - public class CharacterWindow : DefaultWindow + public sealed class CharacterWindow : DefaultWindow { private readonly List _windowComponents; diff --git a/Content.Client/Chat/ChatHelper.cs b/Content.Client/Chat/ChatHelper.cs index 03664d76d0..a0db4f97d5 100644 --- a/Content.Client/Chat/ChatHelper.cs +++ b/Content.Client/Chat/ChatHelper.cs @@ -3,7 +3,7 @@ using Robust.Shared.Maths; namespace Content.Client.Chat { - public class ChatHelper + public sealed class ChatHelper { public static Color ChatColor(ChatChannel channel) => channel switch diff --git a/Content.Client/Chat/StoredChatMessage.cs b/Content.Client/Chat/StoredChatMessage.cs index 49264c8fb0..e7c350ca51 100644 --- a/Content.Client/Chat/StoredChatMessage.cs +++ b/Content.Client/Chat/StoredChatMessage.cs @@ -4,7 +4,7 @@ using Robust.Shared.Maths; namespace Content.Client.Chat { - public class StoredChatMessage + public sealed class StoredChatMessage { // TODO Make me reflected with respect to MsgChatMessage diff --git a/Content.Client/Chat/UI/ChatBox.xaml.cs b/Content.Client/Chat/UI/ChatBox.xaml.cs index 8496a7ac04..5b31ca0526 100644 --- a/Content.Client/Chat/UI/ChatBox.xaml.cs +++ b/Content.Client/Chat/UI/ChatBox.xaml.cs @@ -22,6 +22,7 @@ using Robust.Shared.Utility; namespace Content.Client.Chat.UI { [GenerateTypedNameReferences] + [Virtual] public partial class ChatBox : Control { [Dependency] protected readonly IChatManager ChatMgr = default!; diff --git a/Content.Client/Chat/UI/HudChatBox.cs b/Content.Client/Chat/UI/HudChatBox.cs index 824a906d01..2fe626893c 100644 --- a/Content.Client/Chat/UI/HudChatBox.cs +++ b/Content.Client/Chat/UI/HudChatBox.cs @@ -9,7 +9,7 @@ using Robust.Shared.Timing; namespace Content.Client.Chat.UI { - public class HudChatBox : ChatBox + public sealed class HudChatBox : ChatBox { // TODO: Revisit the resizing stuff after https://github.com/space-wizards/RobustToolbox/issues/1392 is done, // Probably not "supposed" to inject IClyde, but I give up. diff --git a/Content.Client/Chat/UI/SpeechBubble.cs b/Content.Client/Chat/UI/SpeechBubble.cs index a72a843775..a430b11757 100644 --- a/Content.Client/Chat/UI/SpeechBubble.cs +++ b/Content.Client/Chat/UI/SpeechBubble.cs @@ -166,7 +166,7 @@ namespace Content.Client.Chat.UI } } - public class TextSpeechBubble : SpeechBubble + public sealed class TextSpeechBubble : SpeechBubble { public TextSpeechBubble(string text, EntityUid senderEntity, IEyeManager eyeManager, IChatManager chatManager, IEntityManager entityManager, string speechStyleClass) diff --git a/Content.Client/Chemistry/ChemicalReactionSystem.cs b/Content.Client/Chemistry/ChemicalReactionSystem.cs index 71f3817792..96aa6db29b 100644 --- a/Content.Client/Chemistry/ChemicalReactionSystem.cs +++ b/Content.Client/Chemistry/ChemicalReactionSystem.cs @@ -2,7 +2,7 @@ using Content.Shared.Chemistry.Reaction; namespace Content.Client.Chemistry { - public class ChemicalReactionSystem : SharedChemicalReactionSystem + public sealed class ChemicalReactionSystem : SharedChemicalReactionSystem { } diff --git a/Content.Client/Chemistry/Components/InjectorComponent.cs b/Content.Client/Chemistry/Components/InjectorComponent.cs index 99bab0793a..4a6864cad2 100644 --- a/Content.Client/Chemistry/Components/InjectorComponent.cs +++ b/Content.Client/Chemistry/Components/InjectorComponent.cs @@ -17,7 +17,7 @@ namespace Content.Client.Chemistry.Components /// Client behavior for injectors & syringes. Used for item status on injectors /// [RegisterComponent] - public class InjectorComponent : SharedInjectorComponent, IItemStatus + public sealed class InjectorComponent : SharedInjectorComponent, IItemStatus { [ViewVariables] private FixedPoint2 CurrentVolume { get; set; } [ViewVariables] private FixedPoint2 TotalVolume { get; set; } diff --git a/Content.Client/Chemistry/UI/ChemMasterBoundUserInterface.cs b/Content.Client/Chemistry/UI/ChemMasterBoundUserInterface.cs index d4d44d9451..259dff389d 100644 --- a/Content.Client/Chemistry/UI/ChemMasterBoundUserInterface.cs +++ b/Content.Client/Chemistry/UI/ChemMasterBoundUserInterface.cs @@ -11,7 +11,7 @@ namespace Content.Client.Chemistry.UI /// Initializes a and updates it when new server messages are received. /// [UsedImplicitly] - public class ChemMasterBoundUserInterface : BoundUserInterface + public sealed class ChemMasterBoundUserInterface : BoundUserInterface { private ChemMasterWindow? _window; @@ -76,7 +76,7 @@ namespace Content.Client.Chemistry.UI SendMessage(new UiActionMessage(action, button.Amount, button.Id, button.IsBuffer, null, null, null, null)); } else - { + { SendMessage(new UiActionMessage(action, null, null, null, label, pillType, pillAmount, bottleAmount)); } } diff --git a/Content.Client/Chemistry/UI/ChemMasterWindow.xaml.cs b/Content.Client/Chemistry/UI/ChemMasterWindow.xaml.cs index e8847b1e7c..fd9b1c5ea6 100644 --- a/Content.Client/Chemistry/UI/ChemMasterWindow.xaml.cs +++ b/Content.Client/Chemistry/UI/ChemMasterWindow.xaml.cs @@ -26,7 +26,7 @@ namespace Content.Client.Chemistry.UI /// Client-side UI used to control a /// [GenerateTypedNameReferences] - public partial class ChemMasterWindow : DefaultWindow + public sealed partial class ChemMasterWindow : DefaultWindow { [Dependency] private readonly IPrototypeManager _prototypeManager = default!; public event Action? OnLabelEntered; @@ -267,7 +267,7 @@ namespace Content.Client.Chemistry.UI } } - public class ChemButton : Button + public sealed class ChemButton : Button { public FixedPoint2 Amount { get; set; } public bool IsBuffer = true; diff --git a/Content.Client/Chemistry/UI/ReagentDispenserBoundUserInterface.cs b/Content.Client/Chemistry/UI/ReagentDispenserBoundUserInterface.cs index ba6bb80c34..b507460cee 100644 --- a/Content.Client/Chemistry/UI/ReagentDispenserBoundUserInterface.cs +++ b/Content.Client/Chemistry/UI/ReagentDispenserBoundUserInterface.cs @@ -14,7 +14,7 @@ namespace Content.Client.Chemistry.UI /// Initializes a and updates it when new server messages are received. /// [UsedImplicitly] - public class ReagentDispenserBoundUserInterface : BoundUserInterface + public sealed class ReagentDispenserBoundUserInterface : BoundUserInterface { private ReagentDispenserWindow? _window; private ReagentDispenserBoundUserInterfaceState? _lastState; diff --git a/Content.Client/Chemistry/UI/ReagentDispenserWindow.xaml.cs b/Content.Client/Chemistry/UI/ReagentDispenserWindow.xaml.cs index a91e358eb9..d88561732e 100644 --- a/Content.Client/Chemistry/UI/ReagentDispenserWindow.xaml.cs +++ b/Content.Client/Chemistry/UI/ReagentDispenserWindow.xaml.cs @@ -20,7 +20,7 @@ namespace Content.Client.Chemistry.UI /// Client-side UI used to control a /// [GenerateTypedNameReferences] - public partial class ReagentDispenserWindow : DefaultWindow + public sealed partial class ReagentDispenserWindow : DefaultWindow { [Dependency] private readonly IPrototypeManager _prototypeManager = default!; diff --git a/Content.Client/Chemistry/UI/TransferAmountBoundUserInterface.cs b/Content.Client/Chemistry/UI/TransferAmountBoundUserInterface.cs index cf8f6f8ac2..fd501a8fa3 100644 --- a/Content.Client/Chemistry/UI/TransferAmountBoundUserInterface.cs +++ b/Content.Client/Chemistry/UI/TransferAmountBoundUserInterface.cs @@ -6,7 +6,7 @@ using Robust.Client.GameObjects; namespace Content.Client.Chemistry.UI { [UsedImplicitly] - public class TransferAmountBoundUserInterface : BoundUserInterface + public sealed class TransferAmountBoundUserInterface : BoundUserInterface { private TransferAmountWindow? _window; diff --git a/Content.Client/Chemistry/UI/TransferAmountWindow.xaml.cs b/Content.Client/Chemistry/UI/TransferAmountWindow.xaml.cs index 8fc18dec06..767e5cc823 100644 --- a/Content.Client/Chemistry/UI/TransferAmountWindow.xaml.cs +++ b/Content.Client/Chemistry/UI/TransferAmountWindow.xaml.cs @@ -6,7 +6,7 @@ using Robust.Client.UserInterface.XAML; namespace Content.Client.Chemistry.UI { [GenerateTypedNameReferences] - public partial class TransferAmountWindow : DefaultWindow + public sealed partial class TransferAmountWindow : DefaultWindow { public TransferAmountWindow() { diff --git a/Content.Client/Chemistry/Visualizers/FoamVisualizer.cs b/Content.Client/Chemistry/Visualizers/FoamVisualizer.cs index 2cb7a4bef5..7964f40e4f 100644 --- a/Content.Client/Chemistry/Visualizers/FoamVisualizer.cs +++ b/Content.Client/Chemistry/Visualizers/FoamVisualizer.cs @@ -12,7 +12,7 @@ using Robust.Shared.Serialization.Manager.Attributes; namespace Content.Client.Chemistry.Visualizers { [UsedImplicitly] - public class FoamVisualizer : AppearanceVisualizer, ISerializationHooks + public sealed class FoamVisualizer : AppearanceVisualizer, ISerializationHooks { private const string AnimationKey = "foamdissolve_animation"; diff --git a/Content.Client/Chemistry/Visualizers/SmokeVisualizer.cs b/Content.Client/Chemistry/Visualizers/SmokeVisualizer.cs index 666afaa4f6..38690b293d 100644 --- a/Content.Client/Chemistry/Visualizers/SmokeVisualizer.cs +++ b/Content.Client/Chemistry/Visualizers/SmokeVisualizer.cs @@ -8,7 +8,7 @@ using Robust.Shared.Maths; namespace Content.Client.Chemistry.Visualizers { [UsedImplicitly] - public class SmokeVisualizer : AppearanceVisualizer + public sealed class SmokeVisualizer : AppearanceVisualizer { public override void OnChangeData(AppearanceComponent component) { diff --git a/Content.Client/Chemistry/Visualizers/SolutionContainerVisualizer.cs b/Content.Client/Chemistry/Visualizers/SolutionContainerVisualizer.cs index 945aa03c73..f97e1b479c 100644 --- a/Content.Client/Chemistry/Visualizers/SolutionContainerVisualizer.cs +++ b/Content.Client/Chemistry/Visualizers/SolutionContainerVisualizer.cs @@ -10,7 +10,7 @@ using Robust.Shared.Serialization.Manager.Attributes; namespace Content.Client.Chemistry.Visualizers { [UsedImplicitly] - public class SolutionContainerVisualizer : AppearanceVisualizer + public sealed class SolutionContainerVisualizer : AppearanceVisualizer { [DataField("maxFillLevels")] private int _maxFillLevels = 0; [DataField("fillBaseName")] private string? _fillBaseName = null; diff --git a/Content.Client/Chemistry/Visualizers/VaporVisualizer.cs b/Content.Client/Chemistry/Visualizers/VaporVisualizer.cs index c6cd5dc945..bd479ba8fd 100644 --- a/Content.Client/Chemistry/Visualizers/VaporVisualizer.cs +++ b/Content.Client/Chemistry/Visualizers/VaporVisualizer.cs @@ -12,7 +12,7 @@ using Robust.Shared.Serialization.Manager.Attributes; namespace Content.Client.Chemistry.Visualizers { [UsedImplicitly] - public class VaporVisualizer : AppearanceVisualizer, ISerializationHooks + public sealed class VaporVisualizer : AppearanceVisualizer, ISerializationHooks { private const string AnimationKey = "flick_animation"; diff --git a/Content.Client/Clickable/ClickMapManager.cs b/Content.Client/Clickable/ClickMapManager.cs index 497a8a7493..f1f864bfd5 100644 --- a/Content.Client/Clickable/ClickMapManager.cs +++ b/Content.Client/Clickable/ClickMapManager.cs @@ -12,7 +12,7 @@ using SixLabors.ImageSharp.PixelFormats; namespace Content.Client.Clickable { - internal class ClickMapManager : IClickMapManager, IPostInjectInit + internal sealed class ClickMapManager : IClickMapManager, IPostInjectInit { private const float Threshold = 0.25f; private const int ClickRadius = 2; diff --git a/Content.Client/Cloning/UI/AcceptCloningEui.cs b/Content.Client/Cloning/UI/AcceptCloningEui.cs index 41626579db..027f250c5c 100644 --- a/Content.Client/Cloning/UI/AcceptCloningEui.cs +++ b/Content.Client/Cloning/UI/AcceptCloningEui.cs @@ -5,7 +5,7 @@ using JetBrains.Annotations; namespace Content.Client.Cloning.UI { [UsedImplicitly] - public class AcceptCloningEui : BaseEui + public sealed class AcceptCloningEui : BaseEui { private readonly AcceptCloningWindow _window; diff --git a/Content.Client/Cloning/UI/CloningPodBoundUserInterface.cs b/Content.Client/Cloning/UI/CloningPodBoundUserInterface.cs index e28f40d203..f6d1933c64 100644 --- a/Content.Client/Cloning/UI/CloningPodBoundUserInterface.cs +++ b/Content.Client/Cloning/UI/CloningPodBoundUserInterface.cs @@ -7,7 +7,7 @@ using static Content.Shared.Cloning.SharedCloningPodComponent; namespace Content.Client.Cloning.UI { [UsedImplicitly] - public class CloningPodBoundUserInterface : BoundUserInterface + public sealed class CloningPodBoundUserInterface : BoundUserInterface { public CloningPodBoundUserInterface(ClientUserInterfaceComponent owner, object uiKey) : base(owner, uiKey) { diff --git a/Content.Client/Cloning/UI/CloningPodWindow.cs b/Content.Client/Cloning/UI/CloningPodWindow.cs index 31862d0a3e..3ee31aff99 100644 --- a/Content.Client/Cloning/UI/CloningPodWindow.cs +++ b/Content.Client/Cloning/UI/CloningPodWindow.cs @@ -208,7 +208,7 @@ namespace Content.Client.Cloning.UI } [DebuggerDisplay("cloningbutton {" + nameof(Index) + "}")] - private class CloningScanButton : Control + private sealed class CloningScanButton : Control { public string Scan { get; set; } = default!; public int Id { get; set; } diff --git a/Content.Client/Clothing/ClothingComponent.cs b/Content.Client/Clothing/ClothingComponent.cs index 1dbaf33123..0a775c87b7 100644 --- a/Content.Client/Clothing/ClothingComponent.cs +++ b/Content.Client/Clothing/ClothingComponent.cs @@ -11,7 +11,7 @@ namespace Content.Client.Clothing [ComponentReference(typeof(SharedItemComponent))] [ComponentReference(typeof(ItemComponent))] [NetworkedComponent()] - public class ClothingComponent : ItemComponent + public sealed class ClothingComponent : ItemComponent { [ViewVariables(VVAccess.ReadWrite)] [DataField("femaleMask")] diff --git a/Content.Client/Clothing/ClothingSystem.cs b/Content.Client/Clothing/ClothingSystem.cs index e630bae637..757db8060a 100644 --- a/Content.Client/Clothing/ClothingSystem.cs +++ b/Content.Client/Clothing/ClothingSystem.cs @@ -14,7 +14,7 @@ using Robust.Shared.IoC; namespace Content.Client.Clothing; -public class ClothingSystem : EntitySystem +public sealed class ClothingSystem : EntitySystem { /// /// This is a shitty hotfix written by me (Paul) to save me from renaming all files. diff --git a/Content.Client/Clothing/MagbootsSystem.cs b/Content.Client/Clothing/MagbootsSystem.cs index 040df94a50..d16b70fc4b 100644 --- a/Content.Client/Clothing/MagbootsSystem.cs +++ b/Content.Client/Clothing/MagbootsSystem.cs @@ -4,7 +4,7 @@ using Robust.Shared.GameObjects; namespace Content.Client.Clothing { - public class MagbootsSystem : EntitySystem + public sealed class MagbootsSystem : EntitySystem { public override void Initialize() { diff --git a/Content.Client/CombatMode/ColoredScreenBorderOverlay.cs b/Content.Client/CombatMode/ColoredScreenBorderOverlay.cs index 590f4d6b22..e042e5081b 100644 --- a/Content.Client/CombatMode/ColoredScreenBorderOverlay.cs +++ b/Content.Client/CombatMode/ColoredScreenBorderOverlay.cs @@ -6,7 +6,7 @@ using Robust.Shared.Prototypes; namespace Content.Client.CombatMode { - public class ColoredScreenBorderOverlay : Overlay + public sealed class ColoredScreenBorderOverlay : Overlay { [Dependency] private readonly IPrototypeManager _prototypeManager = default!; diff --git a/Content.Client/Commands/GroupingEntityMenuCommand.cs b/Content.Client/Commands/GroupingEntityMenuCommand.cs index 99efb93c71..f64c5c6332 100644 --- a/Content.Client/Commands/GroupingEntityMenuCommand.cs +++ b/Content.Client/Commands/GroupingEntityMenuCommand.cs @@ -6,7 +6,7 @@ using Robust.Shared.IoC; namespace Content.Client.Commands { - public class GroupingEntityMenuCommand : IConsoleCommand + public sealed class GroupingEntityMenuCommand : IConsoleCommand { public string Command => "entitymenug"; diff --git a/Content.Client/Commands/HideMechanismsCommand.cs b/Content.Client/Commands/HideMechanismsCommand.cs index 910db5b887..b8cbeb21a7 100644 --- a/Content.Client/Commands/HideMechanismsCommand.cs +++ b/Content.Client/Commands/HideMechanismsCommand.cs @@ -8,7 +8,7 @@ using Robust.Shared.IoC; namespace Content.Client.Commands { - public class HideMechanismsCommand : IConsoleCommand + public sealed class HideMechanismsCommand : IConsoleCommand { public string Command => "hidemechanisms"; public string Description => $"Reverts the effects of {ShowMechanismsCommand.CommandName}"; diff --git a/Content.Client/Commands/OpenAHelpCommand.cs b/Content.Client/Commands/OpenAHelpCommand.cs index ddaf8121c4..6cff7c08eb 100644 --- a/Content.Client/Commands/OpenAHelpCommand.cs +++ b/Content.Client/Commands/OpenAHelpCommand.cs @@ -8,7 +8,7 @@ using Robust.Shared.Network; namespace Content.Client.Commands { [AnyCommand] - public class OpenAHelpCommand : IConsoleCommand + public sealed class OpenAHelpCommand : IConsoleCommand { public string Command => "openahelp"; public string Description => $"Opens AHelp channel for a given NetUserID, or your personal channel if none given."; diff --git a/Content.Client/Commands/ShowMechanismsCommand.cs b/Content.Client/Commands/ShowMechanismsCommand.cs index 433ee6b13c..1221d97ebf 100644 --- a/Content.Client/Commands/ShowMechanismsCommand.cs +++ b/Content.Client/Commands/ShowMechanismsCommand.cs @@ -7,7 +7,7 @@ using Robust.Shared.IoC; namespace Content.Client.Commands { - public class ShowMechanismsCommand : IConsoleCommand + public sealed class ShowMechanismsCommand : IConsoleCommand { public const string CommandName = "showmechanisms"; diff --git a/Content.Client/Commands/ToggleHealthOverlayCommand.cs b/Content.Client/Commands/ToggleHealthOverlayCommand.cs index a2c2a55b8b..76000f42a1 100644 --- a/Content.Client/Commands/ToggleHealthOverlayCommand.cs +++ b/Content.Client/Commands/ToggleHealthOverlayCommand.cs @@ -4,7 +4,7 @@ using Robust.Shared.GameObjects; namespace Content.Client.Commands { - public class ToggleHealthOverlayCommand : IConsoleCommand + public sealed class ToggleHealthOverlayCommand : IConsoleCommand { public string Command => "togglehealthoverlay"; public string Description => "Toggles a health bar above mobs."; diff --git a/Content.Client/Commands/ToggleOutlineCommand.cs b/Content.Client/Commands/ToggleOutlineCommand.cs index f8cefbf8d2..3f02435493 100644 --- a/Content.Client/Commands/ToggleOutlineCommand.cs +++ b/Content.Client/Commands/ToggleOutlineCommand.cs @@ -7,7 +7,7 @@ using Robust.Shared.IoC; namespace Content.Client.Commands { [AnyCommand] - public class ToggleOutlineCommand : IConsoleCommand + public sealed class ToggleOutlineCommand : IConsoleCommand { public string Command => "toggleoutline"; diff --git a/Content.Client/Communications/UI/CommunicationsConsoleBoundUserInterface.cs b/Content.Client/Communications/UI/CommunicationsConsoleBoundUserInterface.cs index fa7411aeb9..5e6a35dc40 100644 --- a/Content.Client/Communications/UI/CommunicationsConsoleBoundUserInterface.cs +++ b/Content.Client/Communications/UI/CommunicationsConsoleBoundUserInterface.cs @@ -8,7 +8,7 @@ using Robust.Shared.ViewVariables; namespace Content.Client.Communications.UI { - public class CommunicationsConsoleBoundUserInterface : BoundUserInterface + public sealed class CommunicationsConsoleBoundUserInterface : BoundUserInterface { [Dependency] private readonly IGameTiming _gameTiming = default!; diff --git a/Content.Client/Communications/UI/CommunicationsConsoleMenu.cs b/Content.Client/Communications/UI/CommunicationsConsoleMenu.cs index 773086c3c7..8b2fc31f76 100644 --- a/Content.Client/Communications/UI/CommunicationsConsoleMenu.cs +++ b/Content.Client/Communications/UI/CommunicationsConsoleMenu.cs @@ -10,7 +10,7 @@ using Timer = Robust.Shared.Timing.Timer; namespace Content.Client.Communications.UI { - public class CommunicationsConsoleMenu : DefaultWindow + public sealed class CommunicationsConsoleMenu : DefaultWindow { private CommunicationsConsoleBoundUserInterface Owner { get; set; } private readonly CancellationTokenSource _timerCancelTokenSource = new(); diff --git a/Content.Client/Computer/ComputerBoundUserInterface.cs b/Content.Client/Computer/ComputerBoundUserInterface.cs index c402942d0a..cb216fc76e 100644 --- a/Content.Client/Computer/ComputerBoundUserInterface.cs +++ b/Content.Client/Computer/ComputerBoundUserInterface.cs @@ -9,6 +9,7 @@ namespace Content.Client.Computer /// ComputerBoundUserInterface shunts all sorts of responsibilities that are in the BoundUserInterface for architectural reasons into the Window. /// NOTE: Despite the name, ComputerBoundUserInterface does not and will not care about things like power. /// + [Virtual] public class ComputerBoundUserInterface : ComputerBoundUserInterfaceBase where TWindow : BaseWindow, IComputerWindow, new() where TState : BoundUserInterfaceState { [Dependency] private readonly IDynamicTypeFactory _dynamicTypeFactory = default!; @@ -54,6 +55,7 @@ namespace Content.Client.Computer /// This class is to avoid a lot of <> being written when we just want to refer to SendMessage. /// We could instead qualify a lot of generics even further, but that is a waste of time. /// + [Virtual] public class ComputerBoundUserInterfaceBase : BoundUserInterface { public ComputerBoundUserInterfaceBase(ClientUserInterfaceComponent owner, object uiKey) : base(owner, uiKey) {} diff --git a/Content.Client/Configurable/UI/ConfigurationBoundUserInterface.cs b/Content.Client/Configurable/UI/ConfigurationBoundUserInterface.cs index bc4bd2e5ad..0bbec64126 100644 --- a/Content.Client/Configurable/UI/ConfigurationBoundUserInterface.cs +++ b/Content.Client/Configurable/UI/ConfigurationBoundUserInterface.cs @@ -6,7 +6,7 @@ using static Content.Shared.Configurable.SharedConfigurationComponent; namespace Content.Client.Configurable.UI { - public class ConfigurationBoundUserInterface : BoundUserInterface + public sealed class ConfigurationBoundUserInterface : BoundUserInterface { public Regex? Validation { get; internal set; } diff --git a/Content.Client/Configurable/UI/ConfigurationMenu.cs b/Content.Client/Configurable/UI/ConfigurationMenu.cs index 218c1382b1..4b94e3055e 100644 --- a/Content.Client/Configurable/UI/ConfigurationMenu.cs +++ b/Content.Client/Configurable/UI/ConfigurationMenu.cs @@ -10,7 +10,7 @@ using static Robust.Client.UserInterface.Controls.BoxContainer; namespace Content.Client.Configurable.UI { - public class ConfigurationMenu : DefaultWindow + public sealed class ConfigurationMenu : DefaultWindow { public ConfigurationBoundUserInterface Owner { get; } diff --git a/Content.Client/Construction/ConstructionGhostComponent.cs b/Content.Client/Construction/ConstructionGhostComponent.cs index 1d10a5dea0..54bf4bfb66 100644 --- a/Content.Client/Construction/ConstructionGhostComponent.cs +++ b/Content.Client/Construction/ConstructionGhostComponent.cs @@ -5,7 +5,7 @@ using Robust.Shared.ViewVariables; namespace Content.Client.Construction { [RegisterComponent] - public class ConstructionGhostComponent : Component + public sealed class ConstructionGhostComponent : Component { [ViewVariables] public ConstructionPrototype? Prototype { get; set; } [ViewVariables] public int GhostId { get; set; } diff --git a/Content.Client/Construction/ConstructionSystem.cs b/Content.Client/Construction/ConstructionSystem.cs index 78eac7f829..60ae6065b6 100644 --- a/Content.Client/Construction/ConstructionSystem.cs +++ b/Content.Client/Construction/ConstructionSystem.cs @@ -23,7 +23,7 @@ namespace Content.Client.Construction /// The client-side implementation of the construction system, which is used for constructing entities in game. /// [UsedImplicitly] - public class ConstructionSystem : SharedConstructionSystem + public sealed class ConstructionSystem : SharedConstructionSystem { [Dependency] private readonly IPlayerManager _playerManager = default!; [Dependency] private readonly IPrototypeManager _prototypeManager = default!; @@ -246,7 +246,7 @@ namespace Content.Client.Construction } } - public class CraftingAvailabilityChangedArgs : EventArgs + public sealed class CraftingAvailabilityChangedArgs : EventArgs { public bool Available { get; } diff --git a/Content.Client/Construction/MachineFrameVisualizer.cs b/Content.Client/Construction/MachineFrameVisualizer.cs index 239d1657ac..5c0bae6e83 100644 --- a/Content.Client/Construction/MachineFrameVisualizer.cs +++ b/Content.Client/Construction/MachineFrameVisualizer.cs @@ -7,7 +7,7 @@ using Robust.Shared.IoC; namespace Content.Client.Construction { [UsedImplicitly] - public class MachineFrameVisualizer : AppearanceVisualizer + public sealed class MachineFrameVisualizer : AppearanceVisualizer { public override void OnChangeData(AppearanceComponent component) { diff --git a/Content.Client/Construction/UI/ConstructionMenu.xaml.cs b/Content.Client/Construction/UI/ConstructionMenu.xaml.cs index 26e998ee3a..125d9210cf 100644 --- a/Content.Client/Construction/UI/ConstructionMenu.xaml.cs +++ b/Content.Client/Construction/UI/ConstructionMenu.xaml.cs @@ -53,7 +53,7 @@ namespace Content.Client.Construction.UI } [GenerateTypedNameReferences] - public partial class ConstructionMenu : DefaultWindow, IConstructionMenuView + public sealed partial class ConstructionMenu : DefaultWindow, IConstructionMenuView { public bool BuildButtonPressed { diff --git a/Content.Client/Construction/UI/ConstructionMenuPresenter.cs b/Content.Client/Construction/UI/ConstructionMenuPresenter.cs index f06c56b309..f3b023e60d 100644 --- a/Content.Client/Construction/UI/ConstructionMenuPresenter.cs +++ b/Content.Client/Construction/UI/ConstructionMenuPresenter.cs @@ -25,7 +25,7 @@ namespace Content.Client.Construction.UI /// model. This is where the bulk of UI work is done, either calling functions in the model to change state, or collecting /// data out of the model to *present* to the screen though the UI framework. /// - internal class ConstructionMenuPresenter : IDisposable + internal sealed class ConstructionMenuPresenter : IDisposable { [Dependency] private readonly IEntitySystemManager _systemManager = default!; [Dependency] private readonly IPrototypeManager _prototypeManager = default!; diff --git a/Content.Client/ContextMenu/UI/ContextMenuElement.xaml.cs b/Content.Client/ContextMenu/UI/ContextMenuElement.xaml.cs index 5e5dd9a210..d39bd7f5ad 100644 --- a/Content.Client/ContextMenu/UI/ContextMenuElement.xaml.cs +++ b/Content.Client/ContextMenu/UI/ContextMenuElement.xaml.cs @@ -15,6 +15,7 @@ namespace Content.Client.ContextMenu.UI /// If this entry has a sub-menu, it also shows a little ">" icon on the right. /// [GenerateTypedNameReferences] + [Virtual] public partial class ContextMenuElement : ContainerButton { public const string StyleClassContextMenuButton = "contextMenuButton"; diff --git a/Content.Client/ContextMenu/UI/ContextMenuPopup.xaml.cs b/Content.Client/ContextMenu/UI/ContextMenuPopup.xaml.cs index 6eab81ded2..063535819d 100644 --- a/Content.Client/ContextMenu/UI/ContextMenuPopup.xaml.cs +++ b/Content.Client/ContextMenu/UI/ContextMenuPopup.xaml.cs @@ -12,7 +12,7 @@ namespace Content.Client.ContextMenu.UI /// The base context-menu pop-up window used for both the entity and verb menus. /// [GenerateTypedNameReferences] - public partial class ContextMenuPopup : Popup + public sealed partial class ContextMenuPopup : Popup { public const string StyleClassContextMenuPopup = "contextMenuPopup"; @@ -52,7 +52,7 @@ namespace Content.Client.ContextMenu.UI UserInterfaceManager.ModalRoot.AddChild(this); MenuBody.OnChildRemoved += ctrl => _presenter.OnRemoveElement(this, ctrl); - + if (ParentElement != null) { DebugTools.Assert(ParentElement.SubMenu == null); diff --git a/Content.Client/ContextMenu/UI/ContextMenuPresenter.cs b/Content.Client/ContextMenu/UI/ContextMenuPresenter.cs index 62e7251861..a19f225214 100644 --- a/Content.Client/ContextMenu/UI/ContextMenuPresenter.cs +++ b/Content.Client/ContextMenu/UI/ContextMenuPresenter.cs @@ -13,6 +13,7 @@ namespace Content.Client.ContextMenu.UI /// /// This largely involves setting up timers to open and close sub-menus when hovering over other menu elements. /// + [Virtual] public class ContextMenuPresenter : IDisposable { public static readonly TimeSpan HoverDelay = TimeSpan.FromSeconds(0.2); @@ -179,7 +180,7 @@ namespace Content.Client.ContextMenu.UI } /// - /// Removes event subscriptions when an element is removed from a menu, + /// Removes event subscriptions when an element is removed from a menu, /// public void OnRemoveElement(ContextMenuPopup menu, Control control) { diff --git a/Content.Client/ContextMenu/UI/EntityMenuElement.cs b/Content.Client/ContextMenu/UI/EntityMenuElement.cs index ba96a9522a..00ce165a06 100644 --- a/Content.Client/ContextMenu/UI/EntityMenuElement.cs +++ b/Content.Client/ContextMenu/UI/EntityMenuElement.cs @@ -6,7 +6,7 @@ using Robust.Shared.Maths; namespace Content.Client.ContextMenu.UI { - public partial class EntityMenuElement : ContextMenuElement + public sealed partial class EntityMenuElement : ContextMenuElement { public const string StyleClassEntityMenuCountText = "contextMenuCount"; diff --git a/Content.Client/Conveyor/Visualizers/ConveyorVisualizer.cs b/Content.Client/Conveyor/Visualizers/ConveyorVisualizer.cs index 5a40c18de5..1c9e66989f 100644 --- a/Content.Client/Conveyor/Visualizers/ConveyorVisualizer.cs +++ b/Content.Client/Conveyor/Visualizers/ConveyorVisualizer.cs @@ -9,7 +9,7 @@ using Robust.Shared.Serialization.Manager.Attributes; namespace Content.Client.Conveyor.Visualizers { [UsedImplicitly] - public class ConveyorVisualizer : AppearanceVisualizer + public sealed class ConveyorVisualizer : AppearanceVisualizer { [DataField("state_running")] private string? _stateRunning; diff --git a/Content.Client/Conveyor/Visualizers/TwoWayLeverVisualizer.cs b/Content.Client/Conveyor/Visualizers/TwoWayLeverVisualizer.cs index 6608578501..15f617fbfd 100644 --- a/Content.Client/Conveyor/Visualizers/TwoWayLeverVisualizer.cs +++ b/Content.Client/Conveyor/Visualizers/TwoWayLeverVisualizer.cs @@ -8,7 +8,7 @@ using Robust.Shared.Serialization.Manager.Attributes; namespace Content.Client.Conveyor.Visualizers { [UsedImplicitly] - public class TwoWayLeverVisualizer : AppearanceVisualizer + public sealed class TwoWayLeverVisualizer : AppearanceVisualizer { [DataField("state_forward")] private string? _stateForward; diff --git a/Content.Client/Cooldown/CooldownGraphic.cs b/Content.Client/Cooldown/CooldownGraphic.cs index 44a89a826e..5e916f0a74 100644 --- a/Content.Client/Cooldown/CooldownGraphic.cs +++ b/Content.Client/Cooldown/CooldownGraphic.cs @@ -8,7 +8,7 @@ using Robust.Shared.Prototypes; namespace Content.Client.Cooldown { - public class CooldownGraphic : Control + public sealed class CooldownGraphic : Control { [Dependency] private readonly IPrototypeManager _protoMan = default!; diff --git a/Content.Client/Crayon/UI/CrayonBoundUserInterface.cs b/Content.Client/Crayon/UI/CrayonBoundUserInterface.cs index 24d7f5c73d..bd69d867a4 100644 --- a/Content.Client/Crayon/UI/CrayonBoundUserInterface.cs +++ b/Content.Client/Crayon/UI/CrayonBoundUserInterface.cs @@ -8,7 +8,7 @@ using Robust.Shared.Prototypes; namespace Content.Client.Crayon.UI { - public class CrayonBoundUserInterface : BoundUserInterface + public sealed class CrayonBoundUserInterface : BoundUserInterface { public CrayonBoundUserInterface(ClientUserInterfaceComponent owner, object uiKey) : base(owner, uiKey) { diff --git a/Content.Client/Crayon/UI/CrayonWindow.xaml.cs b/Content.Client/Crayon/UI/CrayonWindow.xaml.cs index f92f58951b..0fac212c08 100644 --- a/Content.Client/Crayon/UI/CrayonWindow.xaml.cs +++ b/Content.Client/Crayon/UI/CrayonWindow.xaml.cs @@ -15,7 +15,7 @@ using static Robust.Client.UserInterface.Controls.BaseButton; namespace Content.Client.Crayon.UI { [GenerateTypedNameReferences] - public partial class CrayonWindow : DefaultWindow + public sealed partial class CrayonWindow : DefaultWindow { public CrayonBoundUserInterface Owner { get; } diff --git a/Content.Client/Cuffs/Components/CuffableComponent.cs b/Content.Client/Cuffs/Components/CuffableComponent.cs index 3fa3866241..86012e33c4 100644 --- a/Content.Client/Cuffs/Components/CuffableComponent.cs +++ b/Content.Client/Cuffs/Components/CuffableComponent.cs @@ -11,7 +11,7 @@ namespace Content.Client.Cuffs.Components { [RegisterComponent] [ComponentReference(typeof(SharedCuffableComponent))] - public class CuffableComponent : SharedCuffableComponent + public sealed class CuffableComponent : SharedCuffableComponent { [ViewVariables] private string? _currentRSI; diff --git a/Content.Client/Cuffs/Components/HandcuffComponent.cs b/Content.Client/Cuffs/Components/HandcuffComponent.cs index a5351aa864..b5d5267965 100644 --- a/Content.Client/Cuffs/Components/HandcuffComponent.cs +++ b/Content.Client/Cuffs/Components/HandcuffComponent.cs @@ -8,7 +8,7 @@ namespace Content.Client.Cuffs.Components { [RegisterComponent] [ComponentReference(typeof(SharedHandcuffComponent))] - public class HandcuffComponent : SharedHandcuffComponent + public sealed class HandcuffComponent : SharedHandcuffComponent { public override void HandleComponentState(ComponentState? curState, ComponentState? nextState) { diff --git a/Content.Client/Damage/DamageVisualizer.cs b/Content.Client/Damage/DamageVisualizer.cs index 489d63875f..a04e83a183 100644 --- a/Content.Client/Damage/DamageVisualizer.cs +++ b/Content.Client/Damage/DamageVisualizer.cs @@ -35,7 +35,7 @@ namespace Content.Client.Damage /// of the sprite layer, and then passing in a bool value /// (true to enable, false to disable). /// - public class DamageVisualizer : AppearanceVisualizer + public sealed class DamageVisualizer : AppearanceVisualizer { [Dependency] private readonly IPrototypeManager _prototypeManager = default!; [Dependency] private readonly IEntityManager _entityManager = default!; @@ -161,7 +161,7 @@ namespace Content.Client.Damage // deals with the edge case of human damage visuals not // being in color without making a Dict /// The RSI path for the damage visualizer diff --git a/Content.Client/Damage/DamageVisualizerComponent.cs b/Content.Client/Damage/DamageVisualizerComponent.cs index 6230ecb571..cd4b401251 100644 --- a/Content.Client/Damage/DamageVisualizerComponent.cs +++ b/Content.Client/Damage/DamageVisualizerComponent.cs @@ -11,7 +11,7 @@ namespace Content.Client.Damage // store it in the entity itself as a separate, // dynamically added component. [RegisterComponent] - public class DamageVisualizerDataComponent : Component + public sealed class DamageVisualizerDataComponent : Component { public List TargetLayerMapKeys = new(); public bool Disabled = false; diff --git a/Content.Client/Decals/DecalOverlay.cs b/Content.Client/Decals/DecalOverlay.cs index bbd20d1612..a84665009c 100644 --- a/Content.Client/Decals/DecalOverlay.cs +++ b/Content.Client/Decals/DecalOverlay.cs @@ -9,7 +9,7 @@ using Robust.Shared.Utility; namespace Content.Client.Decals { - public class DecalOverlay : Overlay + public sealed class DecalOverlay : Overlay { private readonly DecalSystem _system; private readonly IMapManager _mapManager; diff --git a/Content.Client/Decals/DecalSystem.cs b/Content.Client/Decals/DecalSystem.cs index 4f16c4ba5c..bd0275dfb5 100644 --- a/Content.Client/Decals/DecalSystem.cs +++ b/Content.Client/Decals/DecalSystem.cs @@ -7,7 +7,7 @@ using Robust.Shared.Map; namespace Content.Client.Decals { - public class DecalSystem : SharedDecalSystem + public sealed class DecalSystem : SharedDecalSystem { [Dependency] private readonly IOverlayManager _overlayManager = default!; diff --git a/Content.Client/Decals/ToggleDecalCommand.cs b/Content.Client/Decals/ToggleDecalCommand.cs index 37930701f7..9f0851f080 100644 --- a/Content.Client/Decals/ToggleDecalCommand.cs +++ b/Content.Client/Decals/ToggleDecalCommand.cs @@ -3,7 +3,7 @@ using Robust.Shared.GameObjects; namespace Content.Client.Decals; -public class ToggleDecalCommand : IConsoleCommand +public sealed class ToggleDecalCommand : IConsoleCommand { public string Command => "toggledecals"; public string Description => "Toggles decaloverlay"; diff --git a/Content.Client/Disposal/Components/DisposalUnitComponent.cs b/Content.Client/Disposal/Components/DisposalUnitComponent.cs index 4ef25aa185..afbd22616b 100644 --- a/Content.Client/Disposal/Components/DisposalUnitComponent.cs +++ b/Content.Client/Disposal/Components/DisposalUnitComponent.cs @@ -6,7 +6,7 @@ namespace Content.Client.Disposal.Components { [RegisterComponent] [ComponentReference(typeof(SharedDisposalUnitComponent))] - public class DisposalUnitComponent : SharedDisposalUnitComponent + public sealed class DisposalUnitComponent : SharedDisposalUnitComponent { public DisposalUnitBoundUserInterfaceState? UiState; diff --git a/Content.Client/Disposal/UI/DisposalRouterBoundUserInterface.cs b/Content.Client/Disposal/UI/DisposalRouterBoundUserInterface.cs index b6e87c6a40..207d332793 100644 --- a/Content.Client/Disposal/UI/DisposalRouterBoundUserInterface.cs +++ b/Content.Client/Disposal/UI/DisposalRouterBoundUserInterface.cs @@ -9,7 +9,7 @@ namespace Content.Client.Disposal.UI /// Initializes a and updates it when new server messages are received. /// [UsedImplicitly] - public class DisposalRouterBoundUserInterface : BoundUserInterface + public sealed class DisposalRouterBoundUserInterface : BoundUserInterface { private DisposalRouterWindow? _window; diff --git a/Content.Client/Disposal/UI/DisposalRouterWindow.xaml.cs b/Content.Client/Disposal/UI/DisposalRouterWindow.xaml.cs index 92c0e7324f..39ee9fbe23 100644 --- a/Content.Client/Disposal/UI/DisposalRouterWindow.xaml.cs +++ b/Content.Client/Disposal/UI/DisposalRouterWindow.xaml.cs @@ -11,7 +11,7 @@ namespace Content.Client.Disposal.UI /// Client-side UI used to control a /// [GenerateTypedNameReferences] - public partial class DisposalRouterWindow : DefaultWindow + public sealed partial class DisposalRouterWindow : DefaultWindow { public DisposalRouterWindow() { diff --git a/Content.Client/Disposal/UI/DisposalTaggerBoundUserInterface.cs b/Content.Client/Disposal/UI/DisposalTaggerBoundUserInterface.cs index be7b78918d..09d42372d9 100644 --- a/Content.Client/Disposal/UI/DisposalTaggerBoundUserInterface.cs +++ b/Content.Client/Disposal/UI/DisposalTaggerBoundUserInterface.cs @@ -9,7 +9,7 @@ namespace Content.Client.Disposal.UI /// Initializes a and updates it when new server messages are received. /// [UsedImplicitly] - public class DisposalTaggerBoundUserInterface : BoundUserInterface + public sealed class DisposalTaggerBoundUserInterface : BoundUserInterface { private DisposalTaggerWindow? _window; diff --git a/Content.Client/Disposal/UI/DisposalTaggerWindow.xaml.cs b/Content.Client/Disposal/UI/DisposalTaggerWindow.xaml.cs index 4306636c59..b49d5d997b 100644 --- a/Content.Client/Disposal/UI/DisposalTaggerWindow.xaml.cs +++ b/Content.Client/Disposal/UI/DisposalTaggerWindow.xaml.cs @@ -11,7 +11,7 @@ namespace Content.Client.Disposal.UI /// Client-side UI used to control a /// [GenerateTypedNameReferences] - public partial class DisposalTaggerWindow : DefaultWindow + public sealed partial class DisposalTaggerWindow : DefaultWindow { public DisposalTaggerWindow() { diff --git a/Content.Client/Disposal/UI/DisposalUnitBoundUserInterface.cs b/Content.Client/Disposal/UI/DisposalUnitBoundUserInterface.cs index 10eb990421..dd4965210b 100644 --- a/Content.Client/Disposal/UI/DisposalUnitBoundUserInterface.cs +++ b/Content.Client/Disposal/UI/DisposalUnitBoundUserInterface.cs @@ -12,7 +12,7 @@ namespace Content.Client.Disposal.UI /// Initializes a and updates it when new server messages are received. /// [UsedImplicitly] - public class DisposalUnitBoundUserInterface : BoundUserInterface + public sealed class DisposalUnitBoundUserInterface : BoundUserInterface { public DisposalUnitWindow? Window; diff --git a/Content.Client/Disposal/UI/DisposalUnitWindow.xaml.cs b/Content.Client/Disposal/UI/DisposalUnitWindow.xaml.cs index c9022cef99..51ddf7a891 100644 --- a/Content.Client/Disposal/UI/DisposalUnitWindow.xaml.cs +++ b/Content.Client/Disposal/UI/DisposalUnitWindow.xaml.cs @@ -17,7 +17,7 @@ namespace Content.Client.Disposal.UI /// Client-side UI used to control a /// [GenerateTypedNameReferences] - public partial class DisposalUnitWindow : DefaultWindow + public sealed partial class DisposalUnitWindow : DefaultWindow { public DisposalUnitWindow() { diff --git a/Content.Client/Disposal/Visualizers/DisposalUnitVisualizer.cs b/Content.Client/Disposal/Visualizers/DisposalUnitVisualizer.cs index 1e3a60f5b5..8a358275cc 100644 --- a/Content.Client/Disposal/Visualizers/DisposalUnitVisualizer.cs +++ b/Content.Client/Disposal/Visualizers/DisposalUnitVisualizer.cs @@ -12,7 +12,7 @@ using static Content.Shared.Disposal.Components.SharedDisposalUnitComponent; namespace Content.Client.Disposal.Visualizers { [UsedImplicitly] - public class DisposalUnitVisualizer : AppearanceVisualizer, ISerializationHooks + public sealed class DisposalUnitVisualizer : AppearanceVisualizer, ISerializationHooks { private const string AnimationKey = "disposal_unit_animation"; diff --git a/Content.Client/Disposal/Visualizers/DisposalVisualizer.cs b/Content.Client/Disposal/Visualizers/DisposalVisualizer.cs index dffaf8b7e2..b367f3d757 100644 --- a/Content.Client/Disposal/Visualizers/DisposalVisualizer.cs +++ b/Content.Client/Disposal/Visualizers/DisposalVisualizer.cs @@ -10,7 +10,7 @@ using Robust.Shared.Serialization.Manager.Attributes; namespace Content.Client.Disposal.Visualizers { [UsedImplicitly] - public class DisposalVisualizer : AppearanceVisualizer + public sealed class DisposalVisualizer : AppearanceVisualizer { [DataField("state_free")] private string? _stateFree; diff --git a/Content.Client/Doors/AirlockVisualizer.cs b/Content.Client/Doors/AirlockVisualizer.cs index c85d695568..1afa3bd1db 100644 --- a/Content.Client/Doors/AirlockVisualizer.cs +++ b/Content.Client/Doors/AirlockVisualizer.cs @@ -13,7 +13,7 @@ using Robust.Shared.Timing; namespace Content.Client.Doors { [UsedImplicitly] - public class AirlockVisualizer : AppearanceVisualizer, ISerializationHooks + public sealed class AirlockVisualizer : AppearanceVisualizer, ISerializationHooks { [Dependency] private readonly IEntityManager _entMan = default!; [Dependency] private readonly IGameTiming _gameTiming = default!; @@ -211,10 +211,10 @@ namespace Content.Client.Doors sprite.LayerSetVisible(DoorVisualLayers.BaseBolted, unlitVisible && boltedVisible); if (_emergencyAccessLayer) { - sprite.LayerSetVisible(DoorVisualLayers.BaseEmergencyAccess, - emergencyLightsVisible - && state != DoorState.Open - && state != DoorState.Opening + sprite.LayerSetVisible(DoorVisualLayers.BaseEmergencyAccess, + emergencyLightsVisible + && state != DoorState.Open + && state != DoorState.Opening && state != DoorState.Closing && unlitVisible); } diff --git a/Content.Client/DragDrop/DragDropHelper.cs b/Content.Client/DragDrop/DragDropHelper.cs index 0502c17c02..193a92beea 100644 --- a/Content.Client/DragDrop/DragDropHelper.cs +++ b/Content.Client/DragDrop/DragDropHelper.cs @@ -19,7 +19,7 @@ namespace Content.Client.DragDrop /// If for any reason the drag is ended, OnEndDrag is invoked. /// /// thing being dragged and dropped - public class DragDropHelper + public sealed class DragDropHelper { private const float DefaultDragDeadzone = 2f; diff --git a/Content.Client/DragDrop/DragDropSystem.cs b/Content.Client/DragDrop/DragDropSystem.cs index 1bf2dac727..07b8a0d7bc 100644 --- a/Content.Client/DragDrop/DragDropSystem.cs +++ b/Content.Client/DragDrop/DragDropSystem.cs @@ -31,7 +31,7 @@ namespace Content.Client.DragDrop /// Handles clientside drag and drop logic /// [UsedImplicitly] - public class DragDropSystem : SharedDragDropSystem + public sealed class DragDropSystem : SharedDragDropSystem { [Dependency] private readonly IStateManager _stateManager = default!; [Dependency] private readonly IInputManager _inputManager = default!; diff --git a/Content.Client/Entry/EntryPoint.cs b/Content.Client/Entry/EntryPoint.cs index 6d27ad6eff..32de36df8d 100644 --- a/Content.Client/Entry/EntryPoint.cs +++ b/Content.Client/Entry/EntryPoint.cs @@ -52,7 +52,7 @@ using Robust.Shared.Timing; namespace Content.Client.Entry { - public class EntryPoint : GameClient + public sealed class EntryPoint : GameClient { [Dependency] private readonly IPlayerManager _playerManager = default!; [Dependency] private readonly IBaseClient _baseClient = default!; diff --git a/Content.Client/EscapeMenu/UI/EscapeMenu.xaml.cs b/Content.Client/EscapeMenu/UI/EscapeMenu.xaml.cs index 5fae1da138..f3ee52c1ca 100644 --- a/Content.Client/EscapeMenu/UI/EscapeMenu.xaml.cs +++ b/Content.Client/EscapeMenu/UI/EscapeMenu.xaml.cs @@ -9,7 +9,7 @@ using Robust.Shared.GameObjects; namespace Content.Client.EscapeMenu.UI { [GenerateTypedNameReferences] - internal partial class EscapeMenu : DefaultWindow + internal sealed partial class EscapeMenu : DefaultWindow { private readonly IClientConsoleHost _consoleHost; diff --git a/Content.Client/EscapeMenu/UI/OptionsMenu.xaml.cs b/Content.Client/EscapeMenu/UI/OptionsMenu.xaml.cs index 75eac722db..f5e5f997a5 100644 --- a/Content.Client/EscapeMenu/UI/OptionsMenu.xaml.cs +++ b/Content.Client/EscapeMenu/UI/OptionsMenu.xaml.cs @@ -7,7 +7,7 @@ using Robust.Shared.Localization; namespace Content.Client.EscapeMenu.UI { [GenerateTypedNameReferences] - public partial class OptionsMenu : DefaultWindow + public sealed partial class OptionsMenu : DefaultWindow { public OptionsMenu() { diff --git a/Content.Client/EscapeMenu/UI/Tabs/AudioTab.xaml.cs b/Content.Client/EscapeMenu/UI/Tabs/AudioTab.xaml.cs index 629a457264..2af9d1ebd8 100644 --- a/Content.Client/EscapeMenu/UI/Tabs/AudioTab.xaml.cs +++ b/Content.Client/EscapeMenu/UI/Tabs/AudioTab.xaml.cs @@ -15,7 +15,7 @@ using Robust.Shared.Localization; namespace Content.Client.EscapeMenu.UI.Tabs { [GenerateTypedNameReferences] - public partial class AudioTab : Control + public sealed partial class AudioTab : Control { [Dependency] private readonly IConfigurationManager _cfg = default!; [Dependency] private readonly IClydeAudio _clydeAudio = default!; diff --git a/Content.Client/EscapeMenu/UI/Tabs/GraphicsTab.xaml.cs b/Content.Client/EscapeMenu/UI/Tabs/GraphicsTab.xaml.cs index 91caadf4e2..9b790f4251 100644 --- a/Content.Client/EscapeMenu/UI/Tabs/GraphicsTab.xaml.cs +++ b/Content.Client/EscapeMenu/UI/Tabs/GraphicsTab.xaml.cs @@ -15,7 +15,7 @@ using Robust.Shared.Prototypes; namespace Content.Client.EscapeMenu.UI.Tabs { [GenerateTypedNameReferences] - public partial class GraphicsTab : Control + public sealed partial class GraphicsTab : Control { private static readonly float[] UIScaleOptions = { diff --git a/Content.Client/EscapeMenu/UI/Tabs/KeyRebindTab.xaml.cs b/Content.Client/EscapeMenu/UI/Tabs/KeyRebindTab.xaml.cs index b600781174..073ddb6549 100644 --- a/Content.Client/EscapeMenu/UI/Tabs/KeyRebindTab.xaml.cs +++ b/Content.Client/EscapeMenu/UI/Tabs/KeyRebindTab.xaml.cs @@ -22,7 +22,7 @@ using Robust.Client.UserInterface.CustomControls; namespace Content.Client.EscapeMenu.UI.Tabs { [GenerateTypedNameReferences] - public partial class KeyRebindTab : Control + public sealed partial class KeyRebindTab : Control { // List of key functions that must be registered as toggle instead. private static readonly HashSet ToggleFunctions = new() diff --git a/Content.Client/Examine/ExamineButton.cs b/Content.Client/Examine/ExamineButton.cs index 68c9ce36e8..f96c285aca 100644 --- a/Content.Client/Examine/ExamineButton.cs +++ b/Content.Client/Examine/ExamineButton.cs @@ -14,7 +14,7 @@ namespace Content.Client.Examine; /// Buttons that show up in the examine tooltip to specify more detailed /// ways to examine an item. /// -public class ExamineButton : ContainerButton +public sealed class ExamineButton : ContainerButton { public const string StyleClassExamineButton = "examine-button"; diff --git a/Content.Client/Explosion/ClusterGrenadeVisualizer.cs b/Content.Client/Explosion/ClusterGrenadeVisualizer.cs index 2ece5cb2b5..18795c813c 100644 --- a/Content.Client/Explosion/ClusterGrenadeVisualizer.cs +++ b/Content.Client/Explosion/ClusterGrenadeVisualizer.cs @@ -9,7 +9,7 @@ namespace Content.Client.Explosion { [UsedImplicitly] // ReSharper disable once InconsistentNaming - public class ClusterGrenadeVisualizer : AppearanceVisualizer + public sealed class ClusterGrenadeVisualizer : AppearanceVisualizer { [DataField("state")] private string? _state; diff --git a/Content.Client/Extinguisher/FireExtinguisherVisualizer.cs b/Content.Client/Extinguisher/FireExtinguisherVisualizer.cs index e3f9759342..1f69afbaa5 100644 --- a/Content.Client/Extinguisher/FireExtinguisherVisualizer.cs +++ b/Content.Client/Extinguisher/FireExtinguisherVisualizer.cs @@ -8,7 +8,7 @@ using Robust.Shared.Serialization.Manager.Attributes; namespace Content.Client.Extinguisher { [UsedImplicitly] - public class FireExtinguisherVisualizer : AppearanceVisualizer + public sealed class FireExtinguisherVisualizer : AppearanceVisualizer { [DataField("safety_on_state")] private string? _safetyOnState; diff --git a/Content.Client/Eye/EyeLerpingSystem.cs b/Content.Client/Eye/EyeLerpingSystem.cs index 92cde50108..2d7abb7d7a 100644 --- a/Content.Client/Eye/EyeLerpingSystem.cs +++ b/Content.Client/Eye/EyeLerpingSystem.cs @@ -11,7 +11,7 @@ using Robust.Shared.Timing; namespace Content.Client.Eye; -public class EyeLerpingSystem : EntitySystem +public sealed class EyeLerpingSystem : EntitySystem { [Dependency] private readonly IEyeManager _eyeManager = default!; [Dependency] private readonly IPlayerManager _playerManager = default!; diff --git a/Content.Client/Flash/FlashOverlay.cs b/Content.Client/Flash/FlashOverlay.cs index 87d78730d5..4ab5ff7b5a 100644 --- a/Content.Client/Flash/FlashOverlay.cs +++ b/Content.Client/Flash/FlashOverlay.cs @@ -10,7 +10,7 @@ using SixLabors.ImageSharp.PixelFormats; namespace Content.Client.Flash { - public class FlashOverlay : Overlay + public sealed class FlashOverlay : Overlay { [Dependency] private readonly IPrototypeManager _prototypeManager = default!; [Dependency] private readonly IClyde _displayManager = default!; diff --git a/Content.Client/Flash/FlashSystem.cs b/Content.Client/Flash/FlashSystem.cs index d6644811f5..9cdfd61e03 100644 --- a/Content.Client/Flash/FlashSystem.cs +++ b/Content.Client/Flash/FlashSystem.cs @@ -8,7 +8,7 @@ using Robust.Shared.Timing; namespace Content.Client.Flash { - public class FlashSystem : SharedFlashSystem + public sealed class FlashSystem : SharedFlashSystem { [Dependency] private readonly IGameTiming _gameTiming = default!; [Dependency] private readonly IPlayerManager _playerManager = default!; diff --git a/Content.Client/Fluids/PuddleVisualizer.cs b/Content.Client/Fluids/PuddleVisualizer.cs index dd5afc21df..8189e06a6c 100644 --- a/Content.Client/Fluids/PuddleVisualizer.cs +++ b/Content.Client/Fluids/PuddleVisualizer.cs @@ -13,7 +13,7 @@ using Robust.Shared.Serialization.Manager.Attributes; namespace Content.Client.Fluids { [UsedImplicitly] - public class PuddleVisualizer : AppearanceVisualizer + public sealed class PuddleVisualizer : AppearanceVisualizer { [Dependency] private readonly IRobustRandom _random = default!; diff --git a/Content.Client/GameTicking/Managers/ClientGameTicker.cs b/Content.Client/GameTicking/Managers/ClientGameTicker.cs index 59da6841a1..bc37a6e4d6 100644 --- a/Content.Client/GameTicking/Managers/ClientGameTicker.cs +++ b/Content.Client/GameTicking/Managers/ClientGameTicker.cs @@ -18,7 +18,7 @@ using Robust.Shared.ViewVariables; namespace Content.Client.GameTicking.Managers { [UsedImplicitly] - public class ClientGameTicker : SharedGameTicker + public sealed class ClientGameTicker : SharedGameTicker { [Dependency] private readonly IStateManager _stateManager = default!; diff --git a/Content.Client/Ghost/GhostSystem.cs b/Content.Client/Ghost/GhostSystem.cs index 57aff0b24c..0d6b3934cd 100644 --- a/Content.Client/Ghost/GhostSystem.cs +++ b/Content.Client/Ghost/GhostSystem.cs @@ -10,7 +10,7 @@ using Robust.Shared.IoC; namespace Content.Client.Ghost { [UsedImplicitly] - public class GhostSystem : SharedGhostSystem + public sealed class GhostSystem : SharedGhostSystem { [Dependency] private readonly IPlayerManager _playerManager = default!; [Dependency] private readonly IGameHud _gameHud = default!; diff --git a/Content.Client/Ghost/Roles/UI/GhostRoleRulesWindow.xaml.cs b/Content.Client/Ghost/Roles/UI/GhostRoleRulesWindow.xaml.cs index 51a1b08b82..915eb72db6 100644 --- a/Content.Client/Ghost/Roles/UI/GhostRoleRulesWindow.xaml.cs +++ b/Content.Client/Ghost/Roles/UI/GhostRoleRulesWindow.xaml.cs @@ -11,7 +11,7 @@ using Robust.Shared.Utility; namespace Content.Client.Ghost.Roles.UI { [GenerateTypedNameReferences] - public partial class GhostRoleRulesWindow : DefaultWindow + public sealed partial class GhostRoleRulesWindow : DefaultWindow { private float _timer = 5.0f; public GhostRoleRulesWindow(string rules, Action requestAction) diff --git a/Content.Client/Ghost/Roles/UI/GhostRolesEntry.xaml.cs b/Content.Client/Ghost/Roles/UI/GhostRolesEntry.xaml.cs index 1c9f128ae7..b2d22ee47d 100644 --- a/Content.Client/Ghost/Roles/UI/GhostRolesEntry.xaml.cs +++ b/Content.Client/Ghost/Roles/UI/GhostRolesEntry.xaml.cs @@ -7,7 +7,7 @@ using Robust.Client.UserInterface.XAML; namespace Content.Client.Ghost.Roles.UI { [GenerateTypedNameReferences] - public partial class GhostRolesEntry : BoxContainer + public sealed partial class GhostRolesEntry : BoxContainer { public GhostRolesEntry(GhostRoleInfo info, Action requestAction) { diff --git a/Content.Client/Ghost/Roles/UI/GhostRolesEui.cs b/Content.Client/Ghost/Roles/UI/GhostRolesEui.cs index 9769b67d44..b29d6415ec 100644 --- a/Content.Client/Ghost/Roles/UI/GhostRolesEui.cs +++ b/Content.Client/Ghost/Roles/UI/GhostRolesEui.cs @@ -6,7 +6,7 @@ using JetBrains.Annotations; namespace Content.Client.Ghost.Roles.UI { [UsedImplicitly] - public class GhostRolesEui : BaseEui + public sealed class GhostRolesEui : BaseEui { private readonly GhostRolesWindow _window; private GhostRoleRulesWindow? _windowRules = null; diff --git a/Content.Client/Ghost/Roles/UI/GhostRolesWindow.xaml.cs b/Content.Client/Ghost/Roles/UI/GhostRolesWindow.xaml.cs index 427435e7d9..e52709486d 100644 --- a/Content.Client/Ghost/Roles/UI/GhostRolesWindow.xaml.cs +++ b/Content.Client/Ghost/Roles/UI/GhostRolesWindow.xaml.cs @@ -6,7 +6,7 @@ using Robust.Client.UserInterface.CustomControls; namespace Content.Client.Ghost.Roles.UI { [GenerateTypedNameReferences] - public partial class GhostRolesWindow : DefaultWindow + public sealed partial class GhostRolesWindow : DefaultWindow { public event Action? RoleRequested; diff --git a/Content.Client/Ghost/Roles/UI/MakeGhostRoleEui.cs b/Content.Client/Ghost/Roles/UI/MakeGhostRoleEui.cs index 3fce0768d0..66a0550a75 100644 --- a/Content.Client/Ghost/Roles/UI/MakeGhostRoleEui.cs +++ b/Content.Client/Ghost/Roles/UI/MakeGhostRoleEui.cs @@ -11,7 +11,7 @@ using Robust.Shared.Utility; namespace Content.Client.Ghost.Roles.UI { [UsedImplicitly] - public class MakeGhostRoleEui : BaseEui + public sealed class MakeGhostRoleEui : BaseEui { [Dependency] private readonly IPlayerManager _playerManager = default!; [Dependency] private readonly IClientConsoleHost _consoleHost = default!; diff --git a/Content.Client/Ghost/Roles/UI/MakeGhostRoleWindow.xaml.cs b/Content.Client/Ghost/Roles/UI/MakeGhostRoleWindow.xaml.cs index 6ebbc71947..642c2252f7 100644 --- a/Content.Client/Ghost/Roles/UI/MakeGhostRoleWindow.xaml.cs +++ b/Content.Client/Ghost/Roles/UI/MakeGhostRoleWindow.xaml.cs @@ -7,7 +7,7 @@ using static Robust.Client.UserInterface.Controls.BaseButton; namespace Content.Client.Ghost.Roles.UI { [GenerateTypedNameReferences] - public partial class MakeGhostRoleWindow : DefaultWindow + public sealed partial class MakeGhostRoleWindow : DefaultWindow { public delegate void MakeRole(EntityUid uid, string name, string description, string rules, bool makeSentient); diff --git a/Content.Client/Ghost/UI/GhostGui.cs b/Content.Client/Ghost/UI/GhostGui.cs index fa3141a060..a7c9e771a7 100644 --- a/Content.Client/Ghost/UI/GhostGui.cs +++ b/Content.Client/Ghost/UI/GhostGui.cs @@ -10,7 +10,7 @@ using static Robust.Client.UserInterface.Controls.BoxContainer; namespace Content.Client.Ghost.UI { - public class GhostGui : Control + public sealed class GhostGui : Control { private readonly Button _returnToBody = new() {Text = Loc.GetString("ghost-gui-return-to-body-button") }; private readonly Button _ghostWarp = new() {Text = Loc.GetString("ghost-gui-ghost-warp-button") }; diff --git a/Content.Client/Ghost/UI/GhostTargetWindow.xaml.cs b/Content.Client/Ghost/UI/GhostTargetWindow.xaml.cs index a078b640ce..9c43803c9d 100644 --- a/Content.Client/Ghost/UI/GhostTargetWindow.xaml.cs +++ b/Content.Client/Ghost/UI/GhostTargetWindow.xaml.cs @@ -12,7 +12,7 @@ using Robust.Shared.Localization; namespace Content.Client.Ghost.UI { [GenerateTypedNameReferences] - public partial class GhostTargetWindow : DefaultWindow + public sealed partial class GhostTargetWindow : DefaultWindow { private readonly IEntityNetworkManager _netManager; diff --git a/Content.Client/Gravity/GravityGeneratorVisualizer.cs b/Content.Client/Gravity/GravityGeneratorVisualizer.cs index cc1b9808ad..0ab9d2661a 100644 --- a/Content.Client/Gravity/GravityGeneratorVisualizer.cs +++ b/Content.Client/Gravity/GravityGeneratorVisualizer.cs @@ -11,7 +11,7 @@ using Robust.Shared.Serialization.Manager.Attributes; namespace Content.Client.Gravity { [UsedImplicitly] - public class GravityGeneratorVisualizer : AppearanceVisualizer, ISerializationHooks + public sealed class GravityGeneratorVisualizer : AppearanceVisualizer, ISerializationHooks { [DataField("spritemap")] private Dictionary _rawSpriteMap = new(); diff --git a/Content.Client/Gravity/UI/GravityGeneratorBoundUserInterface.cs b/Content.Client/Gravity/UI/GravityGeneratorBoundUserInterface.cs index efef226b61..28ebdf9dfa 100644 --- a/Content.Client/Gravity/UI/GravityGeneratorBoundUserInterface.cs +++ b/Content.Client/Gravity/UI/GravityGeneratorBoundUserInterface.cs @@ -6,7 +6,7 @@ using Robust.Shared.GameObjects; namespace Content.Client.Gravity.UI { [UsedImplicitly] - public class GravityGeneratorBoundUserInterface : BoundUserInterface + public sealed class GravityGeneratorBoundUserInterface : BoundUserInterface { private GravityGeneratorWindow? _window; diff --git a/Content.Client/Gravity/UI/GravityGeneratorWindow.xaml.cs b/Content.Client/Gravity/UI/GravityGeneratorWindow.xaml.cs index d7fb80dcba..269bb32ae7 100644 --- a/Content.Client/Gravity/UI/GravityGeneratorWindow.xaml.cs +++ b/Content.Client/Gravity/UI/GravityGeneratorWindow.xaml.cs @@ -15,7 +15,7 @@ using Robust.Shared.Maths; namespace Content.Client.Gravity.UI { [GenerateTypedNameReferences] - public partial class GravityGeneratorWindow : FancyWindow + public sealed partial class GravityGeneratorWindow : FancyWindow { private readonly ButtonGroup _buttonGroup = new(); diff --git a/Content.Client/HUD/UI/NanoHeading.cs b/Content.Client/HUD/UI/NanoHeading.cs index fa47f20739..d9a798015c 100644 --- a/Content.Client/HUD/UI/NanoHeading.cs +++ b/Content.Client/HUD/UI/NanoHeading.cs @@ -3,7 +3,7 @@ using Robust.Client.UserInterface.Controls; namespace Content.Client.HUD.UI { - public class NanoHeading : Container + public sealed class NanoHeading : Container { private readonly Label _label; private readonly PanelContainer _panel; diff --git a/Content.Client/HUD/UI/StripeBack.cs b/Content.Client/HUD/UI/StripeBack.cs index 6e967b2a99..53f4f9029a 100644 --- a/Content.Client/HUD/UI/StripeBack.cs +++ b/Content.Client/HUD/UI/StripeBack.cs @@ -4,7 +4,7 @@ using Robust.Shared.Maths; namespace Content.Client.HUD.UI { - public class StripeBack : Container + public sealed class StripeBack : Container { private const float PadSize = 4; private const float EdgeSize = 2; diff --git a/Content.Client/HUD/UI/TopNotification.cs b/Content.Client/HUD/UI/TopNotification.cs index 0fc421f3ce..a8d3a67ae4 100644 --- a/Content.Client/HUD/UI/TopNotification.cs +++ b/Content.Client/HUD/UI/TopNotification.cs @@ -2,7 +2,7 @@ namespace Content.Client.HUD.UI { - public class TopNotification : Control + public sealed class TopNotification : Control { } diff --git a/Content.Client/Hands/HandButton.cs b/Content.Client/Hands/HandButton.cs index a2483a09f1..a98deb4134 100644 --- a/Content.Client/Hands/HandButton.cs +++ b/Content.Client/Hands/HandButton.cs @@ -6,7 +6,7 @@ using Robust.Client.UserInterface.Controls; namespace Content.Client.Hands { - public class HandButton : ItemSlotButton + public sealed class HandButton : ItemSlotButton { private bool _activeHand; private bool _highlighted; diff --git a/Content.Client/Hands/HandsComponent.cs b/Content.Client/Hands/HandsComponent.cs index 2927ba97bc..8c660f078b 100644 --- a/Content.Client/Hands/HandsComponent.cs +++ b/Content.Client/Hands/HandsComponent.cs @@ -8,7 +8,7 @@ namespace Content.Client.Hands [RegisterComponent] [ComponentReference(typeof(SharedHandsComponent))] [Friend(typeof(HandsSystem))] - public class HandsComponent : SharedHandsComponent + public sealed class HandsComponent : SharedHandsComponent { public HandsGui? Gui { get; set; } } diff --git a/Content.Client/Hands/HandsGui.xaml.cs b/Content.Client/Hands/HandsGui.xaml.cs index e7eaea7cd1..2a6ec3f913 100644 --- a/Content.Client/Hands/HandsGui.xaml.cs +++ b/Content.Client/Hands/HandsGui.xaml.cs @@ -202,7 +202,7 @@ namespace Content.Client.Hands /// /// Info on a set of hands to be displayed. /// - public class HandsGuiState + public sealed class HandsGuiState { /// /// The set of hands to be displayed. @@ -226,7 +226,7 @@ namespace Content.Client.Hands /// /// Info on an individual hand to be displayed. /// - public class GuiHand + public sealed class GuiHand { /// /// The name of this hand. diff --git a/Content.Client/Hands/HandsVisualizer.cs b/Content.Client/Hands/HandsVisualizer.cs index 38704a05d1..c86ea7171b 100644 --- a/Content.Client/Hands/HandsVisualizer.cs +++ b/Content.Client/Hands/HandsVisualizer.cs @@ -9,7 +9,7 @@ using Robust.Shared.IoC; namespace Content.Client.Hands { [UsedImplicitly] - public class HandsVisualizer : AppearanceVisualizer + public sealed class HandsVisualizer : AppearanceVisualizer { public override void OnChangeData(AppearanceComponent component) { diff --git a/Content.Client/HealthOverlay/HealthOverlaySystem.cs b/Content.Client/HealthOverlay/HealthOverlaySystem.cs index b04d47f77c..f1339d3e9e 100644 --- a/Content.Client/HealthOverlay/HealthOverlaySystem.cs +++ b/Content.Client/HealthOverlay/HealthOverlaySystem.cs @@ -12,7 +12,7 @@ using Robust.Shared.IoC; namespace Content.Client.HealthOverlay { [UsedImplicitly] - public class HealthOverlaySystem : EntitySystem + public sealed class HealthOverlaySystem : EntitySystem { [Dependency] private readonly IEyeManager _eyeManager = default!; [Dependency] private readonly IEntityManager _entities = default!; diff --git a/Content.Client/HealthOverlay/UI/HealthOverlayBar.cs b/Content.Client/HealthOverlay/UI/HealthOverlayBar.cs index 869bf3433b..be22f64c08 100644 --- a/Content.Client/HealthOverlay/UI/HealthOverlayBar.cs +++ b/Content.Client/HealthOverlay/UI/HealthOverlayBar.cs @@ -6,7 +6,7 @@ using Robust.Shared.Prototypes; namespace Content.Client.HealthOverlay.UI { - public class HealthOverlayBar : Control + public sealed class HealthOverlayBar : Control { public const byte HealthBarScale = 2; diff --git a/Content.Client/HealthOverlay/UI/HealthOverlayGui.cs b/Content.Client/HealthOverlay/UI/HealthOverlayGui.cs index 9d81acac07..255520cb72 100644 --- a/Content.Client/HealthOverlay/UI/HealthOverlayGui.cs +++ b/Content.Client/HealthOverlay/UI/HealthOverlayGui.cs @@ -13,7 +13,7 @@ using Robust.Shared.Timing; namespace Content.Client.HealthOverlay.UI { - public class HealthOverlayGui : BoxContainer + public sealed class HealthOverlayGui : BoxContainer { [Dependency] private readonly IEyeManager _eyeManager = default!; [Dependency] private readonly IEntityManager _entities = default!; diff --git a/Content.Client/IconSmoothing/IconSmoothComponent.cs b/Content.Client/IconSmoothing/IconSmoothComponent.cs index bfd786c7bb..b39d4b33fe 100644 --- a/Content.Client/IconSmoothing/IconSmoothComponent.cs +++ b/Content.Client/IconSmoothing/IconSmoothComponent.cs @@ -24,6 +24,7 @@ namespace Content.Client.IconSmoothing /// Any objects with the same key will connect. /// [RegisterComponent] + [Virtual] public class IconSmoothComponent : Component { [Dependency] private readonly IEntityManager _entMan = default!; diff --git a/Content.Client/Info/Info.xaml.cs b/Content.Client/Info/Info.xaml.cs index bb8778f9ec..1cd8b401e3 100644 --- a/Content.Client/Info/Info.xaml.cs +++ b/Content.Client/Info/Info.xaml.cs @@ -5,7 +5,7 @@ using Robust.Client.UserInterface.XAML; namespace Content.Client.Info; [GenerateTypedNameReferences] -public partial class Info : ScrollContainer +public sealed partial class Info : ScrollContainer { public Info() { diff --git a/Content.Client/Info/InfoControlsSection.xaml.cs b/Content.Client/Info/InfoControlsSection.xaml.cs index 1f68689ac9..a999373674 100644 --- a/Content.Client/Info/InfoControlsSection.xaml.cs +++ b/Content.Client/Info/InfoControlsSection.xaml.cs @@ -6,7 +6,7 @@ using Robust.Client.UserInterface.XAML; namespace Content.Client.Info; [GenerateTypedNameReferences] -public partial class InfoControlsSection : BoxContainer +public sealed partial class InfoControlsSection : BoxContainer { public InfoControlsSection() { diff --git a/Content.Client/Info/InfoSection.xaml.cs b/Content.Client/Info/InfoSection.xaml.cs index 7cfcb13ac8..5671c833ba 100644 --- a/Content.Client/Info/InfoSection.xaml.cs +++ b/Content.Client/Info/InfoSection.xaml.cs @@ -6,7 +6,7 @@ using Robust.Shared.Utility; namespace Content.Client.Info; [GenerateTypedNameReferences] -public partial class InfoSection : BoxContainer +public sealed partial class InfoSection : BoxContainer { public InfoSection(string title, string text, bool markup = false) { diff --git a/Content.Client/Info/RulesControl.xaml.cs b/Content.Client/Info/RulesControl.xaml.cs index 6675715b30..acdbdc4cf4 100644 --- a/Content.Client/Info/RulesControl.xaml.cs +++ b/Content.Client/Info/RulesControl.xaml.cs @@ -8,7 +8,7 @@ using Robust.Shared.Localization; namespace Content.Client.Info; [GenerateTypedNameReferences] -public partial class RulesControl : BoxContainer +public sealed partial class RulesControl : BoxContainer { [Dependency] private readonly IResourceCache _resourceManager = default!; diff --git a/Content.Client/Info/RulesPopup.xaml.cs b/Content.Client/Info/RulesPopup.xaml.cs index d7b22f3295..07ddd2d3a6 100644 --- a/Content.Client/Info/RulesPopup.xaml.cs +++ b/Content.Client/Info/RulesPopup.xaml.cs @@ -9,7 +9,7 @@ using Robust.Shared.Timing; namespace Content.Client.Info; [GenerateTypedNameReferences] -public partial class RulesPopup : Control +public sealed partial class RulesPopup : Control { private float _timer; diff --git a/Content.Client/Info/ServerInfo.cs b/Content.Client/Info/ServerInfo.cs index 9cdf2b56ef..455950d929 100644 --- a/Content.Client/Info/ServerInfo.cs +++ b/Content.Client/Info/ServerInfo.cs @@ -9,7 +9,7 @@ using Robust.Shared.Utility; namespace Content.Client.Info { - public class ServerInfo : BoxContainer + public sealed class ServerInfo : BoxContainer { private readonly RichTextLabel _richTextLabel; diff --git a/Content.Client/Instruments/InstrumentComponent.cs b/Content.Client/Instruments/InstrumentComponent.cs index 02435c2a1a..9d36d4e571 100644 --- a/Content.Client/Instruments/InstrumentComponent.cs +++ b/Content.Client/Instruments/InstrumentComponent.cs @@ -10,7 +10,7 @@ using Robust.Shared.ViewVariables; namespace Content.Client.Instruments; [RegisterComponent, ComponentReference(typeof(SharedInstrumentComponent))] -public class InstrumentComponent : SharedInstrumentComponent +public sealed class InstrumentComponent : SharedInstrumentComponent { public event Action? OnMidiPlaybackEnded; diff --git a/Content.Client/Instruments/InstrumentSystem.cs b/Content.Client/Instruments/InstrumentSystem.cs index 3d58408484..6f6faad64c 100644 --- a/Content.Client/Instruments/InstrumentSystem.cs +++ b/Content.Client/Instruments/InstrumentSystem.cs @@ -18,7 +18,7 @@ using SharpFont; namespace Content.Client.Instruments { [UsedImplicitly] - public class InstrumentSystem : SharedInstrumentSystem + public sealed class InstrumentSystem : SharedInstrumentSystem { [Dependency] private readonly IClientNetManager _netManager = default!; [Dependency] private readonly IMidiManager _midiManager = default!; diff --git a/Content.Client/Instruments/UI/InstrumentBoundUserInterface.cs b/Content.Client/Instruments/UI/InstrumentBoundUserInterface.cs index c94c0c3206..629f442b0d 100644 --- a/Content.Client/Instruments/UI/InstrumentBoundUserInterface.cs +++ b/Content.Client/Instruments/UI/InstrumentBoundUserInterface.cs @@ -5,7 +5,7 @@ using Robust.Shared.ViewVariables; namespace Content.Client.Instruments.UI { - public class InstrumentBoundUserInterface : BoundUserInterface + public sealed class InstrumentBoundUserInterface : BoundUserInterface { [ViewVariables] private InstrumentMenu? _instrumentMenu; diff --git a/Content.Client/Instruments/UI/InstrumentMenu.xaml.cs b/Content.Client/Instruments/UI/InstrumentMenu.xaml.cs index dec051d601..7d2e8b4b9c 100644 --- a/Content.Client/Instruments/UI/InstrumentMenu.xaml.cs +++ b/Content.Client/Instruments/UI/InstrumentMenu.xaml.cs @@ -19,7 +19,7 @@ using Range = Robust.Client.UserInterface.Controls.Range; namespace Content.Client.Instruments.UI { [GenerateTypedNameReferences] - public partial class InstrumentMenu : DefaultWindow + public sealed partial class InstrumentMenu : DefaultWindow { [Dependency] private readonly IMidiManager _midiManager = default!; [Dependency] private readonly IFileDialogManager _fileDialogManager = default!; diff --git a/Content.Client/Interactable/Components/InteractionOutlineComponent.cs b/Content.Client/Interactable/Components/InteractionOutlineComponent.cs index e0d8388535..0298afbe67 100644 --- a/Content.Client/Interactable/Components/InteractionOutlineComponent.cs +++ b/Content.Client/Interactable/Components/InteractionOutlineComponent.cs @@ -7,7 +7,7 @@ using Robust.Shared.Prototypes; namespace Content.Client.Interactable.Components { [RegisterComponent] - public class InteractionOutlineComponent : Component + public sealed class InteractionOutlineComponent : Component { [Dependency] private readonly IPrototypeManager _prototypeManager = default!; [Dependency] private readonly IEntityManager _entMan = default!; diff --git a/Content.Client/Inventory/ClientInventoryComponent.cs b/Content.Client/Inventory/ClientInventoryComponent.cs index 010ac12ff4..b0c56fc5a1 100644 --- a/Content.Client/Inventory/ClientInventoryComponent.cs +++ b/Content.Client/Inventory/ClientInventoryComponent.cs @@ -17,7 +17,7 @@ namespace Content.Client.Inventory [RegisterComponent] [ComponentReference(typeof(InventoryComponent))] [Friend(typeof(ClientInventorySystem))] - public class ClientInventoryComponent : InventoryComponent + public sealed class ClientInventoryComponent : InventoryComponent { public Control BottomLeftButtons = default!; public Control BottomRightButtons = default!; diff --git a/Content.Client/Inventory/StrippableBoundUserInterface.cs b/Content.Client/Inventory/StrippableBoundUserInterface.cs index 2dd2b13579..9edc87339f 100644 --- a/Content.Client/Inventory/StrippableBoundUserInterface.cs +++ b/Content.Client/Inventory/StrippableBoundUserInterface.cs @@ -11,7 +11,7 @@ using Robust.Shared.ViewVariables; namespace Content.Client.Inventory { [UsedImplicitly] - public class StrippableBoundUserInterface : BoundUserInterface + public sealed class StrippableBoundUserInterface : BoundUserInterface { public Dictionary<(string ID, string Name), string>? Inventory { get; private set; } public Dictionary? Hands { get; private set; } diff --git a/Content.Client/Items/Components/ItemComponent.cs b/Content.Client/Items/Components/ItemComponent.cs index 39e5f8f962..fce89fb009 100644 --- a/Content.Client/Items/Components/ItemComponent.cs +++ b/Content.Client/Items/Components/ItemComponent.cs @@ -6,5 +6,6 @@ namespace Content.Client.Items.Components { [RegisterComponent] [ComponentReference(typeof(SharedItemComponent))] + [Virtual] public class ItemComponent : SharedItemComponent { } } diff --git a/Content.Client/Items/Components/ItemStatusComponent.cs b/Content.Client/Items/Components/ItemStatusComponent.cs index 8bf2d1cda1..6889ce31bc 100644 --- a/Content.Client/Items/Components/ItemStatusComponent.cs +++ b/Content.Client/Items/Components/ItemStatusComponent.cs @@ -3,7 +3,7 @@ using Robust.Shared.GameObjects; namespace Content.Client.Items.Components { [RegisterComponent] - public class ItemStatusComponent : Component + public sealed class ItemStatusComponent : Component { } } diff --git a/Content.Client/Items/Managers/ItemSlotManager.cs b/Content.Client/Items/Managers/ItemSlotManager.cs index c4192428e9..d407ca7e04 100644 --- a/Content.Client/Items/Managers/ItemSlotManager.cs +++ b/Content.Client/Items/Managers/ItemSlotManager.cs @@ -18,7 +18,7 @@ using Robust.Shared.Timing; namespace Content.Client.Items.Managers { - public class ItemSlotManager : IItemSlotManager + public sealed class ItemSlotManager : IItemSlotManager { [Dependency] private readonly IGameTiming _gameTiming = default!; [Dependency] private readonly IEntitySystemManager _entitySystemManager = default!; diff --git a/Content.Client/Items/UI/ItemSlotButton.cs b/Content.Client/Items/UI/ItemSlotButton.cs index 181d651b35..e7e41a4296 100644 --- a/Content.Client/Items/UI/ItemSlotButton.cs +++ b/Content.Client/Items/UI/ItemSlotButton.cs @@ -16,6 +16,7 @@ using Robust.Shared.Utility; namespace Content.Client.Items.UI { + [Virtual] public class ItemSlotButton : Control, IEntityEventSubscriber { private const string HighlightShader = "SelectionOutlineInrange"; diff --git a/Content.Client/Items/UI/ItemStatusPanel.cs b/Content.Client/Items/UI/ItemStatusPanel.cs index 1aa9669f57..048fca7c81 100644 --- a/Content.Client/Items/UI/ItemStatusPanel.cs +++ b/Content.Client/Items/UI/ItemStatusPanel.cs @@ -18,7 +18,7 @@ using static Robust.Client.UserInterface.Controls.BoxContainer; namespace Content.Client.Items.UI { - public class ItemStatusPanel : Control + public sealed class ItemStatusPanel : Control { [Dependency] private readonly IEntityManager _entityManager = default!; diff --git a/Content.Client/Jittering/JitteringSystem.cs b/Content.Client/Jittering/JitteringSystem.cs index cd5bc3ea75..0b2a694440 100644 --- a/Content.Client/Jittering/JitteringSystem.cs +++ b/Content.Client/Jittering/JitteringSystem.cs @@ -11,7 +11,7 @@ using Robust.Shared.Random; namespace Content.Client.Jittering { - public class JitteringSystem : SharedJitteringSystem + public sealed class JitteringSystem : SharedJitteringSystem { [Dependency] private readonly IRobustRandom _random = default!; diff --git a/Content.Client/Kitchen/Components/MicrowaveComponent.cs b/Content.Client/Kitchen/Components/MicrowaveComponent.cs index 862a8b6de0..50050a5235 100644 --- a/Content.Client/Kitchen/Components/MicrowaveComponent.cs +++ b/Content.Client/Kitchen/Components/MicrowaveComponent.cs @@ -7,7 +7,7 @@ using Robust.Shared.Serialization.Manager.Attributes; namespace Content.Client.Kitchen.Components { [RegisterComponent] - public class MicrowaveComponent : SharedMicrowaveComponent + public sealed class MicrowaveComponent : SharedMicrowaveComponent { public IPlayingAudioStream? PlayingStream { get; set; } diff --git a/Content.Client/Kitchen/EntitySystems/MicrowaveSystem.cs b/Content.Client/Kitchen/EntitySystems/MicrowaveSystem.cs index 44b26bad30..c89a85ed34 100644 --- a/Content.Client/Kitchen/EntitySystems/MicrowaveSystem.cs +++ b/Content.Client/Kitchen/EntitySystems/MicrowaveSystem.cs @@ -6,7 +6,7 @@ using Robust.Shared.Player; namespace Content.Client.Kitchen.EntitySystems { - public class MicrowaveSystem : EntitySystem + public sealed class MicrowaveSystem : EntitySystem { public void StartSoundLoop(MicrowaveComponent microwave) { diff --git a/Content.Client/Kitchen/UI/GrinderMenu.xaml.cs b/Content.Client/Kitchen/UI/GrinderMenu.xaml.cs index f8f40c1b8c..be98357ec6 100644 --- a/Content.Client/Kitchen/UI/GrinderMenu.xaml.cs +++ b/Content.Client/Kitchen/UI/GrinderMenu.xaml.cs @@ -16,7 +16,7 @@ using Robust.Shared.Prototypes; namespace Content.Client.Kitchen.UI { [GenerateTypedNameReferences] - public partial class GrinderMenu : DefaultWindow + public sealed partial class GrinderMenu : DefaultWindow { private readonly IEntityManager _entityManager; private readonly IPrototypeManager _prototypeManager ; diff --git a/Content.Client/Kitchen/UI/LabelledContentBox.xaml.cs b/Content.Client/Kitchen/UI/LabelledContentBox.xaml.cs index a7a0447328..bcad17ae97 100644 --- a/Content.Client/Kitchen/UI/LabelledContentBox.xaml.cs +++ b/Content.Client/Kitchen/UI/LabelledContentBox.xaml.cs @@ -4,7 +4,7 @@ using Robust.Client.UserInterface.Controls; namespace Content.Client.Kitchen.UI { [GenerateTypedNameReferences] - public partial class LabelledContentBox : BoxContainer + public sealed partial class LabelledContentBox : BoxContainer { public string? LabelText { get => Label.Text; set => Label.Text = value; } public string? ButtonText { get => EjectButton.Text; set => EjectButton.Text = value; } diff --git a/Content.Client/Kitchen/UI/MicrowaveBoundUserInterface.cs b/Content.Client/Kitchen/UI/MicrowaveBoundUserInterface.cs index c658b810f5..e9394338a8 100644 --- a/Content.Client/Kitchen/UI/MicrowaveBoundUserInterface.cs +++ b/Content.Client/Kitchen/UI/MicrowaveBoundUserInterface.cs @@ -15,7 +15,7 @@ using static Content.Shared.Kitchen.Components.SharedMicrowaveComponent; namespace Content.Client.Kitchen.UI { [UsedImplicitly] - public class MicrowaveBoundUserInterface : BoundUserInterface + public sealed class MicrowaveBoundUserInterface : BoundUserInterface { [Dependency] private readonly IEntityManager _entityManager = default!; [Dependency] private readonly IPrototypeManager _prototypeManager = default!; diff --git a/Content.Client/Kitchen/UI/MicrowaveMenu.xaml.cs b/Content.Client/Kitchen/UI/MicrowaveMenu.xaml.cs index 476839444f..61c6af629d 100644 --- a/Content.Client/Kitchen/UI/MicrowaveMenu.xaml.cs +++ b/Content.Client/Kitchen/UI/MicrowaveMenu.xaml.cs @@ -8,9 +8,9 @@ using Robust.Shared.Localization; namespace Content.Client.Kitchen.UI { [GenerateTypedNameReferences] - public partial class MicrowaveMenu : DefaultWindow + public sealed partial class MicrowaveMenu : DefaultWindow { - public class MicrowaveCookTimeButton : Button + public sealed class MicrowaveCookTimeButton : Button { public uint CookTime; } diff --git a/Content.Client/Kitchen/UI/ReagentGrinderBoundUserInterface.cs b/Content.Client/Kitchen/UI/ReagentGrinderBoundUserInterface.cs index 4a20eb1a27..a23f23c03f 100644 --- a/Content.Client/Kitchen/UI/ReagentGrinderBoundUserInterface.cs +++ b/Content.Client/Kitchen/UI/ReagentGrinderBoundUserInterface.cs @@ -8,7 +8,7 @@ using static Content.Shared.Chemistry.Components.Solution; namespace Content.Client.Kitchen.UI { - public class ReagentGrinderBoundUserInterface : BoundUserInterface + public sealed class ReagentGrinderBoundUserInterface : BoundUserInterface { [Dependency] private readonly IEntityManager _entityManager = default!; [Dependency] private readonly IPrototypeManager _prototypeManager = default!; diff --git a/Content.Client/Kitchen/Visualizers/ReagentGrinderVisualizer.cs b/Content.Client/Kitchen/Visualizers/ReagentGrinderVisualizer.cs index e799111a6f..6309bb5169 100644 --- a/Content.Client/Kitchen/Visualizers/ReagentGrinderVisualizer.cs +++ b/Content.Client/Kitchen/Visualizers/ReagentGrinderVisualizer.cs @@ -5,7 +5,7 @@ using static Content.Shared.Kitchen.Components.SharedReagentGrinderComponent; namespace Content.Client.Kitchen.Visualizers { - public class ReagentGrinderVisualizer : AppearanceVisualizer + public sealed class ReagentGrinderVisualizer : AppearanceVisualizer { public override void OnChangeData(AppearanceComponent component) { diff --git a/Content.Client/Kudzu/KudzuVisualizer.cs b/Content.Client/Kudzu/KudzuVisualizer.cs index 297742edc0..7724a86a4e 100644 --- a/Content.Client/Kudzu/KudzuVisualizer.cs +++ b/Content.Client/Kudzu/KudzuVisualizer.cs @@ -6,7 +6,7 @@ using Robust.Shared.Serialization.Manager.Attributes; namespace Content.Client.Kudzu; -public class KudzuVisualizer : AppearanceVisualizer +public sealed class KudzuVisualizer : AppearanceVisualizer { [DataField("layer")] private int Layer { get; } = 0; diff --git a/Content.Client/Labels/UI/HandLabelerBoundUserInterface.cs b/Content.Client/Labels/UI/HandLabelerBoundUserInterface.cs index 5728b874e8..1c29d94703 100644 --- a/Content.Client/Labels/UI/HandLabelerBoundUserInterface.cs +++ b/Content.Client/Labels/UI/HandLabelerBoundUserInterface.cs @@ -7,7 +7,7 @@ namespace Content.Client.Labels.UI /// /// Initializes a and updates it when new server messages are received. /// - public class HandLabelerBoundUserInterface : BoundUserInterface + public sealed class HandLabelerBoundUserInterface : BoundUserInterface { private HandLabelerWindow? _window; diff --git a/Content.Client/Labels/UI/HandLabelerWindow.xaml.cs b/Content.Client/Labels/UI/HandLabelerWindow.xaml.cs index b3e93dc0a9..b55c4c069a 100644 --- a/Content.Client/Labels/UI/HandLabelerWindow.xaml.cs +++ b/Content.Client/Labels/UI/HandLabelerWindow.xaml.cs @@ -7,7 +7,7 @@ using Robust.Client.UserInterface.XAML; namespace Content.Client.Labels.UI { [GenerateTypedNameReferences] - public partial class HandLabelerWindow : DefaultWindow + public sealed partial class HandLabelerWindow : DefaultWindow { public event Action? OnLabelEntered; diff --git a/Content.Client/LateJoin/LateJoinGui.cs b/Content.Client/LateJoin/LateJoinGui.cs index d6b998cafc..a3709e5033 100644 --- a/Content.Client/LateJoin/LateJoinGui.cs +++ b/Content.Client/LateJoin/LateJoinGui.cs @@ -252,7 +252,7 @@ namespace Content.Client.LateJoin } } - class JobButton : ContainerButton + sealed class JobButton : ContainerButton { public string JobId { get; } public int Amount { get; } diff --git a/Content.Client/Lathe/Components/LatheDatabaseComponent.cs b/Content.Client/Lathe/Components/LatheDatabaseComponent.cs index f82d987ec1..60eb9d11f5 100644 --- a/Content.Client/Lathe/Components/LatheDatabaseComponent.cs +++ b/Content.Client/Lathe/Components/LatheDatabaseComponent.cs @@ -8,7 +8,7 @@ namespace Content.Client.Lathe.Components { [RegisterComponent] [ComponentReference(typeof(SharedLatheDatabaseComponent))] - public class LatheDatabaseComponent : SharedLatheDatabaseComponent + public sealed class LatheDatabaseComponent : SharedLatheDatabaseComponent { [Dependency] private readonly IPrototypeManager _prototypeManager = default!; diff --git a/Content.Client/Lathe/Components/MaterialStorageComponent.cs b/Content.Client/Lathe/Components/MaterialStorageComponent.cs index 156cbceaf5..b0b425a835 100644 --- a/Content.Client/Lathe/Components/MaterialStorageComponent.cs +++ b/Content.Client/Lathe/Components/MaterialStorageComponent.cs @@ -7,7 +7,7 @@ namespace Content.Client.Lathe.Components { [RegisterComponent] [ComponentReference(typeof(SharedMaterialStorageComponent))] - public class MaterialStorageComponent : SharedMaterialStorageComponent + public sealed class MaterialStorageComponent : SharedMaterialStorageComponent { protected override Dictionary Storage { get; set; } = new(); diff --git a/Content.Client/Lathe/Components/ProtolatheDatabaseComponent.cs b/Content.Client/Lathe/Components/ProtolatheDatabaseComponent.cs index f7d8799a3c..5c0523647c 100644 --- a/Content.Client/Lathe/Components/ProtolatheDatabaseComponent.cs +++ b/Content.Client/Lathe/Components/ProtolatheDatabaseComponent.cs @@ -9,7 +9,7 @@ namespace Content.Client.Lathe.Components { [RegisterComponent] [ComponentReference(typeof(SharedLatheDatabaseComponent))] - public class ProtolatheDatabaseComponent : SharedProtolatheDatabaseComponent + public sealed class ProtolatheDatabaseComponent : SharedProtolatheDatabaseComponent { [Dependency] private readonly IPrototypeManager _prototypeManager = default!; diff --git a/Content.Client/Lathe/UI/LatheBoundUserInterface.cs b/Content.Client/Lathe/UI/LatheBoundUserInterface.cs index ad965c9cb4..b738e371e2 100644 --- a/Content.Client/Lathe/UI/LatheBoundUserInterface.cs +++ b/Content.Client/Lathe/UI/LatheBoundUserInterface.cs @@ -11,7 +11,7 @@ using static Content.Shared.Lathe.SharedLatheComponent; namespace Content.Client.Lathe.UI { - public class LatheBoundUserInterface : BoundUserInterface + public sealed class LatheBoundUserInterface : BoundUserInterface { [Dependency] private readonly IEntityManager _entMan = default!; [Dependency] private readonly IPrototypeManager _prototypeManager = default!; diff --git a/Content.Client/Lathe/UI/LatheMenu.cs b/Content.Client/Lathe/UI/LatheMenu.cs index 289bed1a37..2f31748000 100644 --- a/Content.Client/Lathe/UI/LatheMenu.cs +++ b/Content.Client/Lathe/UI/LatheMenu.cs @@ -12,7 +12,7 @@ using static Robust.Client.UserInterface.Controls.BoxContainer; namespace Content.Client.Lathe.UI { - public class LatheMenu : DefaultWindow + public sealed class LatheMenu : DefaultWindow { [Dependency] private readonly IPrototypeManager _prototypeManager = default!; diff --git a/Content.Client/Lathe/UI/LatheQueueMenu.cs b/Content.Client/Lathe/UI/LatheQueueMenu.cs index 209d9ef4d1..b30603c5f5 100644 --- a/Content.Client/Lathe/UI/LatheQueueMenu.cs +++ b/Content.Client/Lathe/UI/LatheQueueMenu.cs @@ -9,7 +9,7 @@ using static Robust.Client.UserInterface.Controls.BoxContainer; namespace Content.Client.Lathe.UI { - public class LatheQueueMenu : DefaultWindow + public sealed class LatheQueueMenu : DefaultWindow { public LatheBoundUserInterface Owner { get; set; } diff --git a/Content.Client/Lathe/Visualizers/AutolatheVisualizer.cs b/Content.Client/Lathe/Visualizers/AutolatheVisualizer.cs index 7932ef539f..a27ff0b137 100644 --- a/Content.Client/Lathe/Visualizers/AutolatheVisualizer.cs +++ b/Content.Client/Lathe/Visualizers/AutolatheVisualizer.cs @@ -10,7 +10,7 @@ using Robust.Shared.IoC; namespace Content.Client.Lathe.Visualizers { [UsedImplicitly] - public class AutolatheVisualizer : AppearanceVisualizer + public sealed class AutolatheVisualizer : AppearanceVisualizer { [Dependency] private readonly IEntityManager _entMan = default!; diff --git a/Content.Client/Lathe/Visualizers/ProtolatheVisualizer.cs b/Content.Client/Lathe/Visualizers/ProtolatheVisualizer.cs index ccce03886b..bdeb3e0d2a 100644 --- a/Content.Client/Lathe/Visualizers/ProtolatheVisualizer.cs +++ b/Content.Client/Lathe/Visualizers/ProtolatheVisualizer.cs @@ -10,7 +10,7 @@ using Robust.Shared.IoC; namespace Content.Client.Lathe.Visualizers { [UsedImplicitly] - public class ProtolatheVisualizer : AppearanceVisualizer + public sealed class ProtolatheVisualizer : AppearanceVisualizer { [Dependency] private readonly IEntityManager _entMan = default!; diff --git a/Content.Client/Launcher/LauncherConnecting.cs b/Content.Client/Launcher/LauncherConnecting.cs index 9e87d6fbf2..511a85b1c2 100644 --- a/Content.Client/Launcher/LauncherConnecting.cs +++ b/Content.Client/Launcher/LauncherConnecting.cs @@ -6,7 +6,7 @@ using Robust.Shared.Network; namespace Content.Client.Launcher { - public class LauncherConnecting : Robust.Client.State.State + public sealed class LauncherConnecting : Robust.Client.State.State { [Dependency] private readonly IUserInterfaceManager _userInterfaceManager = default!; [Dependency] private readonly IClientNetManager _clientNetManager = default!; diff --git a/Content.Client/Light/Components/EmergencyLightComponent.cs b/Content.Client/Light/Components/EmergencyLightComponent.cs index ee1f69c079..c2c139e58c 100644 --- a/Content.Client/Light/Components/EmergencyLightComponent.cs +++ b/Content.Client/Light/Components/EmergencyLightComponent.cs @@ -6,7 +6,7 @@ namespace Content.Client.Light.Components { [RegisterComponent] [NetworkedComponent] - public class EmergencyLightComponent : SharedEmergencyLightComponent + public sealed class EmergencyLightComponent : SharedEmergencyLightComponent { } } diff --git a/Content.Client/Light/Components/ExpendableLightComponent.cs b/Content.Client/Light/Components/ExpendableLightComponent.cs index 37eb37ee13..2dcf99158b 100644 --- a/Content.Client/Light/Components/ExpendableLightComponent.cs +++ b/Content.Client/Light/Components/ExpendableLightComponent.cs @@ -8,7 +8,7 @@ namespace Content.Client.Light.Components /// Component that represents a handheld expendable light which can be activated and eventually dies over time. /// [RegisterComponent] - public class ExpendableLightComponent : SharedExpendableLightComponent + public sealed class ExpendableLightComponent : SharedExpendableLightComponent { public IPlayingAudioStream? PlayingStream { get; set; } } diff --git a/Content.Client/Light/Components/LightBehaviourComponent.cs b/Content.Client/Light/Components/LightBehaviourComponent.cs index 6b594fffa4..dbd77a846c 100644 --- a/Content.Client/Light/Components/LightBehaviourComponent.cs +++ b/Content.Client/Light/Components/LightBehaviourComponent.cs @@ -120,7 +120,7 @@ namespace Content.Client.Light.Components /// A light behaviour that alternates between StartValue and EndValue /// [UsedImplicitly] - public class PulseBehaviour : LightBehaviourAnimationTrack + public sealed class PulseBehaviour : LightBehaviourAnimationTrack { public override (int KeyFrameIndex, float FramePlayingTime) AdvancePlayback( object context, int prevKeyFrameIndex, float prevPlayingTime, float frameTime) @@ -175,7 +175,7 @@ namespace Content.Client.Light.Components /// A light behaviour that interpolates from StartValue to EndValue /// [UsedImplicitly] - public class FadeBehaviour : LightBehaviourAnimationTrack + public sealed class FadeBehaviour : LightBehaviourAnimationTrack { public override (int KeyFrameIndex, float FramePlayingTime) AdvancePlayback( object context, int prevKeyFrameIndex, float prevPlayingTime, float frameTime) @@ -211,7 +211,7 @@ namespace Content.Client.Light.Components /// A light behaviour that interpolates using random values chosen between StartValue and EndValue. /// [UsedImplicitly] - public class RandomizeBehaviour : LightBehaviourAnimationTrack + public sealed class RandomizeBehaviour : LightBehaviourAnimationTrack { private float _randomValue1; private float _randomValue2; @@ -277,7 +277,7 @@ namespace Content.Client.Light.Components /// [UsedImplicitly] [DataDefinition] - public class ColorCycleBehaviour : LightBehaviourAnimationTrack, ISerializationHooks + public sealed class ColorCycleBehaviour : LightBehaviourAnimationTrack, ISerializationHooks { [DataField("property")] [ViewVariables] @@ -340,14 +340,14 @@ namespace Content.Client.Light.Components /// A component which applies a specific behaviour to a PointLightComponent on its owner. /// [RegisterComponent] - public class LightBehaviourComponent : SharedLightBehaviourComponent, ISerializationHooks + public sealed class LightBehaviourComponent : SharedLightBehaviourComponent, ISerializationHooks { [Dependency] private readonly IEntityManager _entMan = default!; [Dependency] private readonly IRobustRandom _random = default!; private const string KeyPrefix = nameof(LightBehaviourComponent); - public class AnimationContainer + public sealed class AnimationContainer { public AnimationContainer(int key, Animation animation, LightBehaviourAnimationTrack track) { diff --git a/Content.Client/Light/LanternVisualizer.cs b/Content.Client/Light/LanternVisualizer.cs index de68302249..3e1bb4d0dc 100644 --- a/Content.Client/Light/LanternVisualizer.cs +++ b/Content.Client/Light/LanternVisualizer.cs @@ -8,7 +8,7 @@ using Robust.Shared.GameObjects; namespace Content.Client.Light { [UsedImplicitly] - public class LanternVisualizer : AppearanceVisualizer + public sealed class LanternVisualizer : AppearanceVisualizer { private readonly Animation _radiatingLightAnimation = new() { diff --git a/Content.Client/Light/Visualizers/ExpendableLightVisualizer.cs b/Content.Client/Light/Visualizers/ExpendableLightVisualizer.cs index 7a4fbc58aa..487e5e1bee 100644 --- a/Content.Client/Light/Visualizers/ExpendableLightVisualizer.cs +++ b/Content.Client/Light/Visualizers/ExpendableLightVisualizer.cs @@ -10,7 +10,7 @@ using Robust.Shared.Player; namespace Content.Client.Light.Visualizers { [UsedImplicitly] - public class ExpendableLightVisualizer : AppearanceVisualizer + public sealed class ExpendableLightVisualizer : AppearanceVisualizer { public override void OnChangeData(AppearanceComponent component) { diff --git a/Content.Client/Light/Visualizers/FlashLightVisualizer.cs b/Content.Client/Light/Visualizers/FlashLightVisualizer.cs index e0da57d20c..faa8b457bd 100644 --- a/Content.Client/Light/Visualizers/FlashLightVisualizer.cs +++ b/Content.Client/Light/Visualizers/FlashLightVisualizer.cs @@ -9,7 +9,7 @@ using Robust.Shared.GameObjects; namespace Content.Client.Light.Visualizers { [UsedImplicitly] - public class FlashLightVisualizer : AppearanceVisualizer + public sealed class FlashLightVisualizer : AppearanceVisualizer { private readonly Animation _radiatingLightAnimation = new() { diff --git a/Content.Client/Light/Visualizers/LightBulbVisualizer.cs b/Content.Client/Light/Visualizers/LightBulbVisualizer.cs index 9084beb029..6ee0783764 100644 --- a/Content.Client/Light/Visualizers/LightBulbVisualizer.cs +++ b/Content.Client/Light/Visualizers/LightBulbVisualizer.cs @@ -8,7 +8,7 @@ using Robust.Shared.Maths; namespace Content.Client.Light.Visualizers { [UsedImplicitly] - public class LightBulbVisualizer : AppearanceVisualizer + public sealed class LightBulbVisualizer : AppearanceVisualizer { public override void OnChangeData(AppearanceComponent component) { diff --git a/Content.Client/Light/Visualizers/PoweredLightVisualizer.cs b/Content.Client/Light/Visualizers/PoweredLightVisualizer.cs index 1210cff257..136114c312 100644 --- a/Content.Client/Light/Visualizers/PoweredLightVisualizer.cs +++ b/Content.Client/Light/Visualizers/PoweredLightVisualizer.cs @@ -13,7 +13,7 @@ using Robust.Shared.Serialization.Manager.Attributes; namespace Content.Client.Light.Visualizers { [UsedImplicitly] - public class PoweredLightVisualizer : AppearanceVisualizer + public sealed class PoweredLightVisualizer : AppearanceVisualizer { [DataField("minBlinkingTime")] private float _minBlinkingTime = 0.5f; [DataField("maxBlinkingTime")] private float _maxBlinkingTime = 2; diff --git a/Content.Client/Lobby/LobbyState.cs b/Content.Client/Lobby/LobbyState.cs index a8bf76a178..f9a88a778b 100644 --- a/Content.Client/Lobby/LobbyState.cs +++ b/Content.Client/Lobby/LobbyState.cs @@ -26,7 +26,7 @@ using Robust.Shared.ViewVariables; namespace Content.Client.Lobby { - public class LobbyState : Robust.Client.State.State + public sealed class LobbyState : Robust.Client.State.State { [Dependency] private readonly IBaseClient _baseClient = default!; [Dependency] private readonly IClientConsoleHost _consoleHost = default!; diff --git a/Content.Client/Lobby/UI/LobbyCharacterPreviewPanel.cs b/Content.Client/Lobby/UI/LobbyCharacterPreviewPanel.cs index 7240b4ea21..4937ea34f8 100644 --- a/Content.Client/Lobby/UI/LobbyCharacterPreviewPanel.cs +++ b/Content.Client/Lobby/UI/LobbyCharacterPreviewPanel.cs @@ -21,7 +21,7 @@ using static Robust.Client.UserInterface.Controls.BoxContainer; namespace Content.Client.Lobby.UI { - public class LobbyCharacterPreviewPanel : Control + public sealed class LobbyCharacterPreviewPanel : Control { private readonly IEntityManager _entMan; private readonly IClientPreferencesManager _preferencesManager; diff --git a/Content.Client/Lobby/UI/LobbyGui.xaml.cs b/Content.Client/Lobby/UI/LobbyGui.xaml.cs index 2402594a40..7b9e5b702b 100644 --- a/Content.Client/Lobby/UI/LobbyGui.xaml.cs +++ b/Content.Client/Lobby/UI/LobbyGui.xaml.cs @@ -40,7 +40,7 @@ namespace Content.Client.Lobby.UI } } - public class LobbyPlayerList : Control + public sealed class LobbyPlayerList : Control { private readonly ScrollContainer _scroll; private readonly BoxContainer _vBox; diff --git a/Content.Client/MachineLinking/SignalSwitchVisualizer.cs b/Content.Client/MachineLinking/SignalSwitchVisualizer.cs index 616c707371..e5689eb5c8 100644 --- a/Content.Client/MachineLinking/SignalSwitchVisualizer.cs +++ b/Content.Client/MachineLinking/SignalSwitchVisualizer.cs @@ -8,7 +8,7 @@ using Robust.Shared.Serialization.Manager.Attributes; namespace Content.Client.MachineLinking { [UsedImplicitly] - public class SignalSwitchVisualizer : AppearanceVisualizer + public sealed class SignalSwitchVisualizer : AppearanceVisualizer { [DataField("layer")] private int Layer { get; } diff --git a/Content.Client/MachineLinking/UI/SignalPortSelectorBoundUserInterface.cs b/Content.Client/MachineLinking/UI/SignalPortSelectorBoundUserInterface.cs index ec9bdcb88b..55fc46a4fd 100644 --- a/Content.Client/MachineLinking/UI/SignalPortSelectorBoundUserInterface.cs +++ b/Content.Client/MachineLinking/UI/SignalPortSelectorBoundUserInterface.cs @@ -5,7 +5,7 @@ using Robust.Shared.GameObjects; namespace Content.Client.MachineLinking.UI { - public class SignalPortSelectorBoundUserInterface : BoundUserInterface + public sealed class SignalPortSelectorBoundUserInterface : BoundUserInterface { private SignalPortSelectorMenu? _menu; diff --git a/Content.Client/MachineLinking/UI/SignalPortSelectorMenu.xaml.cs b/Content.Client/MachineLinking/UI/SignalPortSelectorMenu.xaml.cs index a8d6af1585..0705af7989 100644 --- a/Content.Client/MachineLinking/UI/SignalPortSelectorMenu.xaml.cs +++ b/Content.Client/MachineLinking/UI/SignalPortSelectorMenu.xaml.cs @@ -8,7 +8,7 @@ using Robust.Client.UserInterface.XAML; namespace Content.Client.MachineLinking.UI { [GenerateTypedNameReferences] - public partial class SignalPortSelectorMenu : DefaultWindow + public sealed partial class SignalPortSelectorMenu : DefaultWindow { private SignalPortSelectorBoundUserInterface _bui; diff --git a/Content.Client/MainMenu/MainMenu.cs b/Content.Client/MainMenu/MainMenu.cs index cb15e16584..11e0854307 100644 --- a/Content.Client/MainMenu/MainMenu.cs +++ b/Content.Client/MainMenu/MainMenu.cs @@ -21,7 +21,7 @@ namespace Content.Client.MainMenu /// Main menu screen that is the first screen to be displayed when the game starts. /// // Instantiated dynamically through the StateManager, Dependencies will be resolved. - public class MainScreen : Robust.Client.State.State + public sealed class MainScreen : Robust.Client.State.State { private const string PublicServerAddress = "server.spacestation14.io"; diff --git a/Content.Client/MainMenu/UI/MainMenuControl.xaml.cs b/Content.Client/MainMenu/UI/MainMenuControl.xaml.cs index ab30b5f65b..287571fbe3 100644 --- a/Content.Client/MainMenu/UI/MainMenuControl.xaml.cs +++ b/Content.Client/MainMenu/UI/MainMenuControl.xaml.cs @@ -12,7 +12,7 @@ using Robust.Shared.Localization; namespace Content.Client.MainMenu.UI { [GenerateTypedNameReferences] - public partial class MainMenuControl : Control + public sealed partial class MainMenuControl : Control { public MainMenuControl(IResourceCache resCache, IConfigurationManager configMan) { diff --git a/Content.Client/Medical/CrewMonitoring/CrewMonitoringBoundUserInterface.cs b/Content.Client/Medical/CrewMonitoring/CrewMonitoringBoundUserInterface.cs index 030ce917c6..a5ab6371c6 100644 --- a/Content.Client/Medical/CrewMonitoring/CrewMonitoringBoundUserInterface.cs +++ b/Content.Client/Medical/CrewMonitoring/CrewMonitoringBoundUserInterface.cs @@ -5,7 +5,7 @@ using Robust.Shared.GameObjects; namespace Content.Client.Medical.CrewMonitoring { - public class CrewMonitoringBoundUserInterface : BoundUserInterface + public sealed class CrewMonitoringBoundUserInterface : BoundUserInterface { private CrewMonitoringWindow? _menu; diff --git a/Content.Client/Medical/CrewMonitoring/CrewMonitoringWindow.xaml.cs b/Content.Client/Medical/CrewMonitoring/CrewMonitoringWindow.xaml.cs index 6961ac2d0a..99c182c063 100644 --- a/Content.Client/Medical/CrewMonitoring/CrewMonitoringWindow.xaml.cs +++ b/Content.Client/Medical/CrewMonitoring/CrewMonitoringWindow.xaml.cs @@ -10,7 +10,7 @@ using Robust.Shared.Localization; namespace Content.Client.Medical.CrewMonitoring { [GenerateTypedNameReferences] - public partial class CrewMonitoringWindow : DefaultWindow + public sealed partial class CrewMonitoringWindow : DefaultWindow { private List _rowsContent = new(); diff --git a/Content.Client/MedicalScanner/MedicalScannerComponent.cs b/Content.Client/MedicalScanner/MedicalScannerComponent.cs index 86f55c32d4..49bcbc63a9 100644 --- a/Content.Client/MedicalScanner/MedicalScannerComponent.cs +++ b/Content.Client/MedicalScanner/MedicalScannerComponent.cs @@ -6,7 +6,7 @@ namespace Content.Client.MedicalScanner { [RegisterComponent] [ComponentReference(typeof(SharedMedicalScannerComponent))] - public class MedicalScannerComponent : SharedMedicalScannerComponent + public sealed class MedicalScannerComponent : SharedMedicalScannerComponent { public override bool DragDropOn(DragDropEvent eventArgs) { diff --git a/Content.Client/MedicalScanner/MedicalScannerVisualizer.cs b/Content.Client/MedicalScanner/MedicalScannerVisualizer.cs index efa1f6d450..bb0f9e34f3 100644 --- a/Content.Client/MedicalScanner/MedicalScannerVisualizer.cs +++ b/Content.Client/MedicalScanner/MedicalScannerVisualizer.cs @@ -9,7 +9,7 @@ using static Content.Shared.MedicalScanner.SharedMedicalScannerComponent.Medical namespace Content.Client.MedicalScanner { [UsedImplicitly] - public class MedicalScannerVisualizer : AppearanceVisualizer + public sealed class MedicalScannerVisualizer : AppearanceVisualizer { public override void OnChangeData(AppearanceComponent component) { diff --git a/Content.Client/MedicalScanner/UI/MedicalScannerBoundUserInterface.cs b/Content.Client/MedicalScanner/UI/MedicalScannerBoundUserInterface.cs index ef28c43a9e..3807a9b9ac 100644 --- a/Content.Client/MedicalScanner/UI/MedicalScannerBoundUserInterface.cs +++ b/Content.Client/MedicalScanner/UI/MedicalScannerBoundUserInterface.cs @@ -7,7 +7,7 @@ using static Content.Shared.MedicalScanner.SharedMedicalScannerComponent; namespace Content.Client.MedicalScanner.UI { [UsedImplicitly] - public class MedicalScannerBoundUserInterface : BoundUserInterface + public sealed class MedicalScannerBoundUserInterface : BoundUserInterface { private MedicalScannerWindow? _window; diff --git a/Content.Client/MedicalScanner/UI/MedicalScannerWindow.xaml.cs b/Content.Client/MedicalScanner/UI/MedicalScannerWindow.xaml.cs index 389826af22..fbfc603bc3 100644 --- a/Content.Client/MedicalScanner/UI/MedicalScannerWindow.xaml.cs +++ b/Content.Client/MedicalScanner/UI/MedicalScannerWindow.xaml.cs @@ -14,7 +14,7 @@ using static Content.Shared.MedicalScanner.SharedMedicalScannerComponent; namespace Content.Client.MedicalScanner.UI { [GenerateTypedNameReferences] - public partial class MedicalScannerWindow : DefaultWindow + public sealed partial class MedicalScannerWindow : DefaultWindow { public MedicalScannerWindow() { diff --git a/Content.Client/Mining/AsteroidRockVisualizer.cs b/Content.Client/Mining/AsteroidRockVisualizer.cs index f9533d9f82..64bdb5f7b9 100644 --- a/Content.Client/Mining/AsteroidRockVisualizer.cs +++ b/Content.Client/Mining/AsteroidRockVisualizer.cs @@ -8,7 +8,7 @@ using Robust.Shared.Serialization.Manager.Attributes; namespace Content.Client.Mining { [UsedImplicitly] - public class AsteroidRockVisualizer : AppearanceVisualizer + public sealed class AsteroidRockVisualizer : AppearanceVisualizer { [DataField("layer")] private int Layer { get; } = 0; diff --git a/Content.Client/MobState/Overlays/CircleMaskOverlay.cs b/Content.Client/MobState/Overlays/CircleMaskOverlay.cs index 2c378bce6d..f2e9510010 100644 --- a/Content.Client/MobState/Overlays/CircleMaskOverlay.cs +++ b/Content.Client/MobState/Overlays/CircleMaskOverlay.cs @@ -7,7 +7,7 @@ using Robust.Shared.Prototypes; namespace Content.Client.MobState.Overlays { - public class CircleMaskOverlay : Overlay + public sealed class CircleMaskOverlay : Overlay { [Dependency] private readonly IPrototypeManager _prototypeManager = default!; [Dependency] private readonly IPlayerManager _playerManager = default!; diff --git a/Content.Client/MobState/Overlays/CritOverlay.cs b/Content.Client/MobState/Overlays/CritOverlay.cs index 48c640930a..defb0c9bcf 100644 --- a/Content.Client/MobState/Overlays/CritOverlay.cs +++ b/Content.Client/MobState/Overlays/CritOverlay.cs @@ -9,7 +9,7 @@ using Robust.Shared.Prototypes; namespace Content.Client.MobState.Overlays { - public class CritOverlay : Overlay + public sealed class CritOverlay : Overlay { [Dependency] private readonly IPrototypeManager _prototypeManager = default!; [Dependency] private readonly IPlayerManager _playerManager = default!; diff --git a/Content.Client/MobState/States/CriticalMobState.cs b/Content.Client/MobState/States/CriticalMobState.cs index c39e8f5be1..934d33921b 100644 --- a/Content.Client/MobState/States/CriticalMobState.cs +++ b/Content.Client/MobState/States/CriticalMobState.cs @@ -2,7 +2,7 @@ namespace Content.Client.MobState.States { - public class CriticalMobState : SharedCriticalMobState + public sealed class CriticalMobState : SharedCriticalMobState { } } diff --git a/Content.Client/MobState/States/DeadMobState.cs b/Content.Client/MobState/States/DeadMobState.cs index 7cda4dad2c..b6883a6c3e 100644 --- a/Content.Client/MobState/States/DeadMobState.cs +++ b/Content.Client/MobState/States/DeadMobState.cs @@ -4,7 +4,7 @@ using Robust.Shared.GameObjects; namespace Content.Client.MobState.States { - public class DeadMobState : SharedDeadMobState + public sealed class DeadMobState : SharedDeadMobState { public override void EnterState(EntityUid uid, IEntityManager entityManager) { diff --git a/Content.Client/MobState/States/NormalMobState.cs b/Content.Client/MobState/States/NormalMobState.cs index 50ff19f492..a04ac7fd3c 100644 --- a/Content.Client/MobState/States/NormalMobState.cs +++ b/Content.Client/MobState/States/NormalMobState.cs @@ -5,7 +5,7 @@ using Robust.Shared.GameObjects; namespace Content.Client.MobState.States { - public class NormalMobState : SharedNormalMobState + public sealed class NormalMobState : SharedNormalMobState { } } diff --git a/Content.Client/Module/ClientModuleManager.cs b/Content.Client/Module/ClientModuleManager.cs index d3b61387f9..477514495d 100644 --- a/Content.Client/Module/ClientModuleManager.cs +++ b/Content.Client/Module/ClientModuleManager.cs @@ -7,7 +7,7 @@ namespace Content.Client.Module /// Provides simple way for shared code to check if it's being run by /// the client of the server. /// - public class ClientModuleManager : IModuleManager + public sealed class ClientModuleManager : IModuleManager { bool IModuleManager.IsClientModule => true; bool IModuleManager.IsServerModule => false; diff --git a/Content.Client/Movement/Components/ClimbableComponent.cs b/Content.Client/Movement/Components/ClimbableComponent.cs index 6d5b4f5161..7a8563271f 100644 --- a/Content.Client/Movement/Components/ClimbableComponent.cs +++ b/Content.Client/Movement/Components/ClimbableComponent.cs @@ -7,7 +7,7 @@ namespace Content.Client.Movement.Components { [RegisterComponent] [ComponentReference(typeof(IClimbable))] - public class ClimbableComponent : SharedClimbableComponent + public sealed class ClimbableComponent : SharedClimbableComponent { public override bool CanDragDropOn(DragDropEvent eventArgs) { diff --git a/Content.Client/Movement/Components/ClimbingComponent.cs b/Content.Client/Movement/Components/ClimbingComponent.cs index 849cc147a7..47abebcb52 100644 --- a/Content.Client/Movement/Components/ClimbingComponent.cs +++ b/Content.Client/Movement/Components/ClimbingComponent.cs @@ -5,7 +5,7 @@ namespace Content.Client.Movement.Components { [RegisterComponent] [ComponentReference(typeof(SharedClimbingComponent))] - public class ClimbingComponent : SharedClimbingComponent + public sealed class ClimbingComponent : SharedClimbingComponent { public override void HandleComponentState(ComponentState? curState, ComponentState? nextState) { diff --git a/Content.Client/Nuke/NukeBoundUserInterface.cs b/Content.Client/Nuke/NukeBoundUserInterface.cs index a578fd093b..5f05438786 100644 --- a/Content.Client/Nuke/NukeBoundUserInterface.cs +++ b/Content.Client/Nuke/NukeBoundUserInterface.cs @@ -8,7 +8,7 @@ using Robust.Shared.Localization; namespace Content.Client.Nuke { [UsedImplicitly] - public class NukeBoundUserInterface : BoundUserInterface + public sealed class NukeBoundUserInterface : BoundUserInterface { private NukeMenu? _menu; diff --git a/Content.Client/Nuke/NukeMenu.xaml.cs b/Content.Client/Nuke/NukeMenu.xaml.cs index c5d55f7e79..4c80e8de17 100644 --- a/Content.Client/Nuke/NukeMenu.xaml.cs +++ b/Content.Client/Nuke/NukeMenu.xaml.cs @@ -10,7 +10,7 @@ using Robust.Shared.Localization; namespace Content.Client.Nuke { [GenerateTypedNameReferences] - public partial class NukeMenu : DefaultWindow + public sealed partial class NukeMenu : DefaultWindow { public event Action? OnKeypadButtonPressed; public event Action? OnClearButtonPressed; diff --git a/Content.Client/Nutrition/Components/HungerComponent.cs b/Content.Client/Nutrition/Components/HungerComponent.cs index 5ddf6e2b27..9b43b1095d 100644 --- a/Content.Client/Nutrition/Components/HungerComponent.cs +++ b/Content.Client/Nutrition/Components/HungerComponent.cs @@ -6,7 +6,7 @@ using Robust.Shared.GameObjects; namespace Content.Client.Nutrition.Components { [RegisterComponent] - public class HungerComponent : SharedHungerComponent + public sealed class HungerComponent : SharedHungerComponent { private HungerThreshold _currentHungerThreshold; public override HungerThreshold CurrentHungerThreshold => _currentHungerThreshold; diff --git a/Content.Client/Nutrition/Components/ThirstComponent.cs b/Content.Client/Nutrition/Components/ThirstComponent.cs index 5b1caa099b..9ca977afd3 100644 --- a/Content.Client/Nutrition/Components/ThirstComponent.cs +++ b/Content.Client/Nutrition/Components/ThirstComponent.cs @@ -6,7 +6,7 @@ using Robust.Shared.GameObjects; namespace Content.Client.Nutrition.Components { [RegisterComponent] - public class ThirstComponent : SharedThirstComponent + public sealed class ThirstComponent : SharedThirstComponent { private ThirstThreshold _currentThirstThreshold; public override ThirstThreshold CurrentThirstThreshold => _currentThirstThreshold; diff --git a/Content.Client/Nutrition/EntitySystems/CreamPiedSystem.cs b/Content.Client/Nutrition/EntitySystems/CreamPiedSystem.cs index 71b9986ed0..24632b71fa 100644 --- a/Content.Client/Nutrition/EntitySystems/CreamPiedSystem.cs +++ b/Content.Client/Nutrition/EntitySystems/CreamPiedSystem.cs @@ -4,7 +4,7 @@ using JetBrains.Annotations; namespace Content.Client.Nutrition.EntitySystems { [UsedImplicitly] - public class CreamPiedSystem : SharedCreamPieSystem + public sealed class CreamPiedSystem : SharedCreamPieSystem { } } diff --git a/Content.Client/Nutrition/Visualizers/CreamPiedVisualizer.cs b/Content.Client/Nutrition/Visualizers/CreamPiedVisualizer.cs index 94d57e07ba..ad993c667e 100644 --- a/Content.Client/Nutrition/Visualizers/CreamPiedVisualizer.cs +++ b/Content.Client/Nutrition/Visualizers/CreamPiedVisualizer.cs @@ -8,7 +8,7 @@ using Robust.Shared.Serialization.Manager.Attributes; namespace Content.Client.Nutrition.Visualizers { [UsedImplicitly] - public class CreamPiedVisualizer : AppearanceVisualizer + public sealed class CreamPiedVisualizer : AppearanceVisualizer { [DataField("state")] private string? _state; diff --git a/Content.Client/PAI/PAISystem.cs b/Content.Client/PAI/PAISystem.cs index a363d7d7d9..a28cf6a077 100644 --- a/Content.Client/PAI/PAISystem.cs +++ b/Content.Client/PAI/PAISystem.cs @@ -2,7 +2,7 @@ using Content.Shared.PAI; namespace Content.Client.PAI { - public class PAISystem : SharedPAISystem + public sealed class PAISystem : SharedPAISystem { } } diff --git a/Content.Client/PDA/PDABoundUserInterface.cs b/Content.Client/PDA/PDABoundUserInterface.cs index 9b280b602d..973cce464c 100644 --- a/Content.Client/PDA/PDABoundUserInterface.cs +++ b/Content.Client/PDA/PDABoundUserInterface.cs @@ -13,7 +13,7 @@ using static Robust.Client.UserInterface.Controls.BoxContainer; namespace Content.Client.PDA { [UsedImplicitly] - public class PDABoundUserInterface : BoundUserInterface + public sealed class PDABoundUserInterface : BoundUserInterface { private PDAMenu? _menu; diff --git a/Content.Client/PDA/PDAMenu.xaml.cs b/Content.Client/PDA/PDAMenu.xaml.cs index 058c31d860..6043d86d1d 100644 --- a/Content.Client/PDA/PDAMenu.xaml.cs +++ b/Content.Client/PDA/PDAMenu.xaml.cs @@ -6,7 +6,7 @@ using Robust.Shared.Localization; namespace Content.Client.PDA { [GenerateTypedNameReferences] - public partial class PDAMenu : DefaultWindow + public sealed partial class PDAMenu : DefaultWindow { public PDAMenu() { diff --git a/Content.Client/PDA/PDAVisualizer.cs b/Content.Client/PDA/PDAVisualizer.cs index 003dd4f648..4e6f4d83e3 100644 --- a/Content.Client/PDA/PDAVisualizer.cs +++ b/Content.Client/PDA/PDAVisualizer.cs @@ -10,7 +10,7 @@ namespace Content.Client.PDA { [UsedImplicitly] // ReSharper disable once InconsistentNaming - public class PDAVisualizer : AppearanceVisualizer + public sealed class PDAVisualizer : AppearanceVisualizer { /// /// The base PDA sprite state, eg. "pda", "pda-clown" diff --git a/Content.Client/Paper/UI/PaperBoundUserInterface.cs b/Content.Client/Paper/UI/PaperBoundUserInterface.cs index b3803a6e89..cc2557f798 100644 --- a/Content.Client/Paper/UI/PaperBoundUserInterface.cs +++ b/Content.Client/Paper/UI/PaperBoundUserInterface.cs @@ -8,7 +8,7 @@ using static Content.Shared.Paper.SharedPaperComponent; namespace Content.Client.Paper.UI { [UsedImplicitly] - public class PaperBoundUserInterface : BoundUserInterface + public sealed class PaperBoundUserInterface : BoundUserInterface { private PaperWindow? _window; diff --git a/Content.Client/Paper/UI/PaperWindow.xaml.cs b/Content.Client/Paper/UI/PaperWindow.xaml.cs index 131585071a..ee99882c20 100644 --- a/Content.Client/Paper/UI/PaperWindow.xaml.cs +++ b/Content.Client/Paper/UI/PaperWindow.xaml.cs @@ -8,7 +8,7 @@ using Robust.Shared.Utility; namespace Content.Client.Paper.UI { [GenerateTypedNameReferences] - public partial class PaperWindow : DefaultWindow + public sealed partial class PaperWindow : DefaultWindow { public PaperWindow() { diff --git a/Content.Client/Parallax/ParallaxGenerator.cs b/Content.Client/Parallax/ParallaxGenerator.cs index 7d77fc2047..ddf82f7115 100644 --- a/Content.Client/Parallax/ParallaxGenerator.cs +++ b/Content.Client/Parallax/ParallaxGenerator.cs @@ -14,7 +14,7 @@ using Color = Robust.Shared.Maths.Color; namespace Content.Client.Parallax { - public class ParallaxGenerator + public sealed class ParallaxGenerator { private readonly List Layers = new(); @@ -69,7 +69,7 @@ namespace Content.Client.Parallax public abstract void Apply(Image bitmap); } - private class LayerNoise : Layer + private sealed class LayerNoise : Layer { private readonly Color InnerColor = Color.White; private readonly Color OuterColor = Color.Black; @@ -197,7 +197,7 @@ namespace Content.Client.Parallax } } - private class LayerPoints : Layer + private sealed class LayerPoints : Layer { private readonly int Seed = 1234; private readonly int PointCount = 100; diff --git a/Content.Client/Parallax/ParallaxOverlay.cs b/Content.Client/Parallax/ParallaxOverlay.cs index 7820937046..93d5e4e2db 100644 --- a/Content.Client/Parallax/ParallaxOverlay.cs +++ b/Content.Client/Parallax/ParallaxOverlay.cs @@ -8,7 +8,7 @@ using Robust.Shared.Prototypes; namespace Content.Client.Parallax { - public class ParallaxOverlay : Overlay + public sealed class ParallaxOverlay : Overlay { [Dependency] private readonly IParallaxManager _parallaxManager = default!; [Dependency] private readonly IPrototypeManager _prototypeManager = default!; diff --git a/Content.Client/ParticleAccelerator/ParticleAcceleratorPartVisualizer.cs b/Content.Client/ParticleAccelerator/ParticleAcceleratorPartVisualizer.cs index 9b7a39c45d..43c4c2db75 100644 --- a/Content.Client/ParticleAccelerator/ParticleAcceleratorPartVisualizer.cs +++ b/Content.Client/ParticleAccelerator/ParticleAcceleratorPartVisualizer.cs @@ -12,7 +12,7 @@ namespace Content.Client.ParticleAccelerator { [UsedImplicitly] [DataDefinition] - public class ParticleAcceleratorPartVisualizer : AppearanceVisualizer, ISerializationHooks + public sealed class ParticleAcceleratorPartVisualizer : AppearanceVisualizer, ISerializationHooks { [DataField("baseState", required: true)] private string? _baseState; diff --git a/Content.Client/ParticleAccelerator/UI/ParticleAcceleratorBoundUserInterface.cs b/Content.Client/ParticleAccelerator/UI/ParticleAcceleratorBoundUserInterface.cs index e4df220529..b140aac80b 100644 --- a/Content.Client/ParticleAccelerator/UI/ParticleAcceleratorBoundUserInterface.cs +++ b/Content.Client/ParticleAccelerator/UI/ParticleAcceleratorBoundUserInterface.cs @@ -4,7 +4,7 @@ using Robust.Shared.GameObjects; namespace Content.Client.ParticleAccelerator.UI { - public class ParticleAcceleratorBoundUserInterface : BoundUserInterface + public sealed class ParticleAcceleratorBoundUserInterface : BoundUserInterface { private ParticleAcceleratorControlMenu? _menu; diff --git a/Content.Client/Pinpointer/PinpointerVisualizer.cs b/Content.Client/Pinpointer/PinpointerVisualizer.cs index 6975c414e4..b295e4b062 100644 --- a/Content.Client/Pinpointer/PinpointerVisualizer.cs +++ b/Content.Client/Pinpointer/PinpointerVisualizer.cs @@ -8,7 +8,7 @@ using Robust.Shared.Maths; namespace Content.Client.Pinpointer { [UsedImplicitly] - public class PinpointerVisualizer : AppearanceVisualizer + public sealed class PinpointerVisualizer : AppearanceVisualizer { public override void OnChangeData(AppearanceComponent component) { diff --git a/Content.Client/Placement/Modes/WallmountLight.cs b/Content.Client/Placement/Modes/WallmountLight.cs index 5c9567c259..3b9a93f360 100644 --- a/Content.Client/Placement/Modes/WallmountLight.cs +++ b/Content.Client/Placement/Modes/WallmountLight.cs @@ -4,7 +4,7 @@ using Robust.Shared.Maths; namespace Content.Client.Placement.Modes { - public class WallmountLight : PlacementMode + public sealed class WallmountLight : PlacementMode { public WallmountLight(PlacementManager pMan) : base(pMan) { diff --git a/Content.Client/PneumaticCannon/PneumaticCannonVisualizer.cs b/Content.Client/PneumaticCannon/PneumaticCannonVisualizer.cs index 04ecd55dbe..f01c6d5f1d 100644 --- a/Content.Client/PneumaticCannon/PneumaticCannonVisualizer.cs +++ b/Content.Client/PneumaticCannon/PneumaticCannonVisualizer.cs @@ -5,7 +5,7 @@ using Robust.Shared.IoC; namespace Content.Client.PneumaticCannon { - public class PneumaticCannonVisualizer : AppearanceVisualizer + public sealed class PneumaticCannonVisualizer : AppearanceVisualizer { public override void OnChangeData(AppearanceComponent component) { diff --git a/Content.Client/Pointing/Components/RoguePointingArrowComponent.cs b/Content.Client/Pointing/Components/RoguePointingArrowComponent.cs index 9d06ae585f..6b8a261603 100644 --- a/Content.Client/Pointing/Components/RoguePointingArrowComponent.cs +++ b/Content.Client/Pointing/Components/RoguePointingArrowComponent.cs @@ -7,7 +7,7 @@ using DrawDepth = Content.Shared.DrawDepth.DrawDepth; namespace Content.Client.Pointing.Components { [RegisterComponent] - public class RoguePointingArrowComponent : SharedRoguePointingArrowComponent + public sealed class RoguePointingArrowComponent : SharedRoguePointingArrowComponent { protected override void Startup() { diff --git a/Content.Client/Pointing/RoguePointingArrowVisualizer.cs b/Content.Client/Pointing/RoguePointingArrowVisualizer.cs index 9c313bed3d..6a0fbb4170 100644 --- a/Content.Client/Pointing/RoguePointingArrowVisualizer.cs +++ b/Content.Client/Pointing/RoguePointingArrowVisualizer.cs @@ -11,7 +11,7 @@ using Robust.Shared.Maths; namespace Content.Client.Pointing { [UsedImplicitly] - public class RoguePointingArrowVisualizer : AppearanceVisualizer + public sealed class RoguePointingArrowVisualizer : AppearanceVisualizer { public override void OnChangeData(AppearanceComponent component) { diff --git a/Content.Client/Popups/PopupSystem.cs b/Content.Client/Popups/PopupSystem.cs index ae312343e3..d2499cd4ea 100644 --- a/Content.Client/Popups/PopupSystem.cs +++ b/Content.Client/Popups/PopupSystem.cs @@ -15,7 +15,7 @@ using Robust.Shared.Timing; namespace Content.Client.Popups { - public class PopupSystem : SharedPopupSystem + public sealed class PopupSystem : SharedPopupSystem { [Dependency] private readonly IUserInterfaceManager _userInterfaceManager = default!; [Dependency] private readonly IEyeManager _eyeManager = default!; @@ -139,7 +139,7 @@ namespace Content.Client.Popups _aliveLabels.RemoveAll(l => l.Disposed); } - private class PopupLabel : Label + private sealed class PopupLabel : Label { private readonly IEyeManager _eyeManager; private readonly IEntityManager _entityManager; diff --git a/Content.Client/Power/APC/ApcBoundUserInterface.cs b/Content.Client/Power/APC/ApcBoundUserInterface.cs index 453f11a8de..4d0562cf4f 100644 --- a/Content.Client/Power/APC/ApcBoundUserInterface.cs +++ b/Content.Client/Power/APC/ApcBoundUserInterface.cs @@ -8,7 +8,7 @@ using Robust.Shared.ViewVariables; namespace Content.Client.Power.APC { [UsedImplicitly] - public class ApcBoundUserInterface : BoundUserInterface + public sealed class ApcBoundUserInterface : BoundUserInterface { [ViewVariables] private ApcMenu? _menu; diff --git a/Content.Client/Power/APC/ApcVisualizer.cs b/Content.Client/Power/APC/ApcVisualizer.cs index e68a91ea1d..69986ff05e 100644 --- a/Content.Client/Power/APC/ApcVisualizer.cs +++ b/Content.Client/Power/APC/ApcVisualizer.cs @@ -7,7 +7,7 @@ using Robust.Shared.Maths; namespace Content.Client.Power.APC { - public class ApcVisualizer : AppearanceVisualizer + public sealed class ApcVisualizer : AppearanceVisualizer { public static readonly Color LackColor = Color.FromHex("#d1332e"); public static readonly Color ChargingColor = Color.FromHex("#2e8ad1"); diff --git a/Content.Client/Power/APC/UI/ApcMenu.xaml.cs b/Content.Client/Power/APC/UI/ApcMenu.xaml.cs index cb592431b8..9cc6877652 100644 --- a/Content.Client/Power/APC/UI/ApcMenu.xaml.cs +++ b/Content.Client/Power/APC/UI/ApcMenu.xaml.cs @@ -13,7 +13,7 @@ using Robust.Shared.Maths; namespace Content.Client.Power.APC.UI { [GenerateTypedNameReferences] - public partial class ApcMenu : DefaultWindow + public sealed partial class ApcMenu : DefaultWindow { public ApcMenu(ApcBoundUserInterface owner) { diff --git a/Content.Client/Power/SMES/SmesVisualizer.cs b/Content.Client/Power/SMES/SmesVisualizer.cs index 09b8df501e..a2725f2062 100644 --- a/Content.Client/Power/SMES/SmesVisualizer.cs +++ b/Content.Client/Power/SMES/SmesVisualizer.cs @@ -8,7 +8,7 @@ using Robust.Shared.IoC; namespace Content.Client.Power.SMES { [UsedImplicitly] - public class SmesVisualizer : AppearanceVisualizer + public sealed class SmesVisualizer : AppearanceVisualizer { public override void InitializeEntity(EntityUid entity) { diff --git a/Content.Client/Power/SolarControlWindow.xaml.cs b/Content.Client/Power/SolarControlWindow.xaml.cs index 6b56bc0632..391eff0495 100644 --- a/Content.Client/Power/SolarControlWindow.xaml.cs +++ b/Content.Client/Power/SolarControlWindow.xaml.cs @@ -159,7 +159,7 @@ namespace Content.Client.Power } [UsedImplicitly] - public class SolarControlConsoleBoundUserInterface : ComputerBoundUserInterface + public sealed class SolarControlConsoleBoundUserInterface : ComputerBoundUserInterface { public SolarControlConsoleBoundUserInterface(ClientUserInterfaceComponent owner, object uiKey) : base(owner, uiKey) {} } diff --git a/Content.Client/Power/Visualizers/PowerDeviceVisualizer.cs b/Content.Client/Power/Visualizers/PowerDeviceVisualizer.cs index dd3c525128..7a6d3d4f85 100644 --- a/Content.Client/Power/Visualizers/PowerDeviceVisualizer.cs +++ b/Content.Client/Power/Visualizers/PowerDeviceVisualizer.cs @@ -7,7 +7,7 @@ using Robust.Shared.IoC; namespace Content.Client.Power { [UsedImplicitly] - public class PowerDeviceVisualizer : AppearanceVisualizer + public sealed class PowerDeviceVisualizer : AppearanceVisualizer { public override void OnChangeData(AppearanceComponent component) { diff --git a/Content.Client/PowerCell/PowerCellVisualizer.cs b/Content.Client/PowerCell/PowerCellVisualizer.cs index 4d58a23ca1..ef0b0b4305 100644 --- a/Content.Client/PowerCell/PowerCellVisualizer.cs +++ b/Content.Client/PowerCell/PowerCellVisualizer.cs @@ -8,7 +8,7 @@ using Robust.Shared.Serialization.Manager.Attributes; namespace Content.Client.PowerCell { [UsedImplicitly] - public class PowerCellVisualizer : AppearanceVisualizer + public sealed class PowerCellVisualizer : AppearanceVisualizer { [DataField("prefix")] private string? _prefix; diff --git a/Content.Client/PowerCell/PowerChargerVisualizer.cs b/Content.Client/PowerCell/PowerChargerVisualizer.cs index f86e4b8c9d..0a471d8fe0 100644 --- a/Content.Client/PowerCell/PowerChargerVisualizer.cs +++ b/Content.Client/PowerCell/PowerChargerVisualizer.cs @@ -7,7 +7,7 @@ using Robust.Shared.IoC; namespace Content.Client.PowerCell { [UsedImplicitly] - public class PowerChargerVisualizer : AppearanceVisualizer + public sealed class PowerChargerVisualizer : AppearanceVisualizer { public override void InitializeEntity(EntityUid entity) { diff --git a/Content.Client/Preferences/ClientPreferencesManager.cs b/Content.Client/Preferences/ClientPreferencesManager.cs index 60665757f6..6119ee93dc 100644 --- a/Content.Client/Preferences/ClientPreferencesManager.cs +++ b/Content.Client/Preferences/ClientPreferencesManager.cs @@ -13,7 +13,7 @@ namespace Content.Client.Preferences /// connection. /// Stores preferences on the server through and . /// - public class ClientPreferencesManager : IClientPreferencesManager + public sealed class ClientPreferencesManager : IClientPreferencesManager { [Dependency] private readonly IClientNetManager _netManager = default!; diff --git a/Content.Client/Preferences/UI/CharacterSetupGui.xaml.cs b/Content.Client/Preferences/UI/CharacterSetupGui.xaml.cs index e8465741ff..5a09871564 100644 --- a/Content.Client/Preferences/UI/CharacterSetupGui.xaml.cs +++ b/Content.Client/Preferences/UI/CharacterSetupGui.xaml.cs @@ -24,7 +24,7 @@ using static Robust.Client.UserInterface.Controls.BoxContainer; namespace Content.Client.Preferences.UI { [GenerateTypedNameReferences] - public partial class CharacterSetupGui : Control + public sealed partial class CharacterSetupGui : Control { private readonly IClientPreferencesManager _preferencesManager; private readonly IEntityManager _entityManager; @@ -138,7 +138,7 @@ namespace Content.Client.Preferences.UI Characters.AddChild(_createNewCharacterButton); } - private class CharacterPickerButton : ContainerButton + private sealed class CharacterPickerButton : ContainerButton { private EntityUid _previewDummy; diff --git a/Content.Client/Preferences/UI/HumanoidProfileEditor.Random.cs b/Content.Client/Preferences/UI/HumanoidProfileEditor.Random.cs index 3b62aa6434..e3ce233a4e 100644 --- a/Content.Client/Preferences/UI/HumanoidProfileEditor.Random.cs +++ b/Content.Client/Preferences/UI/HumanoidProfileEditor.Random.cs @@ -7,7 +7,7 @@ using Robust.Shared.Random; namespace Content.Client.Preferences.UI { - public partial class HumanoidProfileEditor + public sealed partial class HumanoidProfileEditor { private readonly IRobustRandom _random; private readonly IPrototypeManager _prototypeManager; diff --git a/Content.Client/Preferences/UI/HumanoidProfileEditor.xaml.cs b/Content.Client/Preferences/UI/HumanoidProfileEditor.xaml.cs index 4bfa4f4ddd..4c4c7dcc59 100644 --- a/Content.Client/Preferences/UI/HumanoidProfileEditor.xaml.cs +++ b/Content.Client/Preferences/UI/HumanoidProfileEditor.xaml.cs @@ -33,7 +33,7 @@ using Range = Robust.Client.UserInterface.Controls.Range; namespace Content.Client.Preferences.UI { - public class HighlightedContainer : PanelContainer + public sealed class HighlightedContainer : PanelContainer { public HighlightedContainer() { @@ -49,7 +49,7 @@ namespace Content.Client.Preferences.UI } [GenerateTypedNameReferences] - public partial class HumanoidProfileEditor : Control + public sealed partial class HumanoidProfileEditor : Control { private LineEdit _ageEdit => CAgeEdit; private LineEdit _nameEdit => CNameEdit; @@ -782,7 +782,7 @@ namespace Content.Client.Preferences.UI } } - private class JobPrioritySelector : Control + private sealed class JobPrioritySelector : Control { public JobPrototype Job { get; } private readonly RadioOptions _optionButton; @@ -855,7 +855,7 @@ namespace Content.Client.Preferences.UI } } - private class AntagPreferenceSelector : Control + private sealed class AntagPreferenceSelector : Control { public AntagPrototype Antag { get; } private readonly CheckBox _checkBox; diff --git a/Content.Client/Projectiles/ProjectileComponent.cs b/Content.Client/Projectiles/ProjectileComponent.cs index 784faab5aa..40730765af 100644 --- a/Content.Client/Projectiles/ProjectileComponent.cs +++ b/Content.Client/Projectiles/ProjectileComponent.cs @@ -5,7 +5,7 @@ namespace Content.Client.Projectiles { [RegisterComponent] [ComponentReference(typeof(SharedProjectileComponent))] - public class ProjectileComponent : SharedProjectileComponent + public sealed class ProjectileComponent : SharedProjectileComponent { public override void HandleComponentState(ComponentState? curState, ComponentState? nextState) { diff --git a/Content.Client/Pulling/PullingSystem.cs b/Content.Client/Pulling/PullingSystem.cs index 91ec1f5cd9..556dadd00d 100644 --- a/Content.Client/Pulling/PullingSystem.cs +++ b/Content.Client/Pulling/PullingSystem.cs @@ -6,7 +6,7 @@ using Robust.Client.Physics; namespace Content.Client.Pulling { [UsedImplicitly] - public class PullingSystem : SharedPullingSystem + public sealed class PullingSystem : SharedPullingSystem { public override void Initialize() { diff --git a/Content.Client/Radar/RadarConsoleWindow.xaml.cs b/Content.Client/Radar/RadarConsoleWindow.xaml.cs index 4bc7c47b7a..b39d675863 100644 --- a/Content.Client/Radar/RadarConsoleWindow.xaml.cs +++ b/Content.Client/Radar/RadarConsoleWindow.xaml.cs @@ -13,7 +13,7 @@ using Robust.Shared.Maths; namespace Content.Client.Radar; [GenerateTypedNameReferences] -public partial class RadarConsoleWindow : DefaultWindow, IComputerWindow +public sealed partial class RadarConsoleWindow : DefaultWindow, IComputerWindow { public RadarConsoleWindow() { @@ -107,7 +107,7 @@ public sealed class RadarControl : Control } [UsedImplicitly] -public class RadarConsoleBoundUserInterface : ComputerBoundUserInterface +public sealed class RadarConsoleBoundUserInterface : ComputerBoundUserInterface { public RadarConsoleBoundUserInterface(ClientUserInterfaceComponent owner, object uiKey) : base(owner, uiKey) {} } diff --git a/Content.Client/Recycling/RecyclerVisualizer.cs b/Content.Client/Recycling/RecyclerVisualizer.cs index 0111100f0b..2fa63516e0 100644 --- a/Content.Client/Recycling/RecyclerVisualizer.cs +++ b/Content.Client/Recycling/RecyclerVisualizer.cs @@ -9,7 +9,7 @@ using Robust.Shared.Serialization.Manager.Attributes; namespace Content.Client.Recycling { [UsedImplicitly] - public class RecyclerVisualizer : AppearanceVisualizer + public sealed class RecyclerVisualizer : AppearanceVisualizer { [DataField("state_on")] private string _stateOn = "grinder-o1"; diff --git a/Content.Client/Research/TechnologyDatabaseComponent.cs b/Content.Client/Research/TechnologyDatabaseComponent.cs index 00b3034846..b3e63b9726 100644 --- a/Content.Client/Research/TechnologyDatabaseComponent.cs +++ b/Content.Client/Research/TechnologyDatabaseComponent.cs @@ -8,7 +8,7 @@ using Robust.Shared.Prototypes; namespace Content.Client.Research { [RegisterComponent] - public class TechnologyDatabaseComponent : SharedTechnologyDatabaseComponent + public sealed class TechnologyDatabaseComponent : SharedTechnologyDatabaseComponent { /// /// Event called when the database is updated. diff --git a/Content.Client/Research/UI/ResearchClientBoundUserInterface.cs b/Content.Client/Research/UI/ResearchClientBoundUserInterface.cs index f7c93b12b3..1a70f1e4fd 100644 --- a/Content.Client/Research/UI/ResearchClientBoundUserInterface.cs +++ b/Content.Client/Research/UI/ResearchClientBoundUserInterface.cs @@ -4,7 +4,7 @@ using static Content.Shared.Research.Components.SharedResearchClientComponent; namespace Content.Client.Research.UI { - public class ResearchClientBoundUserInterface : BoundUserInterface + public sealed class ResearchClientBoundUserInterface : BoundUserInterface { private ResearchClientServerSelectionMenu? _menu; diff --git a/Content.Client/Research/UI/ResearchClientServerSelectionMenu.xaml.cs b/Content.Client/Research/UI/ResearchClientServerSelectionMenu.xaml.cs index 980038e117..fad907d769 100644 --- a/Content.Client/Research/UI/ResearchClientServerSelectionMenu.xaml.cs +++ b/Content.Client/Research/UI/ResearchClientServerSelectionMenu.xaml.cs @@ -8,7 +8,7 @@ using Robust.Shared.Localization; namespace Content.Client.Research.UI { [GenerateTypedNameReferences] - public partial class ResearchClientServerSelectionMenu : DefaultWindow + public sealed partial class ResearchClientServerSelectionMenu : DefaultWindow { private int _serverCount; private string[] _serverNames = System.Array.Empty(); diff --git a/Content.Client/Research/UI/ResearchConsoleBoundUserInterface.cs b/Content.Client/Research/UI/ResearchConsoleBoundUserInterface.cs index 8703825d65..5957f9bd16 100644 --- a/Content.Client/Research/UI/ResearchConsoleBoundUserInterface.cs +++ b/Content.Client/Research/UI/ResearchConsoleBoundUserInterface.cs @@ -8,7 +8,7 @@ using static Content.Shared.Research.Components.SharedResearchConsoleComponent; namespace Content.Client.Research.UI { [UsedImplicitly] - public class ResearchConsoleBoundUserInterface : BoundUserInterface + public sealed class ResearchConsoleBoundUserInterface : BoundUserInterface { public int Points { get; private set; } public int PointsPerSecond { get; private set; } diff --git a/Content.Client/Research/UI/ResearchConsoleMenu.xaml.cs b/Content.Client/Research/UI/ResearchConsoleMenu.xaml.cs index 75b5339a92..7a2783dc80 100644 --- a/Content.Client/Research/UI/ResearchConsoleMenu.xaml.cs +++ b/Content.Client/Research/UI/ResearchConsoleMenu.xaml.cs @@ -13,7 +13,7 @@ using Robust.Shared.Prototypes; namespace Content.Client.Research.UI { [GenerateTypedNameReferences] - public partial class ResearchConsoleMenu : DefaultWindow + public sealed partial class ResearchConsoleMenu : DefaultWindow { public ResearchConsoleBoundUserInterface Owner { get; } diff --git a/Content.Client/Rotation/RotationVisualizer.cs b/Content.Client/Rotation/RotationVisualizer.cs index 99da3d90c2..336f0faf74 100644 --- a/Content.Client/Rotation/RotationVisualizer.cs +++ b/Content.Client/Rotation/RotationVisualizer.cs @@ -11,7 +11,7 @@ using Robust.Shared.Maths; namespace Content.Client.Rotation { [UsedImplicitly] - public class RotationVisualizer : AppearanceVisualizer + public sealed class RotationVisualizer : AppearanceVisualizer { public override void OnChangeData(AppearanceComponent component) { diff --git a/Content.Client/Sandbox/SandboxManager.cs b/Content.Client/Sandbox/SandboxManager.cs index fcc705d27a..3da0bed2e3 100644 --- a/Content.Client/Sandbox/SandboxManager.cs +++ b/Content.Client/Sandbox/SandboxManager.cs @@ -26,7 +26,7 @@ using static Robust.Client.UserInterface.Controls.BoxContainer; namespace Content.Client.Sandbox { // Layout for the SandboxWindow - public class SandboxWindow : DefaultWindow + public sealed class SandboxWindow : DefaultWindow { public readonly Button RespawnButton; public readonly Button SpawnEntitiesButton; @@ -116,7 +116,7 @@ namespace Content.Client.Sandbox } - internal class SandboxManager : SharedSandboxManager, ISandboxManager + internal sealed class SandboxManager : SharedSandboxManager, ISandboxManager { [Dependency] private readonly IClientConsoleHost _consoleHost = default!; [Dependency] private readonly IGameHud _gameHud = default!; diff --git a/Content.Client/Screenshot/ScreenshotHook.cs b/Content.Client/Screenshot/ScreenshotHook.cs index ca9d50e2b7..31530c4e9a 100644 --- a/Content.Client/Screenshot/ScreenshotHook.cs +++ b/Content.Client/Screenshot/ScreenshotHook.cs @@ -16,7 +16,7 @@ using SixLabors.ImageSharp.PixelFormats; namespace Content.Client.Screenshot { - internal class ScreenshotHook : IScreenshotHook + internal sealed class ScreenshotHook : IScreenshotHook { private static readonly ResourcePath BaseScreenshotPath = new("/Screenshots"); diff --git a/Content.Client/Security/DeployableBarrierVisualizer.cs b/Content.Client/Security/DeployableBarrierVisualizer.cs index 4b88189a50..f77a9230f5 100644 --- a/Content.Client/Security/DeployableBarrierVisualizer.cs +++ b/Content.Client/Security/DeployableBarrierVisualizer.cs @@ -7,7 +7,7 @@ using Robust.Shared.IoC; namespace Content.Client.Security { [UsedImplicitly] - public class DeployableBarrierVisualizer : AppearanceVisualizer + public sealed class DeployableBarrierVisualizer : AppearanceVisualizer { public override void OnChangeData(AppearanceComponent component) { diff --git a/Content.Client/Singularity/Components/ClientSingularityComponent.cs b/Content.Client/Singularity/Components/ClientSingularityComponent.cs index 06c6a6762a..992cd32079 100644 --- a/Content.Client/Singularity/Components/ClientSingularityComponent.cs +++ b/Content.Client/Singularity/Components/ClientSingularityComponent.cs @@ -5,7 +5,7 @@ namespace Content.Client.Singularity.Components { [RegisterComponent] [ComponentReference(typeof(SharedSingularityComponent))] - public class ClientSingularityComponent : SharedSingularityComponent + public sealed class ClientSingularityComponent : SharedSingularityComponent { } } diff --git a/Content.Client/Singularity/Components/ContainmentFieldComponent.cs b/Content.Client/Singularity/Components/ContainmentFieldComponent.cs index 2bae3934ab..0d38d28e75 100644 --- a/Content.Client/Singularity/Components/ContainmentFieldComponent.cs +++ b/Content.Client/Singularity/Components/ContainmentFieldComponent.cs @@ -8,7 +8,7 @@ namespace Content.Client.Singularity.Components { [RegisterComponent] [ComponentReference(typeof(SharedContainmentFieldComponent))] - public class ContainmentFieldComponent : SharedContainmentFieldComponent + public sealed class ContainmentFieldComponent : SharedContainmentFieldComponent { // Jesus what is this code. // Singulo cleanup WHEEENNN diff --git a/Content.Client/Singularity/SingularityOverlay.cs b/Content.Client/Singularity/SingularityOverlay.cs index b97addbae7..401e9ee595 100644 --- a/Content.Client/Singularity/SingularityOverlay.cs +++ b/Content.Client/Singularity/SingularityOverlay.cs @@ -11,7 +11,7 @@ using Robust.Shared.Prototypes; namespace Content.Client.Singularity { - public class SingularityOverlay : Overlay + public sealed class SingularityOverlay : Overlay { [Dependency] private readonly IEntityManager _entityManager = default!; [Dependency] private readonly IPrototypeManager _prototypeManager = default!; diff --git a/Content.Client/Singularity/Visualizers/EmitterVisualizer.cs b/Content.Client/Singularity/Visualizers/EmitterVisualizer.cs index 58c877bcfb..3581b55f5a 100644 --- a/Content.Client/Singularity/Visualizers/EmitterVisualizer.cs +++ b/Content.Client/Singularity/Visualizers/EmitterVisualizer.cs @@ -9,7 +9,7 @@ using Robust.Shared.IoC; namespace Content.Client.Singularity.Visualizers { [UsedImplicitly] - public class EmitterVisualizer : AppearanceVisualizer + public sealed class EmitterVisualizer : AppearanceVisualizer { private const string OverlayBeam = "beam"; private const string OverlayUnderPowered = "underpowered"; diff --git a/Content.Client/Singularity/Visualizers/RadiationCollectorVisualizer.cs b/Content.Client/Singularity/Visualizers/RadiationCollectorVisualizer.cs index b07424139c..8d7bee10ec 100644 --- a/Content.Client/Singularity/Visualizers/RadiationCollectorVisualizer.cs +++ b/Content.Client/Singularity/Visualizers/RadiationCollectorVisualizer.cs @@ -10,7 +10,7 @@ using Robust.Shared.Serialization; namespace Content.Client.Singularity.Visualizers { [UsedImplicitly] - public class RadiationCollectorVisualizer : AppearanceVisualizer, ISerializationHooks + public sealed class RadiationCollectorVisualizer : AppearanceVisualizer, ISerializationHooks { private const string AnimationKey = "radiationcollector_animation"; diff --git a/Content.Client/Singularity/Visualizers/SingularityVisualizer.cs b/Content.Client/Singularity/Visualizers/SingularityVisualizer.cs index 19bec6d582..a0b3145340 100644 --- a/Content.Client/Singularity/Visualizers/SingularityVisualizer.cs +++ b/Content.Client/Singularity/Visualizers/SingularityVisualizer.cs @@ -9,7 +9,7 @@ using Robust.Shared.Utility; namespace Content.Client.Singularity.Visualizers { [UsedImplicitly] - public class SingularityVisualizer : AppearanceVisualizer + public sealed class SingularityVisualizer : AppearanceVisualizer { [DataField("layer")] private int Layer { get; } = 0; diff --git a/Content.Client/Spawners/ClientEntitySpawnerComponent.cs b/Content.Client/Spawners/ClientEntitySpawnerComponent.cs index 79cafc399d..c9a32c1a2c 100644 --- a/Content.Client/Spawners/ClientEntitySpawnerComponent.cs +++ b/Content.Client/Spawners/ClientEntitySpawnerComponent.cs @@ -10,7 +10,7 @@ namespace Content.Client.Spawners /// [RegisterComponent] [ComponentProtoName("ClientEntitySpawner")] - public class ClientEntitySpawnerComponent : Component + public sealed class ClientEntitySpawnerComponent : Component { [Dependency] private readonly IEntityManager _entMan = default!; diff --git a/Content.Client/Speech/EntitySystems/StutteringSystem.cs b/Content.Client/Speech/EntitySystems/StutteringSystem.cs index 0f3a99cbfa..e475ab8c30 100644 --- a/Content.Client/Speech/EntitySystems/StutteringSystem.cs +++ b/Content.Client/Speech/EntitySystems/StutteringSystem.cs @@ -2,7 +2,7 @@ using Content.Shared.Speech.EntitySystems; namespace Content.Client.Speech.EntitySystems { - public class StutteringSystem : SharedStutteringSystem + public sealed class StutteringSystem : SharedStutteringSystem { } diff --git a/Content.Client/Stack/StackSystem.cs b/Content.Client/Stack/StackSystem.cs index 756ea5026d..ab6c68a11e 100644 --- a/Content.Client/Stack/StackSystem.cs +++ b/Content.Client/Stack/StackSystem.cs @@ -5,7 +5,7 @@ using Robust.Shared.GameObjects; namespace Content.Client.Stack { [UsedImplicitly] - public class StackSystem : SharedStackSystem + public sealed class StackSystem : SharedStackSystem { public override void Initialize() { diff --git a/Content.Client/Stack/StackVisualizer.cs b/Content.Client/Stack/StackVisualizer.cs index 5980d5d52a..6c880fb56c 100644 --- a/Content.Client/Stack/StackVisualizer.cs +++ b/Content.Client/Stack/StackVisualizer.cs @@ -48,7 +48,7 @@ namespace Content.Client.Stack /// /// [UsedImplicitly] - public class StackVisualizer : AppearanceVisualizer + public sealed class StackVisualizer : AppearanceVisualizer { /// /// Default IconLayer stack. diff --git a/Content.Client/StationEvents/RadiationPulseOverlay.cs b/Content.Client/StationEvents/RadiationPulseOverlay.cs index a4f8f0ad15..dfd8523a31 100644 --- a/Content.Client/StationEvents/RadiationPulseOverlay.cs +++ b/Content.Client/StationEvents/RadiationPulseOverlay.cs @@ -12,7 +12,7 @@ using Robust.Shared.Timing; namespace Content.Client.StationEvents { - public class RadiationPulseOverlay : Overlay + public sealed class RadiationPulseOverlay : Overlay { [Dependency] private readonly IEntityManager _entityManager = default!; [Dependency] private readonly IPrototypeManager _prototypeManager = default!; diff --git a/Content.Client/Storage/ClientStorageComponent.cs b/Content.Client/Storage/ClientStorageComponent.cs index 706728e201..4625056e28 100644 --- a/Content.Client/Storage/ClientStorageComponent.cs +++ b/Content.Client/Storage/ClientStorageComponent.cs @@ -31,7 +31,7 @@ namespace Content.Client.Storage /// Client version of item storage containers, contains a UI which displays stored entities and their size /// [RegisterComponent] - public class ClientStorageComponent : SharedStorageComponent, IDraggable + public sealed class ClientStorageComponent : SharedStorageComponent, IDraggable { [Dependency] private readonly IItemSlotManager _itemSlotManager = default!; [Dependency] private readonly IPlayerManager _playerManager = default!; @@ -233,7 +233,7 @@ namespace Content.Client.Storage /// /// GUI class for client storage component /// - private class StorageWindow : DefaultWindow + private sealed class StorageWindow : DefaultWindow { private Control _vBox; private readonly Label _information; diff --git a/Content.Client/Storage/Visualizers/BagOpenCloseVisualizer.cs b/Content.Client/Storage/Visualizers/BagOpenCloseVisualizer.cs index ec0cff6002..71598fd4c2 100644 --- a/Content.Client/Storage/Visualizers/BagOpenCloseVisualizer.cs +++ b/Content.Client/Storage/Visualizers/BagOpenCloseVisualizer.cs @@ -11,7 +11,7 @@ using static Robust.Shared.Utility.SpriteSpecifier; namespace Content.Client.Storage.Visualizers { [UsedImplicitly] - public class BagOpenCloseVisualizer : AppearanceVisualizer, ISerializationHooks + public sealed class BagOpenCloseVisualizer : AppearanceVisualizer, ISerializationHooks { private const string OpenIcon = "openIcon"; [DataField(OpenIcon)] diff --git a/Content.Client/Storage/Visualizers/MappedItemVisualizer.cs b/Content.Client/Storage/Visualizers/MappedItemVisualizer.cs index 29eccbec52..a0ac0fee1d 100644 --- a/Content.Client/Storage/Visualizers/MappedItemVisualizer.cs +++ b/Content.Client/Storage/Visualizers/MappedItemVisualizer.cs @@ -11,7 +11,7 @@ using Robust.Shared.Utility; namespace Content.Client.Storage.Visualizers { [UsedImplicitly] - public class MappedItemVisualizer : AppearanceVisualizer + public sealed class MappedItemVisualizer : AppearanceVisualizer { [DataField("sprite")] private ResourcePath? _rsiPath; private List _spriteLayers = new(); diff --git a/Content.Client/Strip/StrippableComponent.cs b/Content.Client/Strip/StrippableComponent.cs index fa5f871fd2..daad176952 100644 --- a/Content.Client/Strip/StrippableComponent.cs +++ b/Content.Client/Strip/StrippableComponent.cs @@ -6,7 +6,7 @@ namespace Content.Client.Strip { [RegisterComponent] [ComponentReference(typeof(SharedStrippableComponent))] - public class StrippableComponent : SharedStrippableComponent + public sealed class StrippableComponent : SharedStrippableComponent { public override bool Drop(DragDropEvent args) { diff --git a/Content.Client/Strip/StrippingMenu.cs b/Content.Client/Strip/StrippingMenu.cs index 18ea9aed7e..38e053df13 100644 --- a/Content.Client/Strip/StrippingMenu.cs +++ b/Content.Client/Strip/StrippingMenu.cs @@ -7,7 +7,7 @@ using static Robust.Client.UserInterface.Controls.BoxContainer; namespace Content.Client.Strip { - public class StrippingMenu : DefaultWindow + public sealed class StrippingMenu : DefaultWindow { private readonly BoxContainer _vboxContainer; diff --git a/Content.Client/Stylesheets/StyleSpace.cs b/Content.Client/Stylesheets/StyleSpace.cs index ef3713fb34..0ddb141837 100644 --- a/Content.Client/Stylesheets/StyleSpace.cs +++ b/Content.Client/Stylesheets/StyleSpace.cs @@ -9,7 +9,7 @@ using static Robust.Client.UserInterface.StylesheetHelpers; namespace Content.Client.Stylesheets { - public class StyleSpace : StyleBase + public sealed class StyleSpace : StyleBase { public static readonly Color SpaceRed = Color.FromHex("#9b2236"); diff --git a/Content.Client/Suspicion/SuspicionGui.xaml.cs b/Content.Client/Suspicion/SuspicionGui.xaml.cs index 3352d64c94..e6507d3b6c 100644 --- a/Content.Client/Suspicion/SuspicionGui.xaml.cs +++ b/Content.Client/Suspicion/SuspicionGui.xaml.cs @@ -17,7 +17,7 @@ using static Robust.Client.UserInterface.Controls.BaseButton; namespace Content.Client.Suspicion { [GenerateTypedNameReferences] - public partial class SuspicionGui : Control + public sealed partial class SuspicionGui : Control { [Dependency] private readonly IPlayerManager _playerManager = default!; [Dependency] private readonly IGameTiming _timing = default!; diff --git a/Content.Client/Suspicion/SuspicionRoleComponent.cs b/Content.Client/Suspicion/SuspicionRoleComponent.cs index 11a0b410ef..12abe6d05a 100644 --- a/Content.Client/Suspicion/SuspicionRoleComponent.cs +++ b/Content.Client/Suspicion/SuspicionRoleComponent.cs @@ -12,7 +12,7 @@ using Robust.Shared.ViewVariables; namespace Content.Client.Suspicion { [RegisterComponent] - public class SuspicionRoleComponent : SharedSuspicionRoleComponent + public sealed class SuspicionRoleComponent : SharedSuspicionRoleComponent { [Dependency] private readonly IGameHud _gameHud = default!; [Dependency] private readonly IOverlayManager _overlayManager = default!; diff --git a/Content.Client/Suspicion/SuspicionRoleSystem.cs b/Content.Client/Suspicion/SuspicionRoleSystem.cs index 9f855cece5..3fa658e8af 100644 --- a/Content.Client/Suspicion/SuspicionRoleSystem.cs +++ b/Content.Client/Suspicion/SuspicionRoleSystem.cs @@ -3,7 +3,7 @@ using Robust.Shared.GameObjects; namespace Content.Client.Suspicion { - class SuspicionRoleSystem : EntitySystem + sealed class SuspicionRoleSystem : EntitySystem { public override void Initialize() { diff --git a/Content.Client/Suspicion/TraitorOverlay.cs b/Content.Client/Suspicion/TraitorOverlay.cs index 3c54b0a667..d932b9e44e 100644 --- a/Content.Client/Suspicion/TraitorOverlay.cs +++ b/Content.Client/Suspicion/TraitorOverlay.cs @@ -12,7 +12,7 @@ using Robust.Shared.Physics; namespace Content.Client.Suspicion { - public class TraitorOverlay : Overlay + public sealed class TraitorOverlay : Overlay { private readonly IEntityManager _entityManager; private readonly IPlayerManager _playerManager; diff --git a/Content.Client/Tabletop/Components/TabletopDraggableComponent.cs b/Content.Client/Tabletop/Components/TabletopDraggableComponent.cs index 7b11c0d5e4..35c00de53a 100644 --- a/Content.Client/Tabletop/Components/TabletopDraggableComponent.cs +++ b/Content.Client/Tabletop/Components/TabletopDraggableComponent.cs @@ -7,7 +7,7 @@ namespace Content.Client.Tabletop.Components { [RegisterComponent] [ComponentReference(typeof(SharedTabletopDraggableComponent))] - public class TabletopDraggableComponent : SharedTabletopDraggableComponent + public sealed class TabletopDraggableComponent : SharedTabletopDraggableComponent { // The player dragging the piece [ViewVariables] diff --git a/Content.Client/Tabletop/TabletopSystem.cs b/Content.Client/Tabletop/TabletopSystem.cs index a872355a64..0e1f072e3b 100644 --- a/Content.Client/Tabletop/TabletopSystem.cs +++ b/Content.Client/Tabletop/TabletopSystem.cs @@ -25,7 +25,7 @@ using DrawDepth = Content.Shared.DrawDepth.DrawDepth; namespace Content.Client.Tabletop { [UsedImplicitly] - public class TabletopSystem : SharedTabletopSystem + public sealed class TabletopSystem : SharedTabletopSystem { [Dependency] private readonly IInputManager _inputManager = default!; [Dependency] private readonly IUserInterfaceManager _uiManger = default!; diff --git a/Content.Client/Tabletop/UI/TabletopWindow.xaml.cs b/Content.Client/Tabletop/UI/TabletopWindow.xaml.cs index 2d26cd87aa..2b6730958b 100644 --- a/Content.Client/Tabletop/UI/TabletopWindow.xaml.cs +++ b/Content.Client/Tabletop/UI/TabletopWindow.xaml.cs @@ -8,7 +8,7 @@ using Robust.Shared.Maths; namespace Content.Client.Tabletop.UI { [GenerateTypedNameReferences] - public partial class TabletopWindow : DefaultWindow + public sealed partial class TabletopWindow : DefaultWindow { public TabletopWindow(IEye? eye, Vector2i size) { diff --git a/Content.Client/Tabletop/Visualizers/TabletopItemVisualizer.cs b/Content.Client/Tabletop/Visualizers/TabletopItemVisualizer.cs index 972a24a650..deac525cda 100644 --- a/Content.Client/Tabletop/Visualizers/TabletopItemVisualizer.cs +++ b/Content.Client/Tabletop/Visualizers/TabletopItemVisualizer.cs @@ -8,7 +8,7 @@ using Robust.Shared.Maths; namespace Content.Client.Tabletop.Visualizers { [UsedImplicitly] - public class TabletopItemVisualizer : AppearanceVisualizer + public sealed class TabletopItemVisualizer : AppearanceVisualizer { public override void OnChangeData(AppearanceComponent appearance) { diff --git a/Content.Client/Toilet/ToiletVisualizer.cs b/Content.Client/Toilet/ToiletVisualizer.cs index e9096e6c5d..2a83e3fb94 100644 --- a/Content.Client/Toilet/ToiletVisualizer.cs +++ b/Content.Client/Toilet/ToiletVisualizer.cs @@ -5,7 +5,7 @@ using Robust.Shared.IoC; namespace Content.Client.Toilet { - public class ToiletVisualizer : AppearanceVisualizer + public sealed class ToiletVisualizer : AppearanceVisualizer { public override void OnChangeData(AppearanceComponent component) { diff --git a/Content.Client/Tools/Components/MultipleToolComponent.cs b/Content.Client/Tools/Components/MultipleToolComponent.cs index abd8e3a213..34030d58db 100644 --- a/Content.Client/Tools/Components/MultipleToolComponent.cs +++ b/Content.Client/Tools/Components/MultipleToolComponent.cs @@ -13,7 +13,7 @@ using Robust.Shared.ViewVariables; namespace Content.Client.Tools.Components { [RegisterComponent] - public class MultipleToolComponent : SharedMultipleToolComponent, IItemStatus + public sealed class MultipleToolComponent : SharedMultipleToolComponent, IItemStatus { private string? _behavior; [DataField("statusShowBehavior")] diff --git a/Content.Client/Tools/Components/WelderComponent.cs b/Content.Client/Tools/Components/WelderComponent.cs index 65e883caf6..a39860e8ac 100644 --- a/Content.Client/Tools/Components/WelderComponent.cs +++ b/Content.Client/Tools/Components/WelderComponent.cs @@ -14,7 +14,7 @@ using Robust.Shared.ViewVariables; namespace Content.Client.Tools.Components { [RegisterComponent, Friend(typeof(ToolSystem), typeof(StatusControl))] - public class WelderComponent : SharedWelderComponent, IItemStatus + public sealed class WelderComponent : SharedWelderComponent, IItemStatus { [ViewVariables(VVAccess.ReadWrite)] public bool UiUpdateNeeded { get; set; } diff --git a/Content.Client/Tools/ToolSystem.cs b/Content.Client/Tools/ToolSystem.cs index eb424ecc94..9f0bd5aa1a 100644 --- a/Content.Client/Tools/ToolSystem.cs +++ b/Content.Client/Tools/ToolSystem.cs @@ -5,7 +5,7 @@ using Robust.Shared.GameStates; namespace Content.Client.Tools { - public class ToolSystem : EntitySystem + public sealed class ToolSystem : EntitySystem { public override void Initialize() { diff --git a/Content.Client/Traitor/Uplink/UplinkBoundUserInterface.cs b/Content.Client/Traitor/Uplink/UplinkBoundUserInterface.cs index f14b5ab842..339ba85cee 100644 --- a/Content.Client/Traitor/Uplink/UplinkBoundUserInterface.cs +++ b/Content.Client/Traitor/Uplink/UplinkBoundUserInterface.cs @@ -6,7 +6,7 @@ using Robust.Shared.GameObjects; namespace Content.Client.Traitor.Uplink { [UsedImplicitly] - public class UplinkBoundUserInterface : BoundUserInterface + public sealed class UplinkBoundUserInterface : BoundUserInterface { private UplinkMenu? _menu; diff --git a/Content.Client/Traitor/Uplink/UplinkListingControl.xaml.cs b/Content.Client/Traitor/Uplink/UplinkListingControl.xaml.cs index c3f6c2f925..0bb269e58a 100644 --- a/Content.Client/Traitor/Uplink/UplinkListingControl.xaml.cs +++ b/Content.Client/Traitor/Uplink/UplinkListingControl.xaml.cs @@ -8,7 +8,7 @@ using Robust.Shared.Maths; namespace Content.Client.Traitor.Uplink { [GenerateTypedNameReferences] - public partial class UplinkListingControl : Control + public sealed partial class UplinkListingControl : Control { public UplinkListingControl(string itemName, string itemDescription, diff --git a/Content.Client/Traitor/Uplink/UplinkMenu.xaml.cs b/Content.Client/Traitor/Uplink/UplinkMenu.xaml.cs index cc2966a5ee..7e7ca63fd1 100644 --- a/Content.Client/Traitor/Uplink/UplinkMenu.xaml.cs +++ b/Content.Client/Traitor/Uplink/UplinkMenu.xaml.cs @@ -16,7 +16,7 @@ using Robust.Shared.Prototypes; namespace Content.Client.Traitor.Uplink { [GenerateTypedNameReferences] - public partial class UplinkMenu : DefaultWindow + public sealed partial class UplinkMenu : DefaultWindow { [Dependency] private readonly IPrototypeManager _prototypeManager = default!; [Dependency] private readonly IResourceCache _resourceCache = default!; diff --git a/Content.Client/Traitor/Uplink/UplinkWithdrawWindow.xaml.cs b/Content.Client/Traitor/Uplink/UplinkWithdrawWindow.xaml.cs index 5f7d3525a5..d83546dd55 100644 --- a/Content.Client/Traitor/Uplink/UplinkWithdrawWindow.xaml.cs +++ b/Content.Client/Traitor/Uplink/UplinkWithdrawWindow.xaml.cs @@ -10,7 +10,7 @@ namespace Content.Client.Traitor.Uplink /// Used as sub-window in Uplink UI /// [GenerateTypedNameReferences] - public partial class UplinkWithdrawWindow : DefaultWindow + public sealed partial class UplinkWithdrawWindow : DefaultWindow { public event System.Action? OnWithdrawAttempt; diff --git a/Content.Client/Trigger/TimerTriggerVisualizer.cs b/Content.Client/Trigger/TimerTriggerVisualizer.cs index 77f7c1ab23..dcad6c361c 100644 --- a/Content.Client/Trigger/TimerTriggerVisualizer.cs +++ b/Content.Client/Trigger/TimerTriggerVisualizer.cs @@ -12,7 +12,7 @@ using Robust.Shared.Serialization.Manager.Attributes; namespace Content.Client.Trigger { [UsedImplicitly] - public class TimerTriggerVisualizer : AppearanceVisualizer, ISerializationHooks + public sealed class TimerTriggerVisualizer : AppearanceVisualizer, ISerializationHooks { private const string AnimationKey = "priming_animation"; diff --git a/Content.Client/UserInterface/Atmos/GasTank/GasTankBoundUserInterface.cs b/Content.Client/UserInterface/Atmos/GasTank/GasTankBoundUserInterface.cs index dafc988484..2b9a7b0818 100644 --- a/Content.Client/UserInterface/Atmos/GasTank/GasTankBoundUserInterface.cs +++ b/Content.Client/UserInterface/Atmos/GasTank/GasTankBoundUserInterface.cs @@ -6,7 +6,7 @@ using Robust.Shared.GameObjects; namespace Content.Client.UserInterface.Atmos.GasTank { [UsedImplicitly] - public class GasTankBoundUserInterface + public sealed class GasTankBoundUserInterface : BoundUserInterface { public GasTankBoundUserInterface(ClientUserInterfaceComponent owner, object uiKey) : diff --git a/Content.Client/UserInterface/Atmos/GasTank/GasTankWindow.cs b/Content.Client/UserInterface/Atmos/GasTank/GasTankWindow.cs index 9cf4b91b92..05f450ae0c 100644 --- a/Content.Client/UserInterface/Atmos/GasTank/GasTankWindow.cs +++ b/Content.Client/UserInterface/Atmos/GasTank/GasTankWindow.cs @@ -14,7 +14,7 @@ using static Robust.Client.UserInterface.Controls.BoxContainer; namespace Content.Client.UserInterface.Atmos.GasTank { - public class GasTankWindow + public sealed class GasTankWindow : BaseWindow { private GasTankBoundUserInterface _owner; diff --git a/Content.Client/UserInterface/Controls/EntityListDisplay.cs b/Content.Client/UserInterface/Controls/EntityListDisplay.cs index d45946bad4..05ce8df312 100644 --- a/Content.Client/UserInterface/Controls/EntityListDisplay.cs +++ b/Content.Client/UserInterface/Controls/EntityListDisplay.cs @@ -10,7 +10,7 @@ using Robust.Shared.Maths; namespace Content.Client.UserInterface.Controls { - public class EntityListDisplay : Control + public sealed class EntityListDisplay : Control { public const string StylePropertySeparation = "separation"; @@ -279,7 +279,7 @@ namespace Content.Client.UserInterface.Controls } } - public class EntityContainerButton : ContainerButton + public sealed class EntityContainerButton : ContainerButton { public EntityUid EntityUid; diff --git a/Content.Client/UserInterface/FancyWindow.xaml.cs b/Content.Client/UserInterface/FancyWindow.xaml.cs index d2ee57766f..55334e719c 100644 --- a/Content.Client/UserInterface/FancyWindow.xaml.cs +++ b/Content.Client/UserInterface/FancyWindow.xaml.cs @@ -6,6 +6,7 @@ using Robust.Shared.Maths; namespace Content.Client.UserInterface { [GenerateTypedNameReferences] + [Virtual] public partial class FancyWindow : BaseWindow { public FancyWindow() diff --git a/Content.Client/VendingMachines/UI/VendingMachineMenu.xaml.cs b/Content.Client/VendingMachines/UI/VendingMachineMenu.xaml.cs index f0513b5133..957bac5ee9 100644 --- a/Content.Client/VendingMachines/UI/VendingMachineMenu.xaml.cs +++ b/Content.Client/VendingMachines/UI/VendingMachineMenu.xaml.cs @@ -14,7 +14,7 @@ using static Content.Shared.VendingMachines.SharedVendingMachineComponent; namespace Content.Client.VendingMachines.UI { [GenerateTypedNameReferences] - public partial class VendingMachineMenu : DefaultWindow + public sealed partial class VendingMachineMenu : DefaultWindow { [Dependency] private readonly IResourceCache _resourceCache = default!; [Dependency] private readonly IPrototypeManager _prototypeManager = default!; diff --git a/Content.Client/VendingMachines/VendingMachineBoundUserInterface.cs b/Content.Client/VendingMachines/VendingMachineBoundUserInterface.cs index fda5cd263d..99687769ef 100644 --- a/Content.Client/VendingMachines/VendingMachineBoundUserInterface.cs +++ b/Content.Client/VendingMachines/VendingMachineBoundUserInterface.cs @@ -8,7 +8,7 @@ using static Content.Shared.VendingMachines.SharedVendingMachineComponent; namespace Content.Client.VendingMachines { - public class VendingMachineBoundUserInterface : BoundUserInterface + public sealed class VendingMachineBoundUserInterface : BoundUserInterface { [ViewVariables] private VendingMachineMenu? _menu; diff --git a/Content.Client/Verbs/UI/ConfirmationMenuElement.cs b/Content.Client/Verbs/UI/ConfirmationMenuElement.cs index fd9943d6f7..1b9348cb6b 100644 --- a/Content.Client/Verbs/UI/ConfirmationMenuElement.cs +++ b/Content.Client/Verbs/UI/ConfirmationMenuElement.cs @@ -5,7 +5,7 @@ using Robust.Shared.Utility; namespace Content.Client.Verbs.UI; -public partial class ConfirmationMenuElement : ContextMenuElement +public sealed partial class ConfirmationMenuElement : ContextMenuElement { public const string StyleClassConfirmationContextMenuButton = "confirmationContextMenuButton"; diff --git a/Content.Client/Verbs/UI/VerbMenuElement.cs b/Content.Client/Verbs/UI/VerbMenuElement.cs index fd53fd7870..09d2f900e4 100644 --- a/Content.Client/Verbs/UI/VerbMenuElement.cs +++ b/Content.Client/Verbs/UI/VerbMenuElement.cs @@ -13,7 +13,7 @@ namespace Content.Client.Verbs.UI /// Slight extension of that uses a SpriteSpecifier for it's icon and provides /// constructors that take verbs or verb categories. /// - public partial class VerbMenuElement : ContextMenuElement + public sealed partial class VerbMenuElement : ContextMenuElement { public const string StyleClassVerbMenuConfirmationTexture = "verbMenuConfirmationTexture"; diff --git a/Content.Client/Viewport/GameScreen.cs b/Content.Client/Viewport/GameScreen.cs index ae6737aaf7..44cf9e1b13 100644 --- a/Content.Client/Viewport/GameScreen.cs +++ b/Content.Client/Viewport/GameScreen.cs @@ -22,7 +22,7 @@ using Robust.Shared.ViewVariables; namespace Content.Client.Viewport { - public class GameScreen : GameScreenBase, IMainViewportState + public sealed class GameScreen : GameScreenBase, IMainViewportState { public static readonly Vector2i ViewportSize = (EyeManager.PixelsPerMeter * 21, EyeManager.PixelsPerMeter * 15); diff --git a/Content.Client/Viewport/GameScreenBase.cs b/Content.Client/Viewport/GameScreenBase.cs index ccdf0d320a..3c92961824 100644 --- a/Content.Client/Viewport/GameScreenBase.cs +++ b/Content.Client/Viewport/GameScreenBase.cs @@ -21,6 +21,7 @@ namespace Content.Client.Viewport // OH GOD. // Ok actually it's fine. // Instantiated dynamically through the StateManager, Dependencies will be resolved. + [Virtual] public class GameScreenBase : State, IEntityEventSubscriber { [Dependency] private readonly IInputManager _inputManager = default!; diff --git a/Content.Client/Visualizer/GenericEnumVisualizer.cs b/Content.Client/Visualizer/GenericEnumVisualizer.cs index 29181d71da..95606ef675 100644 --- a/Content.Client/Visualizer/GenericEnumVisualizer.cs +++ b/Content.Client/Visualizer/GenericEnumVisualizer.cs @@ -13,7 +13,7 @@ using Robust.Shared.Serialization.Manager.Attributes; namespace Content.Client.Visualizer { [UsedImplicitly] - public class GenericEnumVisualizer : AppearanceVisualizer, ISerializationHooks + public sealed class GenericEnumVisualizer : AppearanceVisualizer, ISerializationHooks { public Enum Key { get; set; } = default!; diff --git a/Content.Client/Voting/UI/VoteCallMenu.xaml.cs b/Content.Client/Voting/UI/VoteCallMenu.xaml.cs index e3a144137e..eae01c6aff 100644 --- a/Content.Client/Voting/UI/VoteCallMenu.xaml.cs +++ b/Content.Client/Voting/UI/VoteCallMenu.xaml.cs @@ -17,7 +17,7 @@ using Robust.Shared.Timing; namespace Content.Client.Voting.UI { [GenerateTypedNameReferences] - public partial class VoteCallMenu : BaseWindow + public sealed partial class VoteCallMenu : BaseWindow { [Dependency] private readonly IClientConsoleHost _consoleHost = default!; [Dependency] private readonly IVoteManager _voteManager = default!; diff --git a/Content.Client/Voting/UI/VotePopup.xaml.cs b/Content.Client/Voting/UI/VotePopup.xaml.cs index 2d14ba0ca9..e82675eeba 100644 --- a/Content.Client/Voting/UI/VotePopup.xaml.cs +++ b/Content.Client/Voting/UI/VotePopup.xaml.cs @@ -12,7 +12,7 @@ using Robust.Shared.Timing; namespace Content.Client.Voting.UI { [GenerateTypedNameReferences] - public partial class VotePopup : Control + public sealed partial class VotePopup : Control { [Dependency] private readonly IGameTiming _gameTiming = default!; [Dependency] private readonly IVoteManager _voteManager = default!; diff --git a/Content.Client/Voting/VoteManager.cs b/Content.Client/Voting/VoteManager.cs index f4b58f2fbe..3f3ef9f5f0 100644 --- a/Content.Client/Voting/VoteManager.cs +++ b/Content.Client/Voting/VoteManager.cs @@ -220,7 +220,7 @@ namespace Content.Client.Voting } } - public class VoteEntry + public sealed class VoteEntry { public string Text { get; } public int Votes { get; set; } diff --git a/Content.Client/Wall/Components/ReinforcedWallComponent.cs b/Content.Client/Wall/Components/ReinforcedWallComponent.cs index 3e5dddfd60..c8673405d2 100644 --- a/Content.Client/Wall/Components/ReinforcedWallComponent.cs +++ b/Content.Client/Wall/Components/ReinforcedWallComponent.cs @@ -9,7 +9,7 @@ namespace Content.Client.Wall.Components { [RegisterComponent] [ComponentReference(typeof(IconSmoothComponent))] - public class ReinforcedWallComponent : IconSmoothComponent // whyyyyyyyyy + public sealed class ReinforcedWallComponent : IconSmoothComponent // whyyyyyyyyy { [ViewVariables(VVAccess.ReadWrite)] [DataField("reinforcedBase")] diff --git a/Content.Client/Wall/ReinforcedWallVisualizer.cs b/Content.Client/Wall/ReinforcedWallVisualizer.cs index 11810c3889..fe2435df7c 100644 --- a/Content.Client/Wall/ReinforcedWallVisualizer.cs +++ b/Content.Client/Wall/ReinforcedWallVisualizer.cs @@ -7,7 +7,7 @@ using Robust.Shared.IoC; namespace Content.Client.Wall { [UsedImplicitly] - public class ReinforcedWallVisualizer : AppearanceVisualizer + public sealed class ReinforcedWallVisualizer : AppearanceVisualizer { public override void OnChangeData(AppearanceComponent component) { diff --git a/Content.Client/Weapons/Melee/EnergySwordVisualizer.cs b/Content.Client/Weapons/Melee/EnergySwordVisualizer.cs index 323bbeaedd..ad6373fa73 100644 --- a/Content.Client/Weapons/Melee/EnergySwordVisualizer.cs +++ b/Content.Client/Weapons/Melee/EnergySwordVisualizer.cs @@ -7,7 +7,7 @@ using Robust.Shared.Maths; namespace Content.Client.Weapons.Melee; -public class EnergySwordVisualizer : AppearanceVisualizer +public sealed class EnergySwordVisualizer : AppearanceVisualizer { public override void OnChangeData(AppearanceComponent component) { diff --git a/Content.Client/Weapons/Ranged/Barrels/Components/ClientBoltActionBarrelComponent.cs b/Content.Client/Weapons/Ranged/Barrels/Components/ClientBoltActionBarrelComponent.cs index 870008da5f..f50754abb2 100644 --- a/Content.Client/Weapons/Ranged/Barrels/Components/ClientBoltActionBarrelComponent.cs +++ b/Content.Client/Weapons/Ranged/Barrels/Components/ClientBoltActionBarrelComponent.cs @@ -17,7 +17,7 @@ namespace Content.Client.Weapons.Ranged.Barrels.Components { [RegisterComponent] [NetworkedComponent()] - public class ClientBoltActionBarrelComponent : Component, IItemStatus + public sealed class ClientBoltActionBarrelComponent : Component, IItemStatus { private StatusControl? _statusControl; diff --git a/Content.Client/Weapons/Ranged/Barrels/Components/ClientMagazineBarrelComponent.cs b/Content.Client/Weapons/Ranged/Barrels/Components/ClientMagazineBarrelComponent.cs index 75692a9292..f11adce7b5 100644 --- a/Content.Client/Weapons/Ranged/Barrels/Components/ClientMagazineBarrelComponent.cs +++ b/Content.Client/Weapons/Ranged/Barrels/Components/ClientMagazineBarrelComponent.cs @@ -20,7 +20,7 @@ namespace Content.Client.Weapons.Ranged.Barrels.Components { [RegisterComponent] [NetworkedComponent()] - public class ClientMagazineBarrelComponent : Component, IItemStatus + public sealed class ClientMagazineBarrelComponent : Component, IItemStatus { private static readonly Animation AlarmAnimationSmg = new() { diff --git a/Content.Client/Weapons/Ranged/Barrels/Components/ClientPumpBarrelComponent.cs b/Content.Client/Weapons/Ranged/Barrels/Components/ClientPumpBarrelComponent.cs index 59f81526d1..5d103819f7 100644 --- a/Content.Client/Weapons/Ranged/Barrels/Components/ClientPumpBarrelComponent.cs +++ b/Content.Client/Weapons/Ranged/Barrels/Components/ClientPumpBarrelComponent.cs @@ -17,7 +17,7 @@ namespace Content.Client.Weapons.Ranged.Barrels.Components { [RegisterComponent] [NetworkedComponent()] - public class ClientPumpBarrelComponent : Component, IItemStatus + public sealed class ClientPumpBarrelComponent : Component, IItemStatus { private StatusControl? _statusControl; diff --git a/Content.Client/Weapons/Ranged/Barrels/Components/ClientRevolverBarrelComponent.cs b/Content.Client/Weapons/Ranged/Barrels/Components/ClientRevolverBarrelComponent.cs index f100ab1705..8ddd3999bc 100644 --- a/Content.Client/Weapons/Ranged/Barrels/Components/ClientRevolverBarrelComponent.cs +++ b/Content.Client/Weapons/Ranged/Barrels/Components/ClientRevolverBarrelComponent.cs @@ -15,7 +15,7 @@ namespace Content.Client.Weapons.Ranged.Barrels.Components { [RegisterComponent] [NetworkedComponent()] - public class ClientRevolverBarrelComponent : Component, IItemStatus + public sealed class ClientRevolverBarrelComponent : Component, IItemStatus { private StatusControl? _statusControl; diff --git a/Content.Client/Weapons/Ranged/RangedWeaponSystem.cs b/Content.Client/Weapons/Ranged/RangedWeaponSystem.cs index e980ff5758..7e0c27fa48 100644 --- a/Content.Client/Weapons/Ranged/RangedWeaponSystem.cs +++ b/Content.Client/Weapons/Ranged/RangedWeaponSystem.cs @@ -16,7 +16,7 @@ using Robust.Shared.Timing; namespace Content.Client.Weapons.Ranged { [UsedImplicitly] - public class RangedWeaponSystem : EntitySystem + public sealed class RangedWeaponSystem : EntitySystem { [Dependency] private readonly IPlayerManager _playerManager = default!; [Dependency] private readonly IEyeManager _eyeManager = default!; diff --git a/Content.Client/Wires/UI/WiresBoundUserInterface.cs b/Content.Client/Wires/UI/WiresBoundUserInterface.cs index 03112691c7..46412ae339 100644 --- a/Content.Client/Wires/UI/WiresBoundUserInterface.cs +++ b/Content.Client/Wires/UI/WiresBoundUserInterface.cs @@ -4,7 +4,7 @@ using static Content.Shared.Wires.SharedWiresComponent; namespace Content.Client.Wires.UI { - public class WiresBoundUserInterface : BoundUserInterface + public sealed class WiresBoundUserInterface : BoundUserInterface { private WiresMenu? _menu; diff --git a/Content.Client/Wires/UI/WiresMenu.cs b/Content.Client/Wires/UI/WiresMenu.cs index 3793739ce4..cb5f1646ff 100644 --- a/Content.Client/Wires/UI/WiresMenu.cs +++ b/Content.Client/Wires/UI/WiresMenu.cs @@ -19,7 +19,7 @@ using static Robust.Client.UserInterface.Controls.BoxContainer; namespace Content.Client.Wires.UI { - public class WiresMenu : BaseWindow + public sealed class WiresMenu : BaseWindow { [Dependency] private readonly IResourceCache _resourceCache = default!; diff --git a/Content.Client/Wires/Visualizers/WiresVisualizer.cs b/Content.Client/Wires/Visualizers/WiresVisualizer.cs index 52504a905f..dd8510ed8f 100644 --- a/Content.Client/Wires/Visualizers/WiresVisualizer.cs +++ b/Content.Client/Wires/Visualizers/WiresVisualizer.cs @@ -5,7 +5,7 @@ using static Content.Shared.Wires.SharedWiresComponent; namespace Content.Client.Wires.Visualizers { - public class WiresVisualizer : AppearanceVisualizer + public sealed class WiresVisualizer : AppearanceVisualizer { public override void OnChangeData(AppearanceComponent component) { diff --git a/Content.Client/Xenoarchaeology/XenoArtifacts/RandomArtifactVisualizer.cs b/Content.Client/Xenoarchaeology/XenoArtifacts/RandomArtifactVisualizer.cs index ba8484b784..9bbb56a851 100644 --- a/Content.Client/Xenoarchaeology/XenoArtifacts/RandomArtifactVisualizer.cs +++ b/Content.Client/Xenoarchaeology/XenoArtifacts/RandomArtifactVisualizer.cs @@ -5,7 +5,7 @@ using Robust.Shared.IoC; namespace Content.Client.Xenoarchaeology.XenoArtifacts; -public class RandomArtifactVisualizer : AppearanceVisualizer +public sealed class RandomArtifactVisualizer : AppearanceVisualizer { public override void OnChangeData(AppearanceComponent component) { diff --git a/Content.IntegrationTests/ContentIntegrationTestSetup.cs b/Content.IntegrationTests/ContentIntegrationTestSetup.cs index eea68fa0b7..b459fd480a 100644 --- a/Content.IntegrationTests/ContentIntegrationTestSetup.cs +++ b/Content.IntegrationTests/ContentIntegrationTestSetup.cs @@ -2,7 +2,7 @@ [SetUpFixture] // ReSharper disable once CheckNamespace -public class ContentIntegrationTestSetup +public sealed class ContentIntegrationTestSetup { [OneTimeTearDown] public void TearDown() diff --git a/Content.IntegrationTests/Tests/AI/BehaviorSetsTest.cs b/Content.IntegrationTests/Tests/AI/BehaviorSetsTest.cs index f0db8cc07b..a98b7f26a3 100644 --- a/Content.IntegrationTests/Tests/AI/BehaviorSetsTest.cs +++ b/Content.IntegrationTests/Tests/AI/BehaviorSetsTest.cs @@ -12,7 +12,7 @@ namespace Content.IntegrationTests.Tests.AI { [TestFixture] [TestOf(typeof(BehaviorSetPrototype))] - public class BehaviorSetsTest : ContentIntegrationTest + public sealed class BehaviorSetsTest : ContentIntegrationTest { [Test] public async Task TestBehaviorSets() diff --git a/Content.IntegrationTests/Tests/Access/AccessReaderTest.cs b/Content.IntegrationTests/Tests/Access/AccessReaderTest.cs index 674d93d165..e1275fa8ad 100644 --- a/Content.IntegrationTests/Tests/Access/AccessReaderTest.cs +++ b/Content.IntegrationTests/Tests/Access/AccessReaderTest.cs @@ -9,7 +9,7 @@ namespace Content.IntegrationTests.Tests.Access { [TestFixture] [TestOf(typeof(AccessReaderComponent))] - public class AccessReaderTest : ContentIntegrationTest + public sealed class AccessReaderTest : ContentIntegrationTest { [Test] public async Task TestTags() diff --git a/Content.IntegrationTests/Tests/Administration/Logs/AddTests.cs b/Content.IntegrationTests/Tests/Administration/Logs/AddTests.cs index 4127206c2a..3ee54af303 100644 --- a/Content.IntegrationTests/Tests/Administration/Logs/AddTests.cs +++ b/Content.IntegrationTests/Tests/Administration/Logs/AddTests.cs @@ -17,7 +17,7 @@ namespace Content.IntegrationTests.Tests.Administration.Logs; [TestFixture] [TestOf(typeof(AdminLogSystem))] -public class AddTests : ContentIntegrationTest +public sealed class AddTests : ContentIntegrationTest { [Test] public async Task AddAndGetSingleLog() diff --git a/Content.IntegrationTests/Tests/Administration/Logs/FilterTests.cs b/Content.IntegrationTests/Tests/Administration/Logs/FilterTests.cs index 7487a2ff15..538e19d54c 100644 --- a/Content.IntegrationTests/Tests/Administration/Logs/FilterTests.cs +++ b/Content.IntegrationTests/Tests/Administration/Logs/FilterTests.cs @@ -12,7 +12,7 @@ namespace Content.IntegrationTests.Tests.Administration.Logs; [TestFixture] [TestOf(typeof(AdminLogSystem))] -public class FilterTests : ContentIntegrationTest +public sealed class FilterTests : ContentIntegrationTest { [Test] [TestCase(DateOrder.Ascending)] diff --git a/Content.IntegrationTests/Tests/Administration/Logs/QueryTests.cs b/Content.IntegrationTests/Tests/Administration/Logs/QueryTests.cs index 522eedd3f8..5e5d4a5eb7 100644 --- a/Content.IntegrationTests/Tests/Administration/Logs/QueryTests.cs +++ b/Content.IntegrationTests/Tests/Administration/Logs/QueryTests.cs @@ -14,7 +14,7 @@ namespace Content.IntegrationTests.Tests.Administration.Logs; [TestFixture] [TestOf(typeof(AdminLogSystem))] -public class QueryTests : ContentIntegrationTest +public sealed class QueryTests : ContentIntegrationTest { [Test] public async Task QuerySingleLog() diff --git a/Content.IntegrationTests/Tests/Atmos/AlarmThresholdTest.cs b/Content.IntegrationTests/Tests/Atmos/AlarmThresholdTest.cs index 4b3aa95a9b..8390f2e5c9 100644 --- a/Content.IntegrationTests/Tests/Atmos/AlarmThresholdTest.cs +++ b/Content.IntegrationTests/Tests/Atmos/AlarmThresholdTest.cs @@ -8,7 +8,7 @@ namespace Content.IntegrationTests.Tests.Atmos { [TestFixture] [TestOf(typeof(AtmosAlarmThreshold))] - public class AlarmThresholdTest : ContentIntegrationTest + public sealed class AlarmThresholdTest : ContentIntegrationTest { private const string Prototypes = @" - type: alarmThreshold diff --git a/Content.IntegrationTests/Tests/Atmos/ConstantsTest.cs b/Content.IntegrationTests/Tests/Atmos/ConstantsTest.cs index c02ca700c1..2b984ead03 100644 --- a/Content.IntegrationTests/Tests/Atmos/ConstantsTest.cs +++ b/Content.IntegrationTests/Tests/Atmos/ConstantsTest.cs @@ -10,7 +10,7 @@ namespace Content.IntegrationTests.Tests.Atmos { [TestFixture] [TestOf(typeof(Atmospherics))] - public class ConstantsTest : ContentIntegrationTest + public sealed class ConstantsTest : ContentIntegrationTest { [Test] public async Task TotalGasesTest() diff --git a/Content.IntegrationTests/Tests/Atmos/GasMixtureTest.cs b/Content.IntegrationTests/Tests/Atmos/GasMixtureTest.cs index e3aa4617e9..666d306b45 100644 --- a/Content.IntegrationTests/Tests/Atmos/GasMixtureTest.cs +++ b/Content.IntegrationTests/Tests/Atmos/GasMixtureTest.cs @@ -9,7 +9,7 @@ namespace Content.IntegrationTests.Tests.Atmos { [TestFixture] [TestOf(typeof(GasMixture))] - public class GasMixtureTest : ContentIntegrationTest + public sealed class GasMixtureTest : ContentIntegrationTest { [Test] public async Task TestMerge() diff --git a/Content.IntegrationTests/Tests/Body/LegTest.cs b/Content.IntegrationTests/Tests/Body/LegTest.cs index b2b484315d..8b6462eac7 100644 --- a/Content.IntegrationTests/Tests/Body/LegTest.cs +++ b/Content.IntegrationTests/Tests/Body/LegTest.cs @@ -16,7 +16,7 @@ namespace Content.IntegrationTests.Tests.Body [TestFixture] [TestOf(typeof(SharedBodyComponent))] [TestOf(typeof(BodyComponent))] - public class LegTest : ContentIntegrationTest + public sealed class LegTest : ContentIntegrationTest { private const string Prototypes = @" - type: entity diff --git a/Content.IntegrationTests/Tests/Body/LungTest.cs b/Content.IntegrationTests/Tests/Body/LungTest.cs index e4abb8a332..69f8eed35c 100644 --- a/Content.IntegrationTests/Tests/Body/LungTest.cs +++ b/Content.IntegrationTests/Tests/Body/LungTest.cs @@ -16,7 +16,7 @@ namespace Content.IntegrationTests.Tests.Body { [TestFixture] [TestOf(typeof(LungSystem))] - public class LungTest : ContentIntegrationTest + public sealed class LungTest : ContentIntegrationTest { private const string Prototypes = @" - type: entity diff --git a/Content.IntegrationTests/Tests/Buckle/BuckleTest.cs b/Content.IntegrationTests/Tests/Buckle/BuckleTest.cs index 01b654bdf5..55a4ef2715 100644 --- a/Content.IntegrationTests/Tests/Buckle/BuckleTest.cs +++ b/Content.IntegrationTests/Tests/Buckle/BuckleTest.cs @@ -17,7 +17,7 @@ namespace Content.IntegrationTests.Tests.Buckle [TestFixture] [TestOf(typeof(BuckleComponent))] [TestOf(typeof(StrapComponent))] - public class BuckleTest : ContentIntegrationTest + public sealed class BuckleTest : ContentIntegrationTest { private const string BuckleDummyId = "BuckleDummy"; private const string StrapDummyId = "StrapDummy"; diff --git a/Content.IntegrationTests/Tests/Chemistry/FixedPoint2SerializationTest.cs b/Content.IntegrationTests/Tests/Chemistry/FixedPoint2SerializationTest.cs index f7e22823e8..2e9b769c51 100644 --- a/Content.IntegrationTests/Tests/Chemistry/FixedPoint2SerializationTest.cs +++ b/Content.IntegrationTests/Tests/Chemistry/FixedPoint2SerializationTest.cs @@ -10,7 +10,7 @@ using Robust.UnitTesting.Shared.Serialization; namespace Content.IntegrationTests.Tests.Chemistry { - public class FixedPoint2SerializationTest : SerializationTest + public sealed class FixedPoint2SerializationTest : SerializationTest { protected override Assembly[] Assemblies => new[] { @@ -37,7 +37,7 @@ namespace Content.IntegrationTests.Tests.Chemistry } [DataDefinition] - public class FixedPoint2TestDefinition + public sealed class FixedPoint2TestDefinition { [DataField("unit")] public FixedPoint2? Unit { get; set; } = FixedPoint2.New(5); } diff --git a/Content.IntegrationTests/Tests/Chemistry/TryAllReactionsTest.cs b/Content.IntegrationTests/Tests/Chemistry/TryAllReactionsTest.cs index d6032d7a89..510687ff31 100644 --- a/Content.IntegrationTests/Tests/Chemistry/TryAllReactionsTest.cs +++ b/Content.IntegrationTests/Tests/Chemistry/TryAllReactionsTest.cs @@ -14,7 +14,7 @@ namespace Content.IntegrationTests.Tests.Chemistry { [TestFixture] [TestOf(typeof(ReactionPrototype))] - public class TryAllReactionsTest : ContentIntegrationTest + public sealed class TryAllReactionsTest : ContentIntegrationTest { private const string Prototypes = @" - type: entity diff --git a/Content.IntegrationTests/Tests/Commands/PardonCommand.cs b/Content.IntegrationTests/Tests/Commands/PardonCommand.cs index cf86fcd0e6..651d92fdb4 100644 --- a/Content.IntegrationTests/Tests/Commands/PardonCommand.cs +++ b/Content.IntegrationTests/Tests/Commands/PardonCommand.cs @@ -11,7 +11,7 @@ namespace Content.IntegrationTests.Tests.Commands { [TestFixture] [TestOf(typeof(PardonCommand))] - public class PardonCommand : ContentIntegrationTest + public sealed class PardonCommand : ContentIntegrationTest { private static readonly TimeSpan MarginOfError = TimeSpan.FromMinutes(1); diff --git a/Content.IntegrationTests/Tests/Commands/RejuvenateTest.cs b/Content.IntegrationTests/Tests/Commands/RejuvenateTest.cs index cb35a38272..c915226608 100644 --- a/Content.IntegrationTests/Tests/Commands/RejuvenateTest.cs +++ b/Content.IntegrationTests/Tests/Commands/RejuvenateTest.cs @@ -14,7 +14,7 @@ namespace Content.IntegrationTests.Tests.Commands { [TestFixture] [TestOf(typeof(RejuvenateCommand))] - public class RejuvenateTest : ContentIntegrationTest + public sealed class RejuvenateTest : ContentIntegrationTest { private const string Prototypes = @" - type: entity diff --git a/Content.IntegrationTests/Tests/Commands/RestartRoundTest.cs b/Content.IntegrationTests/Tests/Commands/RestartRoundTest.cs index f482f8e1b7..bab8c48074 100644 --- a/Content.IntegrationTests/Tests/Commands/RestartRoundTest.cs +++ b/Content.IntegrationTests/Tests/Commands/RestartRoundTest.cs @@ -13,7 +13,7 @@ namespace Content.IntegrationTests.Tests.Commands { [TestFixture] [TestOf(typeof(RestartRoundNowCommand))] - public class RestartRoundNowTest : ContentIntegrationTest + public sealed class RestartRoundNowTest : ContentIntegrationTest { [Test] [TestCase(true)] diff --git a/Content.IntegrationTests/Tests/Construction/ConstructionActionValid.cs b/Content.IntegrationTests/Tests/Construction/ConstructionActionValid.cs index 9d3b66156b..af961f15be 100644 --- a/Content.IntegrationTests/Tests/Construction/ConstructionActionValid.cs +++ b/Content.IntegrationTests/Tests/Construction/ConstructionActionValid.cs @@ -9,7 +9,7 @@ using Robust.Shared.Prototypes; namespace Content.IntegrationTests.Tests.Construction { [TestFixture] - public class ConstructionActionValid : ContentIntegrationTest + public sealed class ConstructionActionValid : ContentIntegrationTest { private bool IsValid(IGraphAction action, IPrototypeManager protoMan, out string prototype) { diff --git a/Content.IntegrationTests/Tests/ContainerOcclusionTest.cs b/Content.IntegrationTests/Tests/ContainerOcclusionTest.cs index 21fa17d50d..c8d342f9e2 100644 --- a/Content.IntegrationTests/Tests/ContainerOcclusionTest.cs +++ b/Content.IntegrationTests/Tests/ContainerOcclusionTest.cs @@ -12,7 +12,7 @@ using Robust.Shared.Maths; namespace Content.IntegrationTests.Tests { - public class ContainerOcclusionTest : ContentIntegrationTest + public sealed class ContainerOcclusionTest : ContentIntegrationTest { private const string ExtraPrototypes = @" - type: entity diff --git a/Content.IntegrationTests/Tests/Damageable/DamageSpecifierTest.cs b/Content.IntegrationTests/Tests/Damageable/DamageSpecifierTest.cs index e4e664f592..55ee290875 100644 --- a/Content.IntegrationTests/Tests/Damageable/DamageSpecifierTest.cs +++ b/Content.IntegrationTests/Tests/Damageable/DamageSpecifierTest.cs @@ -7,7 +7,7 @@ namespace Content.IntegrationTests.Tests.Damageable; [TestFixture] [TestOf(typeof(DamageSpecifier))] -public class DamageSpecifierTest : ContentIntegrationTest +public sealed class DamageSpecifierTest : ContentIntegrationTest { [Test] public void TestDamageSpecifierOperations() diff --git a/Content.IntegrationTests/Tests/Damageable/DamageableTest.cs b/Content.IntegrationTests/Tests/Damageable/DamageableTest.cs index a254427e41..ca1b604716 100644 --- a/Content.IntegrationTests/Tests/Damageable/DamageableTest.cs +++ b/Content.IntegrationTests/Tests/Damageable/DamageableTest.cs @@ -14,7 +14,7 @@ namespace Content.IntegrationTests.Tests.Damageable [TestFixture] [TestOf(typeof(DamageableComponent))] [TestOf(typeof(DamageableSystem))] - public class DamageableTest : ContentIntegrationTest + public sealed class DamageableTest : ContentIntegrationTest { private const string Prototypes = @" # Define some damage groups diff --git a/Content.IntegrationTests/Tests/DeleteInventoryTest.cs b/Content.IntegrationTests/Tests/DeleteInventoryTest.cs index 68898d6757..07f6f2bf14 100644 --- a/Content.IntegrationTests/Tests/DeleteInventoryTest.cs +++ b/Content.IntegrationTests/Tests/DeleteInventoryTest.cs @@ -12,7 +12,7 @@ using Robust.Shared.Map; namespace Content.IntegrationTests.Tests { [TestFixture] - public class DeleteInventoryTest : ContentIntegrationTest + public sealed class DeleteInventoryTest : ContentIntegrationTest { // Test that when deleting an entity with an InventoryComponent, // any equipped items also get deleted. diff --git a/Content.IntegrationTests/Tests/Destructible/DestructibleDamageGroupTest.cs b/Content.IntegrationTests/Tests/Destructible/DestructibleDamageGroupTest.cs index 94bd41862b..3189726b81 100644 --- a/Content.IntegrationTests/Tests/Destructible/DestructibleDamageGroupTest.cs +++ b/Content.IntegrationTests/Tests/Destructible/DestructibleDamageGroupTest.cs @@ -15,7 +15,7 @@ namespace Content.IntegrationTests.Tests.Destructible [TestFixture] [TestOf(typeof(DamageGroupTrigger))] [TestOf(typeof(AndTrigger))] - public class DestructibleDamageGroupTest : ContentIntegrationTest + public sealed class DestructibleDamageGroupTest : ContentIntegrationTest { [Test] public async Task AndTest() diff --git a/Content.IntegrationTests/Tests/Destructible/DestructibleDamageTypeTest.cs b/Content.IntegrationTests/Tests/Destructible/DestructibleDamageTypeTest.cs index 401d6a3030..612021860f 100644 --- a/Content.IntegrationTests/Tests/Destructible/DestructibleDamageTypeTest.cs +++ b/Content.IntegrationTests/Tests/Destructible/DestructibleDamageTypeTest.cs @@ -14,7 +14,7 @@ namespace Content.IntegrationTests.Tests.Destructible [TestFixture] [TestOf(typeof(DamageTypeTrigger))] [TestOf(typeof(AndTrigger))] - public class DestructibleDamageTypeTest : ContentIntegrationTest + public sealed class DestructibleDamageTypeTest : ContentIntegrationTest { [Test] public async Task Test() diff --git a/Content.IntegrationTests/Tests/Destructible/DestructibleDestructionTest.cs b/Content.IntegrationTests/Tests/Destructible/DestructibleDestructionTest.cs index 85132fbd56..e924272a4d 100644 --- a/Content.IntegrationTests/Tests/Destructible/DestructibleDestructionTest.cs +++ b/Content.IntegrationTests/Tests/Destructible/DestructibleDestructionTest.cs @@ -13,7 +13,7 @@ using static Content.IntegrationTests.Tests.Destructible.DestructibleTestPrototy namespace Content.IntegrationTests.Tests.Destructible { - public class DestructibleDestructionTest : ContentIntegrationTest + public sealed class DestructibleDestructionTest : ContentIntegrationTest { [Test] public async Task Test() diff --git a/Content.IntegrationTests/Tests/Destructible/DestructibleThresholdActivationTest.cs b/Content.IntegrationTests/Tests/Destructible/DestructibleThresholdActivationTest.cs index 547275ff66..376464b625 100644 --- a/Content.IntegrationTests/Tests/Destructible/DestructibleThresholdActivationTest.cs +++ b/Content.IntegrationTests/Tests/Destructible/DestructibleThresholdActivationTest.cs @@ -19,7 +19,7 @@ namespace Content.IntegrationTests.Tests.Destructible [TestFixture] [TestOf(typeof(DestructibleComponent))] [TestOf(typeof(DamageThreshold))] - public class DestructibleThresholdActivationTest : ContentIntegrationTest + public sealed class DestructibleThresholdActivationTest : ContentIntegrationTest { [Test] public async Task Test() diff --git a/Content.IntegrationTests/Tests/Destructible/TestDestructibleListenerSystem.cs b/Content.IntegrationTests/Tests/Destructible/TestDestructibleListenerSystem.cs index 1d9de70709..a4c6302f2f 100644 --- a/Content.IntegrationTests/Tests/Destructible/TestDestructibleListenerSystem.cs +++ b/Content.IntegrationTests/Tests/Destructible/TestDestructibleListenerSystem.cs @@ -9,7 +9,7 @@ namespace Content.IntegrationTests.Tests.Destructible /// This is just a system for testing destructible thresholds. Whenever any threshold is reached, this will add that /// threshold to a list for checking during testing. /// - public class TestDestructibleListenerSystem : EntitySystem + public sealed class TestDestructibleListenerSystem : EntitySystem { public readonly List ThresholdsReached = new(); diff --git a/Content.IntegrationTests/Tests/DeviceNetwork/DeviceNetworkTest.cs b/Content.IntegrationTests/Tests/DeviceNetwork/DeviceNetworkTest.cs index c76392ce85..bacbc0b025 100644 --- a/Content.IntegrationTests/Tests/DeviceNetwork/DeviceNetworkTest.cs +++ b/Content.IntegrationTests/Tests/DeviceNetwork/DeviceNetworkTest.cs @@ -13,7 +13,7 @@ namespace Content.IntegrationTests.Tests.DeviceNetwork [TestOf(typeof(DeviceNetworkComponent))] [TestOf(typeof(WiredNetworkComponent))] [TestOf(typeof(WirelessNetworkComponent))] - public class DeviceNetworkTest : ContentIntegrationTest + public sealed class DeviceNetworkTest : ContentIntegrationTest { private const string Prototypes = @" - type: entity diff --git a/Content.IntegrationTests/Tests/DeviceNetwork/DeviceNetworkTestSystem.cs b/Content.IntegrationTests/Tests/DeviceNetwork/DeviceNetworkTestSystem.cs index 369a63ebfb..7345c5c659 100644 --- a/Content.IntegrationTests/Tests/DeviceNetwork/DeviceNetworkTestSystem.cs +++ b/Content.IntegrationTests/Tests/DeviceNetwork/DeviceNetworkTestSystem.cs @@ -8,7 +8,7 @@ using Robust.Shared.Reflection; namespace Content.IntegrationTests.Tests.DeviceNetwork { [Reflect(false)] - public class DeviceNetworkTestSystem : EntitySystem + public sealed class DeviceNetworkTestSystem : EntitySystem { public NetworkPayload LastPayload = default; diff --git a/Content.IntegrationTests/Tests/Disposal/DisposalUnitTest.cs b/Content.IntegrationTests/Tests/Disposal/DisposalUnitTest.cs index e1779682ae..00defdebc2 100644 --- a/Content.IntegrationTests/Tests/Disposal/DisposalUnitTest.cs +++ b/Content.IntegrationTests/Tests/Disposal/DisposalUnitTest.cs @@ -18,10 +18,10 @@ namespace Content.IntegrationTests.Tests.Disposal [TestOf(typeof(DisposalHolderComponent))] [TestOf(typeof(DisposalEntryComponent))] [TestOf(typeof(DisposalUnitComponent))] - public class DisposalUnitTest : ContentIntegrationTest + public sealed class DisposalUnitTest : ContentIntegrationTest { [Reflect(false)] - private class DisposalUnitTestSystem : EntitySystem + private sealed class DisposalUnitTestSystem : EntitySystem { public override void Initialize() { diff --git a/Content.IntegrationTests/Tests/DoAfter/DoAfterServerTest.cs b/Content.IntegrationTests/Tests/DoAfter/DoAfterServerTest.cs index b0c0d021af..c1a4c76955 100644 --- a/Content.IntegrationTests/Tests/DoAfter/DoAfterServerTest.cs +++ b/Content.IntegrationTests/Tests/DoAfter/DoAfterServerTest.cs @@ -11,7 +11,7 @@ namespace Content.IntegrationTests.Tests.DoAfter { [TestFixture] [TestOf(typeof(DoAfterComponent))] - public class DoAfterServerTest : ContentIntegrationTest + public sealed class DoAfterServerTest : ContentIntegrationTest { private const string Prototypes = @" - type: entity diff --git a/Content.IntegrationTests/Tests/Doors/AirlockTest.cs b/Content.IntegrationTests/Tests/Doors/AirlockTest.cs index 7f3a50e5b7..0edfa925d5 100644 --- a/Content.IntegrationTests/Tests/Doors/AirlockTest.cs +++ b/Content.IntegrationTests/Tests/Doors/AirlockTest.cs @@ -12,7 +12,7 @@ namespace Content.IntegrationTests.Tests.Doors { [TestFixture] [TestOf(typeof(AirlockComponent))] - public class AirlockTest : ContentIntegrationTest + public sealed class AirlockTest : ContentIntegrationTest { private const string Prototypes = @" - type: entity diff --git a/Content.IntegrationTests/Tests/DummyIconTest.cs b/Content.IntegrationTests/Tests/DummyIconTest.cs index 2d9c927904..8cb1e2b6ec 100644 --- a/Content.IntegrationTests/Tests/DummyIconTest.cs +++ b/Content.IntegrationTests/Tests/DummyIconTest.cs @@ -10,7 +10,7 @@ using Robust.Shared.Prototypes; namespace Content.IntegrationTests.Tests { [TestFixture] - public class DummyIconTest : ContentIntegrationTest + public sealed class DummyIconTest : ContentIntegrationTest { [Test] public async Task Test() diff --git a/Content.IntegrationTests/Tests/EntityTest.cs b/Content.IntegrationTests/Tests/EntityTest.cs index b948bddc54..4a58af2957 100644 --- a/Content.IntegrationTests/Tests/EntityTest.cs +++ b/Content.IntegrationTests/Tests/EntityTest.cs @@ -16,7 +16,7 @@ namespace Content.IntegrationTests.Tests { [TestFixture] [TestOf(typeof(EntityUid))] - public class EntityTest : ContentIntegrationTest + public sealed class EntityTest : ContentIntegrationTest { [Test] public async Task SpawnTest() diff --git a/Content.IntegrationTests/Tests/Fluids/PuddleTest.cs b/Content.IntegrationTests/Tests/Fluids/PuddleTest.cs index 98a1ec5776..fed0939d53 100644 --- a/Content.IntegrationTests/Tests/Fluids/PuddleTest.cs +++ b/Content.IntegrationTests/Tests/Fluids/PuddleTest.cs @@ -15,7 +15,7 @@ namespace Content.IntegrationTests.Tests.Fluids { [TestFixture] [TestOf(typeof(PuddleComponent))] - public class PuddleTest : ContentIntegrationTest + public sealed class PuddleTest : ContentIntegrationTest { [Test] public async Task TilePuddleTest() diff --git a/Content.IntegrationTests/Tests/GameObjects/Components/ActionBlocking/HandCuffTest.cs b/Content.IntegrationTests/Tests/GameObjects/Components/ActionBlocking/HandCuffTest.cs index 0826619632..fe196ef9a6 100644 --- a/Content.IntegrationTests/Tests/GameObjects/Components/ActionBlocking/HandCuffTest.cs +++ b/Content.IntegrationTests/Tests/GameObjects/Components/ActionBlocking/HandCuffTest.cs @@ -16,7 +16,7 @@ namespace Content.IntegrationTests.Tests.GameObjects.Components.ActionBlocking [TestFixture] [TestOf(typeof(CuffableComponent))] [TestOf(typeof(HandcuffComponent))] - public class HandCuffTest : ContentIntegrationTest + public sealed class HandCuffTest : ContentIntegrationTest { private const string Prototypes = @" - type: entity diff --git a/Content.IntegrationTests/Tests/GameObjects/Components/EntityPrototypeComponentsTest.cs b/Content.IntegrationTests/Tests/GameObjects/Components/EntityPrototypeComponentsTest.cs index 65eb9542db..0139e3a95c 100644 --- a/Content.IntegrationTests/Tests/GameObjects/Components/EntityPrototypeComponentsTest.cs +++ b/Content.IntegrationTests/Tests/GameObjects/Components/EntityPrototypeComponentsTest.cs @@ -14,7 +14,7 @@ namespace Content.IntegrationTests.Tests.GameObjects.Components [TestFixture] [TestOf(typeof(Client.Entry.IgnoredComponents))] [TestOf(typeof(Server.Entry.IgnoredComponents))] - public class EntityPrototypeComponentsTest : ContentIntegrationTest + public sealed class EntityPrototypeComponentsTest : ContentIntegrationTest { [Test] public async Task PrototypesHaveKnownComponents() diff --git a/Content.IntegrationTests/Tests/GameObjects/Components/Mobs/ActionsComponentTests.cs b/Content.IntegrationTests/Tests/GameObjects/Components/Mobs/ActionsComponentTests.cs index 61f92b49ab..34801d65a9 100644 --- a/Content.IntegrationTests/Tests/GameObjects/Components/Mobs/ActionsComponentTests.cs +++ b/Content.IntegrationTests/Tests/GameObjects/Components/Mobs/ActionsComponentTests.cs @@ -27,7 +27,7 @@ namespace Content.IntegrationTests.Tests.GameObjects.Components.Mobs [TestOf(typeof(ClientActionsComponent))] [TestOf(typeof(ServerActionsComponent))] [TestOf(typeof(ItemActionsComponent))] - public class ActionsComponentTests : ContentIntegrationTest + public sealed class ActionsComponentTests : ContentIntegrationTest { const string Prototypes = @" - type: entity diff --git a/Content.IntegrationTests/Tests/GameObjects/Components/Mobs/AlertsComponentTests.cs b/Content.IntegrationTests/Tests/GameObjects/Components/Mobs/AlertsComponentTests.cs index 96c0d67c9d..4a44baabe9 100644 --- a/Content.IntegrationTests/Tests/GameObjects/Components/Mobs/AlertsComponentTests.cs +++ b/Content.IntegrationTests/Tests/GameObjects/Components/Mobs/AlertsComponentTests.cs @@ -12,7 +12,7 @@ namespace Content.IntegrationTests.Tests.GameObjects.Components.Mobs { [TestFixture] [TestOf(typeof(AlertsComponent))] - public class AlertsComponentTests : ContentIntegrationTest + public sealed class AlertsComponentTests : ContentIntegrationTest { [Test] public async Task AlertsTest() diff --git a/Content.IntegrationTests/Tests/GameObjects/Components/Movement/ClimbUnitTest.cs b/Content.IntegrationTests/Tests/GameObjects/Components/Movement/ClimbUnitTest.cs index d70703b6bc..2b0df4f8b2 100644 --- a/Content.IntegrationTests/Tests/GameObjects/Components/Movement/ClimbUnitTest.cs +++ b/Content.IntegrationTests/Tests/GameObjects/Components/Movement/ClimbUnitTest.cs @@ -13,7 +13,7 @@ namespace Content.IntegrationTests.Tests.GameObjects.Components.Movement [TestFixture] [TestOf(typeof(ClimbableComponent))] [TestOf(typeof(ClimbingComponent))] - public class ClimbUnitTest : ContentIntegrationTest + public sealed class ClimbUnitTest : ContentIntegrationTest { private const string Prototypes = @" - type: entity diff --git a/Content.IntegrationTests/Tests/GameRules/RuleMaxTimeRestartTest.cs b/Content.IntegrationTests/Tests/GameRules/RuleMaxTimeRestartTest.cs index 8787de8502..b564749c23 100644 --- a/Content.IntegrationTests/Tests/GameRules/RuleMaxTimeRestartTest.cs +++ b/Content.IntegrationTests/Tests/GameRules/RuleMaxTimeRestartTest.cs @@ -12,7 +12,7 @@ namespace Content.IntegrationTests.Tests.GameRules { [TestFixture] [TestOf(typeof(MaxTimeRestartRuleSystem))] - public class RuleMaxTimeRestartTest : ContentIntegrationTest + public sealed class RuleMaxTimeRestartTest : ContentIntegrationTest { [Test] public async Task RestartTest() diff --git a/Content.IntegrationTests/Tests/Gravity/WeightlessStatusTests.cs b/Content.IntegrationTests/Tests/Gravity/WeightlessStatusTests.cs index 1e5b8b6335..f15ce21fcf 100644 --- a/Content.IntegrationTests/Tests/Gravity/WeightlessStatusTests.cs +++ b/Content.IntegrationTests/Tests/Gravity/WeightlessStatusTests.cs @@ -13,7 +13,7 @@ namespace Content.IntegrationTests.Tests.Gravity [TestFixture] [TestOf(typeof(WeightlessSystem))] [TestOf(typeof(GravityGeneratorComponent))] - public class WeightlessStatusTests : ContentIntegrationTest + public sealed class WeightlessStatusTests : ContentIntegrationTest { private const string Prototypes = @" - type: entity diff --git a/Content.IntegrationTests/Tests/GravityGridTest.cs b/Content.IntegrationTests/Tests/GravityGridTest.cs index e9319200fc..3ad799beae 100644 --- a/Content.IntegrationTests/Tests/GravityGridTest.cs +++ b/Content.IntegrationTests/Tests/GravityGridTest.cs @@ -14,7 +14,7 @@ namespace Content.IntegrationTests.Tests /// making sure that gravity is applied to the correct grids. [TestFixture] [TestOf(typeof(GravityGeneratorComponent))] - public class GravityGridTest : ContentIntegrationTest + public sealed class GravityGridTest : ContentIntegrationTest { private const string Prototypes = @" - type: entity diff --git a/Content.IntegrationTests/Tests/HumanInventoryUniformSlotsTest.cs b/Content.IntegrationTests/Tests/HumanInventoryUniformSlotsTest.cs index 973d8e4a07..7e7ad5071c 100644 --- a/Content.IntegrationTests/Tests/HumanInventoryUniformSlotsTest.cs +++ b/Content.IntegrationTests/Tests/HumanInventoryUniformSlotsTest.cs @@ -12,7 +12,7 @@ namespace Content.IntegrationTests.Tests // i.e. the interaction between uniforms and the pocket/ID slots. // and also how big items don't fit in pockets. [TestFixture] - public class HumanInventoryUniformSlotsTest : ContentIntegrationTest + public sealed class HumanInventoryUniformSlotsTest : ContentIntegrationTest { private const string Prototypes = @" - type: entity diff --git a/Content.IntegrationTests/Tests/Interaction/Click/InteractionSystemTests.cs b/Content.IntegrationTests/Tests/Interaction/Click/InteractionSystemTests.cs index 90c2ece76d..d88820d4d1 100644 --- a/Content.IntegrationTests/Tests/Interaction/Click/InteractionSystemTests.cs +++ b/Content.IntegrationTests/Tests/Interaction/Click/InteractionSystemTests.cs @@ -20,7 +20,7 @@ namespace Content.IntegrationTests.Tests.Interaction.Click { [TestFixture] [TestOf(typeof(InteractionSystem))] - public class InteractionSystemTests : ContentIntegrationTest + public sealed class InteractionSystemTests : ContentIntegrationTest { const string PROTOTYPES = @" - type: entity @@ -408,7 +408,7 @@ namespace Content.IntegrationTests.Tests.Interaction.Click } [Reflect(false)] - private class TestInteractionSystem : EntitySystem + private sealed class TestInteractionSystem : EntitySystem { public ComponentEventHandler? AttackEvent; public EntityEventHandler? InteractUsingEvent; diff --git a/Content.IntegrationTests/Tests/Interaction/InRangeUnobstructed.cs b/Content.IntegrationTests/Tests/Interaction/InRangeUnobstructed.cs index f09b7f2e78..c106b1a57f 100644 --- a/Content.IntegrationTests/Tests/Interaction/InRangeUnobstructed.cs +++ b/Content.IntegrationTests/Tests/Interaction/InRangeUnobstructed.cs @@ -15,7 +15,7 @@ namespace Content.IntegrationTests.Tests.Interaction [TestOf(typeof(SharedInteractionSystem))] [TestOf(typeof(SharedUnobstructedExtensions))] [TestOf(typeof(UnobstructedExtensions))] - public class InRangeUnobstructed : ContentIntegrationTest + public sealed class InRangeUnobstructed : ContentIntegrationTest { private const string HumanId = "MobHumanBase"; diff --git a/Content.IntegrationTests/Tests/InventoryHelpersTest.cs b/Content.IntegrationTests/Tests/InventoryHelpersTest.cs index 25d0d58f5d..757587051f 100644 --- a/Content.IntegrationTests/Tests/InventoryHelpersTest.cs +++ b/Content.IntegrationTests/Tests/InventoryHelpersTest.cs @@ -11,7 +11,7 @@ using Robust.Shared.Map; namespace Content.IntegrationTests.Tests { [TestFixture] - public class InventoryHelpersTest : ContentIntegrationTest + public sealed class InventoryHelpersTest : ContentIntegrationTest { private const string Prototypes = @" - type: entity diff --git a/Content.IntegrationTests/Tests/Lobby/CharacterCreationTest.cs b/Content.IntegrationTests/Tests/Lobby/CharacterCreationTest.cs index 2eb08de3ee..991548b372 100644 --- a/Content.IntegrationTests/Tests/Lobby/CharacterCreationTest.cs +++ b/Content.IntegrationTests/Tests/Lobby/CharacterCreationTest.cs @@ -17,7 +17,7 @@ namespace Content.IntegrationTests.Tests.Lobby [TestFixture] [TestOf(typeof(ClientPreferencesManager))] [TestOf(typeof(ServerPreferencesManager))] - public class CharacterCreationTest : ContentIntegrationTest + public sealed class CharacterCreationTest : ContentIntegrationTest { [Test] public async Task CreateDeleteCreateTest() diff --git a/Content.IntegrationTests/Tests/MindEntityDeletionTest.cs b/Content.IntegrationTests/Tests/MindEntityDeletionTest.cs index fea9d938f9..c4c3ad3e55 100644 --- a/Content.IntegrationTests/Tests/MindEntityDeletionTest.cs +++ b/Content.IntegrationTests/Tests/MindEntityDeletionTest.cs @@ -13,7 +13,7 @@ namespace Content.IntegrationTests.Tests { // Tests various scenarios of deleting the entity that a player's mind is connected to. [TestFixture] - public class MindEntityDeletionTest : ContentIntegrationTest + public sealed class MindEntityDeletionTest : ContentIntegrationTest { [Test] public async Task TestDeleteVisiting() diff --git a/Content.IntegrationTests/Tests/Networking/ConnectTest.cs b/Content.IntegrationTests/Tests/Networking/ConnectTest.cs index ced087aa57..7f83529bcb 100644 --- a/Content.IntegrationTests/Tests/Networking/ConnectTest.cs +++ b/Content.IntegrationTests/Tests/Networking/ConnectTest.cs @@ -11,7 +11,7 @@ using Robust.Shared.Network; namespace Content.IntegrationTests.Tests.Networking { [TestFixture] - public class ConnectTest : ContentIntegrationTest + public sealed class ConnectTest : ContentIntegrationTest { [Test] public async Task TestConnect() diff --git a/Content.IntegrationTests/Tests/Networking/NetworkIdsMatchTest.cs b/Content.IntegrationTests/Tests/Networking/NetworkIdsMatchTest.cs index 3d0a541202..78efc62912 100644 --- a/Content.IntegrationTests/Tests/Networking/NetworkIdsMatchTest.cs +++ b/Content.IntegrationTests/Tests/Networking/NetworkIdsMatchTest.cs @@ -11,7 +11,7 @@ using Robust.Shared.Network; namespace Content.IntegrationTests.Tests.Networking { [TestFixture] - class NetworkIdsMatchTest : ContentIntegrationTest + sealed class NetworkIdsMatchTest : ContentIntegrationTest { [Test] public async Task TestConnect() @@ -20,7 +20,7 @@ namespace Content.IntegrationTests.Tests.Networking var server = StartServer(); await ConnectNetworking(client, server); - + var clientCompFactory = client.ResolveDependency(); var serverCompFactory = server.ResolveDependency(); diff --git a/Content.IntegrationTests/Tests/Networking/ReconnectTest.cs b/Content.IntegrationTests/Tests/Networking/ReconnectTest.cs index 67fc547885..9e3974a68b 100644 --- a/Content.IntegrationTests/Tests/Networking/ReconnectTest.cs +++ b/Content.IntegrationTests/Tests/Networking/ReconnectTest.cs @@ -7,7 +7,7 @@ using Robust.Shared.Network; namespace Content.IntegrationTests.Tests.Networking { [TestFixture] - public class ReconnectTest : ContentIntegrationTest + public sealed class ReconnectTest : ContentIntegrationTest { [Test] public async Task Test() diff --git a/Content.IntegrationTests/Tests/Networking/SimplePredictReconcileTest.cs b/Content.IntegrationTests/Tests/Networking/SimplePredictReconcileTest.cs index e913abf597..c3400385a9 100644 --- a/Content.IntegrationTests/Tests/Networking/SimplePredictReconcileTest.cs +++ b/Content.IntegrationTests/Tests/Networking/SimplePredictReconcileTest.cs @@ -30,7 +30,7 @@ namespace Content.IntegrationTests.Tests.Networking // the tick where the server *should* have, but did not, acknowledge the state change. // Finally, we run two events inside the prediction area to ensure reconciling does for incremental stuff. [TestFixture] - public class SimplePredictReconcileTest : ContentIntegrationTest + public sealed class SimplePredictReconcileTest : ContentIntegrationTest { [Test] public async Task Test() diff --git a/Content.IntegrationTests/Tests/PDA/PDAExtensionsTests.cs b/Content.IntegrationTests/Tests/PDA/PDAExtensionsTests.cs index 41d058c87c..6aa051b59b 100644 --- a/Content.IntegrationTests/Tests/PDA/PDAExtensionsTests.cs +++ b/Content.IntegrationTests/Tests/PDA/PDAExtensionsTests.cs @@ -13,7 +13,7 @@ using Robust.Shared.GameObjects; namespace Content.IntegrationTests.Tests.PDA { - public class PDAExtensionsTests : ContentIntegrationTest + public sealed class PDAExtensionsTests : ContentIntegrationTest { private const string IdCardDummy = "DummyIdCard"; private const string PdaDummy = "DummyPda"; diff --git a/Content.IntegrationTests/Tests/Pathfinding/PathfindingChunkTest.cs b/Content.IntegrationTests/Tests/Pathfinding/PathfindingChunkTest.cs index 187d37f2c9..09a2247578 100644 --- a/Content.IntegrationTests/Tests/Pathfinding/PathfindingChunkTest.cs +++ b/Content.IntegrationTests/Tests/Pathfinding/PathfindingChunkTest.cs @@ -11,7 +11,7 @@ namespace Content.IntegrationTests.Tests.Pathfinding { [TestFixture] [TestOf(typeof(PathfindingChunk))] - public class PathfindingChunkTest : ContentIntegrationTest + public sealed class PathfindingChunkTest : ContentIntegrationTest { [Test] public async Task Test() diff --git a/Content.IntegrationTests/Tests/PostMapInitTest.cs b/Content.IntegrationTests/Tests/PostMapInitTest.cs index 3a1aa163f8..a4ff5306e7 100644 --- a/Content.IntegrationTests/Tests/PostMapInitTest.cs +++ b/Content.IntegrationTests/Tests/PostMapInitTest.cs @@ -11,7 +11,7 @@ using YamlDotNet.RepresentationModel; namespace Content.IntegrationTests.Tests { [TestFixture] - public class PostMapInitTest : ContentIntegrationTest + public sealed class PostMapInitTest : ContentIntegrationTest { public const bool SkipTestMaps = true; public const string TestMapsPath = "/Maps/Test/"; diff --git a/Content.IntegrationTests/Tests/Power/PowerTest.cs b/Content.IntegrationTests/Tests/Power/PowerTest.cs index e171b2aca3..492217724d 100644 --- a/Content.IntegrationTests/Tests/Power/PowerTest.cs +++ b/Content.IntegrationTests/Tests/Power/PowerTest.cs @@ -17,7 +17,7 @@ namespace Content.IntegrationTests.Tests.Power { [Parallelizable(ParallelScope.Fixtures)] [TestFixture] - public class PowerTest : ContentIntegrationTest + public sealed class PowerTest : ContentIntegrationTest { private const string Prototypes = @" - type: entity diff --git a/Content.IntegrationTests/Tests/ResettingEntitySystemTests.cs b/Content.IntegrationTests/Tests/ResettingEntitySystemTests.cs index 58af6d2bc4..de751d843e 100644 --- a/Content.IntegrationTests/Tests/ResettingEntitySystemTests.cs +++ b/Content.IntegrationTests/Tests/ResettingEntitySystemTests.cs @@ -10,10 +10,10 @@ namespace Content.IntegrationTests.Tests { [TestFixture] [TestOf(typeof(RoundRestartCleanupEvent))] - public class ResettingEntitySystemTests : ContentIntegrationTest + public sealed class ResettingEntitySystemTests : ContentIntegrationTest { [Reflect(false)] - private class TestRoundRestartCleanupEvent : EntitySystem + private sealed class TestRoundRestartCleanupEvent : EntitySystem { public bool HasBeenReset { get; set; } diff --git a/Content.IntegrationTests/Tests/RestartRoundTest.cs b/Content.IntegrationTests/Tests/RestartRoundTest.cs index 6c346677b3..c15e82104d 100644 --- a/Content.IntegrationTests/Tests/RestartRoundTest.cs +++ b/Content.IntegrationTests/Tests/RestartRoundTest.cs @@ -7,7 +7,7 @@ using Robust.Shared.IoC; namespace Content.IntegrationTests.Tests { [TestFixture] - public class RestartRoundTest : ContentIntegrationTest + public sealed class RestartRoundTest : ContentIntegrationTest { [Test] public async Task Test() diff --git a/Content.IntegrationTests/Tests/RoundEndTest.cs b/Content.IntegrationTests/Tests/RoundEndTest.cs index 1e0501b2d8..18a1ad271c 100644 --- a/Content.IntegrationTests/Tests/RoundEndTest.cs +++ b/Content.IntegrationTests/Tests/RoundEndTest.cs @@ -12,7 +12,7 @@ using Robust.Shared.IoC; namespace Content.IntegrationTests.Tests { [TestFixture] - public class RoundEndTest : ContentIntegrationTest, IEntityEventSubscriber + public sealed class RoundEndTest : ContentIntegrationTest, IEntityEventSubscriber { [Test] public async Task Test() @@ -46,7 +46,7 @@ namespace Content.IntegrationTests.Tests Assert.That(roundEndSystem.ExpectedCountdownEnd, Is.Not.Null, "Shuttle was called, but countdown time was not set"); Assert.That(roundEndSystem.CanCall(), Is.False, "Started the shuttle, but didn't have to wait cooldown to press cancel button"); // Check that we can't recall the shuttle yet - roundEndSystem.CancelRoundEndCountdown(); + roundEndSystem.CancelRoundEndCountdown(); Assert.That(roundEndSystem.ExpectedCountdownEnd, Is.Not.Null, "Shuttle was cancelled, even though the button was on cooldown"); }); diff --git a/Content.IntegrationTests/Tests/SaveLoadMapTest.cs b/Content.IntegrationTests/Tests/SaveLoadMapTest.cs index e4d2096ce1..977002168c 100644 --- a/Content.IntegrationTests/Tests/SaveLoadMapTest.cs +++ b/Content.IntegrationTests/Tests/SaveLoadMapTest.cs @@ -11,7 +11,7 @@ using Robust.Shared.Utility; namespace Content.IntegrationTests.Tests { [TestFixture] - class SaveLoadMapTest : ContentIntegrationTest + sealed class SaveLoadMapTest : ContentIntegrationTest { [Test] public async Task SaveLoadMultiGridMap() diff --git a/Content.IntegrationTests/Tests/SaveLoadSaveTest.cs b/Content.IntegrationTests/Tests/SaveLoadSaveTest.cs index b2c5a6f791..48a3fad9b9 100644 --- a/Content.IntegrationTests/Tests/SaveLoadSaveTest.cs +++ b/Content.IntegrationTests/Tests/SaveLoadSaveTest.cs @@ -14,7 +14,7 @@ namespace Content.IntegrationTests.Tests /// Tests that the /// [TestFixture] - public class SaveLoadSaveTest : ContentIntegrationTest + public sealed class SaveLoadSaveTest : ContentIntegrationTest { [Test] public async Task SaveLoadSave() diff --git a/Content.IntegrationTests/Tests/ShuttleTest.cs b/Content.IntegrationTests/Tests/ShuttleTest.cs index fc59763bd1..330d896d58 100644 --- a/Content.IntegrationTests/Tests/ShuttleTest.cs +++ b/Content.IntegrationTests/Tests/ShuttleTest.cs @@ -10,7 +10,7 @@ using Robust.Shared.Physics; namespace Content.IntegrationTests.Tests { [TestFixture] - public class ShuttleTest : ContentIntegrationTest + public sealed class ShuttleTest : ContentIntegrationTest { [Test] public async Task Test() diff --git a/Content.IntegrationTests/Tests/StartTest.cs b/Content.IntegrationTests/Tests/StartTest.cs index 5bcb611224..415dca45cb 100644 --- a/Content.IntegrationTests/Tests/StartTest.cs +++ b/Content.IntegrationTests/Tests/StartTest.cs @@ -5,7 +5,7 @@ using Robust.Shared.Exceptions; namespace Content.IntegrationTests.Tests { [TestFixture] - public class StartTest : ContentIntegrationTest + public sealed class StartTest : ContentIntegrationTest { /// /// Test that the server starts. diff --git a/Content.IntegrationTests/Tests/StationEvents/StationEventsSystemTest.cs b/Content.IntegrationTests/Tests/StationEvents/StationEventsSystemTest.cs index f67a467b0d..7f58826680 100644 --- a/Content.IntegrationTests/Tests/StationEvents/StationEventsSystemTest.cs +++ b/Content.IntegrationTests/Tests/StationEvents/StationEventsSystemTest.cs @@ -9,7 +9,7 @@ using Robust.Shared.Timing; namespace Content.IntegrationTests.Tests.StationEvents { [TestFixture] - public class StationEventsSystemTest : ContentIntegrationTest + public sealed class StationEventsSystemTest : ContentIntegrationTest { [Test] public async Task Test() diff --git a/Content.IntegrationTests/Tests/Tag/TagTest.cs b/Content.IntegrationTests/Tests/Tag/TagTest.cs index 78829ef64e..ab7835e41e 100644 --- a/Content.IntegrationTests/Tests/Tag/TagTest.cs +++ b/Content.IntegrationTests/Tests/Tag/TagTest.cs @@ -12,7 +12,7 @@ namespace Content.IntegrationTests.Tests.Tag { [TestFixture] [TestOf(typeof(TagComponent))] - public class TagTest : ContentIntegrationTest + public sealed class TagTest : ContentIntegrationTest { private const string TagEntityId = "TagTestDummy"; diff --git a/Content.IntegrationTests/Tests/Utility/EntitySystemExtensionsTest.cs b/Content.IntegrationTests/Tests/Utility/EntitySystemExtensionsTest.cs index 290df1a1d2..a742715f7e 100644 --- a/Content.IntegrationTests/Tests/Utility/EntitySystemExtensionsTest.cs +++ b/Content.IntegrationTests/Tests/Utility/EntitySystemExtensionsTest.cs @@ -12,7 +12,7 @@ namespace Content.IntegrationTests.Tests.Utility { [TestFixture] [TestOf(typeof(EntitySystemExtensions))] - public class EntitySystemExtensionsTest : ContentIntegrationTest + public sealed class EntitySystemExtensionsTest : ContentIntegrationTest { private const string BlockerDummyId = "BlockerDummy"; diff --git a/Content.IntegrationTests/Tests/Utility/EntityWhitelistTest.cs b/Content.IntegrationTests/Tests/Utility/EntityWhitelistTest.cs index c8d71f51f0..cf0fd58f13 100644 --- a/Content.IntegrationTests/Tests/Utility/EntityWhitelistTest.cs +++ b/Content.IntegrationTests/Tests/Utility/EntityWhitelistTest.cs @@ -10,7 +10,7 @@ namespace Content.IntegrationTests.Tests.Utility { [TestFixture] [TestOf(typeof(EntityWhitelist))] - public class EntityWhitelistTest : ContentIntegrationTest + public sealed class EntityWhitelistTest : ContentIntegrationTest { private const string InvalidComponent = "Sprite"; private const string ValidComponent = "Physics"; diff --git a/Content.MapRenderer/Painters/EntityData.cs b/Content.MapRenderer/Painters/EntityData.cs index 95d8b3fd0f..8ce8f767d2 100644 --- a/Content.MapRenderer/Painters/EntityData.cs +++ b/Content.MapRenderer/Painters/EntityData.cs @@ -2,7 +2,7 @@ namespace Content.MapRenderer.Painters { - public class EntityData + public sealed class EntityData { public EntityData(SpriteComponent sprite, float x, float y) { diff --git a/Content.MapRenderer/Painters/EntityPainter.cs b/Content.MapRenderer/Painters/EntityPainter.cs index 13dcd6bf73..fd2a3e6088 100644 --- a/Content.MapRenderer/Painters/EntityPainter.cs +++ b/Content.MapRenderer/Painters/EntityPainter.cs @@ -12,7 +12,7 @@ using static Robust.UnitTesting.RobustIntegrationTest; namespace Content.MapRenderer.Painters; -public class EntityPainter +public sealed class EntityPainter { private readonly IResourceCache _cResourceCache; diff --git a/Content.MapRenderer/Painters/GridPainter.cs b/Content.MapRenderer/Painters/GridPainter.cs index 956f5cb077..d08c91f3b1 100644 --- a/Content.MapRenderer/Painters/GridPainter.cs +++ b/Content.MapRenderer/Painters/GridPainter.cs @@ -11,7 +11,7 @@ using static Robust.UnitTesting.RobustIntegrationTest; namespace Content.MapRenderer.Painters { - public class GridPainter + public sealed class GridPainter { private readonly EntityPainter _entityPainter; diff --git a/Content.MapRenderer/Painters/MapPainter.cs b/Content.MapRenderer/Painters/MapPainter.cs index cb2d1bd83b..2909369f8d 100644 --- a/Content.MapRenderer/Painters/MapPainter.cs +++ b/Content.MapRenderer/Painters/MapPainter.cs @@ -20,7 +20,7 @@ using SpriteComponent = Robust.Server.GameObjects.SpriteComponent; namespace Content.MapRenderer.Painters { - public class MapPainter : ContentIntegrationTest + public sealed class MapPainter : ContentIntegrationTest { public async IAsyncEnumerable Paint(string map) { diff --git a/Content.MapRenderer/Painters/TilePainter.cs b/Content.MapRenderer/Painters/TilePainter.cs index 9f6cde3779..e7a35017c0 100644 --- a/Content.MapRenderer/Painters/TilePainter.cs +++ b/Content.MapRenderer/Painters/TilePainter.cs @@ -12,7 +12,7 @@ using static Robust.UnitTesting.RobustIntegrationTest; namespace Content.MapRenderer.Painters { - public class TilePainter + public sealed class TilePainter { private const string TilesPath = "/Textures/Tiles/"; public const int TileImageSize = EyeManager.PixelsPerMeter; diff --git a/Content.Server/AI/Commands/AddAiCommand.cs b/Content.Server/AI/Commands/AddAiCommand.cs index 694ee57f62..d10f7bbd76 100644 --- a/Content.Server/AI/Commands/AddAiCommand.cs +++ b/Content.Server/AI/Commands/AddAiCommand.cs @@ -11,7 +11,7 @@ using Robust.Shared.IoC; namespace Content.Server.AI.Commands { [AdminCommand(AdminFlags.Fun)] - public class AddAiCommand : IConsoleCommand + public sealed class AddAiCommand : IConsoleCommand { [Dependency] private readonly IEntityManager _entities = default!; diff --git a/Content.Server/AI/Components/AiControllerComponent.cs b/Content.Server/AI/Components/AiControllerComponent.cs index 43a5474bb3..64602e2014 100644 --- a/Content.Server/AI/Components/AiControllerComponent.cs +++ b/Content.Server/AI/Components/AiControllerComponent.cs @@ -14,6 +14,7 @@ namespace Content.Server.AI.Components { [RegisterComponent] [ComponentReference(typeof(IMobMoverComponent))] + [Virtual] public class AiControllerComponent : Component, IMobMoverComponent, IMoverComponent { [DataField("logic")] private float _visionRadius = 8.0f; diff --git a/Content.Server/AI/Components/AiFactionPrototype.cs b/Content.Server/AI/Components/AiFactionPrototype.cs index b890a76ade..fa14617a12 100644 --- a/Content.Server/AI/Components/AiFactionPrototype.cs +++ b/Content.Server/AI/Components/AiFactionPrototype.cs @@ -6,7 +6,7 @@ using Robust.Shared.ViewVariables; namespace Content.Server.AI.Components { [Prototype("aiFaction")] - public class AiFactionPrototype : IPrototype + public sealed class AiFactionPrototype : IPrototype { // These are immutable so any dynamic changes aren't saved back over. // AiFactionSystem will just read these and then store them. diff --git a/Content.Server/AI/EntitySystems/NPCSystem.cs b/Content.Server/AI/EntitySystems/NPCSystem.cs index f127c0e6ce..cd8bd2cff1 100644 --- a/Content.Server/AI/EntitySystems/NPCSystem.cs +++ b/Content.Server/AI/EntitySystems/NPCSystem.cs @@ -16,7 +16,7 @@ namespace Content.Server.AI.EntitySystems /// Handles NPCs running every tick. /// [UsedImplicitly] - internal class NPCSystem : EntitySystem + internal sealed class NPCSystem : EntitySystem { [Dependency] private readonly IConfigurationManager _configurationManager = default!; [Dependency] private readonly IRobustRandom _robustRandom = default!; diff --git a/Content.Server/AI/EntitySystems/ServerAiDebugSystem.cs b/Content.Server/AI/EntitySystems/ServerAiDebugSystem.cs index 4af762e5b5..c43efd0d90 100644 --- a/Content.Server/AI/EntitySystems/ServerAiDebugSystem.cs +++ b/Content.Server/AI/EntitySystems/ServerAiDebugSystem.cs @@ -7,7 +7,7 @@ namespace Content.Server.AI.EntitySystems { #if DEBUG [UsedImplicitly] - public class ServerAiDebugSystem : EntitySystem + public sealed class ServerAiDebugSystem : EntitySystem { public override void Initialize() { diff --git a/Content.Server/AI/LoadBalancer/AiActionRequest.cs b/Content.Server/AI/LoadBalancer/AiActionRequest.cs index 69ef2bbaf8..e7aee299c0 100644 --- a/Content.Server/AI/LoadBalancer/AiActionRequest.cs +++ b/Content.Server/AI/LoadBalancer/AiActionRequest.cs @@ -5,7 +5,7 @@ using Robust.Shared.GameObjects; namespace Content.Server.AI.LoadBalancer { - public class AiActionRequest + public sealed class AiActionRequest { public EntityUid EntityUid { get; } public Blackboard? Context { get; } diff --git a/Content.Server/AI/LoadBalancer/AiActionRequestJob.cs b/Content.Server/AI/LoadBalancer/AiActionRequestJob.cs index 2550656763..b6e658c640 100644 --- a/Content.Server/AI/LoadBalancer/AiActionRequestJob.cs +++ b/Content.Server/AI/LoadBalancer/AiActionRequestJob.cs @@ -15,7 +15,7 @@ using Robust.Shared.Utility; namespace Content.Server.AI.LoadBalancer { - public class AiActionRequestJob : Job + public sealed class AiActionRequestJob : Job { #if DEBUG public static event Action? FoundAction; diff --git a/Content.Server/AI/LoadBalancer/AiActionSystem.cs b/Content.Server/AI/LoadBalancer/AiActionSystem.cs index c9fd135dc0..eeb0b2ec71 100644 --- a/Content.Server/AI/LoadBalancer/AiActionSystem.cs +++ b/Content.Server/AI/LoadBalancer/AiActionSystem.cs @@ -7,7 +7,7 @@ namespace Content.Server.AI.LoadBalancer /// /// This will queue up an AI's request for an action and give it one when possible /// - public class AiActionSystem : EntitySystem + public sealed class AiActionSystem : EntitySystem { private readonly AiActionJobQueue _aiRequestQueue = new(); diff --git a/Content.Server/AI/Operators/Combat/Melee/SwingMeleeWeaponOperator.cs b/Content.Server/AI/Operators/Combat/Melee/SwingMeleeWeaponOperator.cs index 7a8c6097c9..e359c7d1b0 100644 --- a/Content.Server/AI/Operators/Combat/Melee/SwingMeleeWeaponOperator.cs +++ b/Content.Server/AI/Operators/Combat/Melee/SwingMeleeWeaponOperator.cs @@ -7,7 +7,7 @@ using Robust.Shared.IoC; namespace Content.Server.AI.Operators.Combat.Melee { - public class SwingMeleeWeaponOperator : AiOperator + public sealed class SwingMeleeWeaponOperator : AiOperator { [Dependency] private readonly IEntityManager _entMan = default!; diff --git a/Content.Server/AI/Operators/Generic/WaitOperator.cs b/Content.Server/AI/Operators/Generic/WaitOperator.cs index 7c93111570..40e0026649 100644 --- a/Content.Server/AI/Operators/Generic/WaitOperator.cs +++ b/Content.Server/AI/Operators/Generic/WaitOperator.cs @@ -1,6 +1,6 @@ namespace Content.Server.AI.Operators.Generic { - public class WaitOperator : AiOperator + public sealed class WaitOperator : AiOperator { private readonly float _waitTime; private float _accumulatedTime = 0.0f; diff --git a/Content.Server/AI/Operators/Inventory/DropEntityOperator.cs b/Content.Server/AI/Operators/Inventory/DropEntityOperator.cs index 952bc6b46b..285e20e77d 100644 --- a/Content.Server/AI/Operators/Inventory/DropEntityOperator.cs +++ b/Content.Server/AI/Operators/Inventory/DropEntityOperator.cs @@ -4,7 +4,7 @@ using Robust.Shared.IoC; namespace Content.Server.AI.Operators.Inventory { - public class DropEntityOperator : AiOperator + public sealed class DropEntityOperator : AiOperator { private readonly EntityUid _owner; private readonly EntityUid _entity; diff --git a/Content.Server/AI/Operators/Inventory/DropHandItemsOperator.cs b/Content.Server/AI/Operators/Inventory/DropHandItemsOperator.cs index 81908858f5..e1001712fc 100644 --- a/Content.Server/AI/Operators/Inventory/DropHandItemsOperator.cs +++ b/Content.Server/AI/Operators/Inventory/DropHandItemsOperator.cs @@ -4,7 +4,7 @@ using Robust.Shared.IoC; namespace Content.Server.AI.Operators.Inventory { - public class DropHandItemsOperator : AiOperator + public sealed class DropHandItemsOperator : AiOperator { private readonly EntityUid _owner; diff --git a/Content.Server/AI/Operators/Inventory/InteractWithEntityOperator.cs b/Content.Server/AI/Operators/Inventory/InteractWithEntityOperator.cs index ed353d61d2..9feb90159f 100644 --- a/Content.Server/AI/Operators/Inventory/InteractWithEntityOperator.cs +++ b/Content.Server/AI/Operators/Inventory/InteractWithEntityOperator.cs @@ -9,7 +9,7 @@ namespace Content.Server.AI.Operators.Inventory /// /// A Generic interacter; if you need to check stuff then make your own /// - public class InteractWithEntityOperator : AiOperator + public sealed class InteractWithEntityOperator : AiOperator { [Dependency] private readonly IEntityManager _entMan = default!; diff --git a/Content.Server/AI/Operators/Inventory/PickupEntityOperator.cs b/Content.Server/AI/Operators/Inventory/PickupEntityOperator.cs index f6e636bc2c..8148d4308f 100644 --- a/Content.Server/AI/Operators/Inventory/PickupEntityOperator.cs +++ b/Content.Server/AI/Operators/Inventory/PickupEntityOperator.cs @@ -8,7 +8,7 @@ using Robust.Shared.IoC; namespace Content.Server.AI.Operators.Inventory { - public class PickupEntityOperator : AiOperator + public sealed class PickupEntityOperator : AiOperator { // Input variables private readonly EntityUid _owner; diff --git a/Content.Server/AI/Operators/Inventory/UseItemInInventoryOperator.cs b/Content.Server/AI/Operators/Inventory/UseItemInInventoryOperator.cs index db584ea2a4..2088fbe31e 100644 --- a/Content.Server/AI/Operators/Inventory/UseItemInInventoryOperator.cs +++ b/Content.Server/AI/Operators/Inventory/UseItemInInventoryOperator.cs @@ -8,7 +8,7 @@ namespace Content.Server.AI.Operators.Inventory /// /// Will find the item in storage, put it in an active hand, then use it /// - public class UseItemInInventoryOperator : AiOperator + public sealed class UseItemInInventoryOperator : AiOperator { private readonly EntityUid _owner; private readonly EntityUid _target; diff --git a/Content.Server/AI/Operators/Nutrition/UseDrinkInInventoryOperator.cs b/Content.Server/AI/Operators/Nutrition/UseDrinkInInventoryOperator.cs index 9990db6c54..0dbde8f5bc 100644 --- a/Content.Server/AI/Operators/Nutrition/UseDrinkInInventoryOperator.cs +++ b/Content.Server/AI/Operators/Nutrition/UseDrinkInInventoryOperator.cs @@ -9,7 +9,7 @@ using Robust.Shared.Random; namespace Content.Server.AI.Operators.Nutrition { - public class UseDrinkInInventoryOperator : AiOperator + public sealed class UseDrinkInInventoryOperator : AiOperator { private readonly EntityUid _owner; private readonly EntityUid _target; diff --git a/Content.Server/AI/Operators/Nutrition/UseFoodInInventoryOperator.cs b/Content.Server/AI/Operators/Nutrition/UseFoodInInventoryOperator.cs index 279a6b3d71..989749c4f9 100644 --- a/Content.Server/AI/Operators/Nutrition/UseFoodInInventoryOperator.cs +++ b/Content.Server/AI/Operators/Nutrition/UseFoodInInventoryOperator.cs @@ -8,7 +8,7 @@ using Robust.Shared.Random; namespace Content.Server.AI.Operators.Nutrition { - public class UseFoodInInventoryOperator : AiOperator + public sealed class UseFoodInInventoryOperator : AiOperator { private readonly EntityUid _owner; private readonly EntityUid _target; diff --git a/Content.Server/AI/Operators/Sequences/GoPickupEntitySequence.cs b/Content.Server/AI/Operators/Sequences/GoPickupEntitySequence.cs index c4f8776956..c43c644973 100644 --- a/Content.Server/AI/Operators/Sequences/GoPickupEntitySequence.cs +++ b/Content.Server/AI/Operators/Sequences/GoPickupEntitySequence.cs @@ -5,7 +5,7 @@ using Robust.Shared.GameObjects; namespace Content.Server.AI.Operators.Sequences { - public class GoPickupEntitySequence : SequenceOperator + public sealed class GoPickupEntitySequence : SequenceOperator { public GoPickupEntitySequence(EntityUid owner, EntityUid target) { diff --git a/Content.Server/AI/Pathfinding/Accessible/PathfindingRegion.cs b/Content.Server/AI/Pathfinding/Accessible/PathfindingRegion.cs index ab5801045a..94279a7dc0 100644 --- a/Content.Server/AI/Pathfinding/Accessible/PathfindingRegion.cs +++ b/Content.Server/AI/Pathfinding/Accessible/PathfindingRegion.cs @@ -7,7 +7,7 @@ namespace Content.Server.AI.Pathfinding.Accessible /// A group of homogenous PathfindingNodes inside a single chunk /// /// Makes the graph smaller and quicker to traverse - public class PathfindingRegion : IEquatable + public sealed class PathfindingRegion : IEquatable { /// /// Bottom-left reference node of the region diff --git a/Content.Server/AI/Pathfinding/Pathfinders/AStarPathfindingJob.cs b/Content.Server/AI/Pathfinding/Pathfinders/AStarPathfindingJob.cs index 202c79c0ad..ca77ffff8f 100644 --- a/Content.Server/AI/Pathfinding/Pathfinders/AStarPathfindingJob.cs +++ b/Content.Server/AI/Pathfinding/Pathfinders/AStarPathfindingJob.cs @@ -9,7 +9,7 @@ using Robust.Shared.Utility; namespace Content.Server.AI.Pathfinding.Pathfinders { - public class AStarPathfindingJob : Job> + public sealed class AStarPathfindingJob : Job> { #if DEBUG public static event Action? DebugRoute; diff --git a/Content.Server/AI/Pathfinding/Pathfinders/JpsPathfindingJob.cs b/Content.Server/AI/Pathfinding/Pathfinders/JpsPathfindingJob.cs index bb5c49320a..da59945d68 100644 --- a/Content.Server/AI/Pathfinding/Pathfinders/JpsPathfindingJob.cs +++ b/Content.Server/AI/Pathfinding/Pathfinders/JpsPathfindingJob.cs @@ -11,7 +11,7 @@ using Robust.Shared.Utility; namespace Content.Server.AI.Pathfinding.Pathfinders { - public class JpsPathfindingJob : Job> + public sealed class JpsPathfindingJob : Job> { // Some of this is probably fugly due to other structural changes in pathfinding so it could do with optimisation // Realistically it's probably not getting used given it doesn't support tile costs which can be very useful diff --git a/Content.Server/AI/Pathfinding/Pathfinders/PathfindingComparer.cs b/Content.Server/AI/Pathfinding/Pathfinders/PathfindingComparer.cs index c9b6cde52b..5ca4a1259b 100644 --- a/Content.Server/AI/Pathfinding/Pathfinders/PathfindingComparer.cs +++ b/Content.Server/AI/Pathfinding/Pathfinders/PathfindingComparer.cs @@ -3,7 +3,7 @@ using System.Collections.Generic; namespace Content.Server.AI.Pathfinding.Pathfinders { - public class PathfindingComparer : IComparer> + public sealed class PathfindingComparer : IComparer> { public int Compare((float, PathfindingNode) x, (float, PathfindingNode) y) { diff --git a/Content.Server/AI/Pathfinding/PathfindingChunk.cs b/Content.Server/AI/Pathfinding/PathfindingChunk.cs index 2e39e000cb..09d2adb64a 100644 --- a/Content.Server/AI/Pathfinding/PathfindingChunk.cs +++ b/Content.Server/AI/Pathfinding/PathfindingChunk.cs @@ -9,7 +9,7 @@ using Robust.Shared.Timing; namespace Content.Server.AI.Pathfinding { - public class PathfindingChunkUpdateMessage : EntityEventArgs + public sealed class PathfindingChunkUpdateMessage : EntityEventArgs { public PathfindingChunk Chunk { get; } @@ -19,7 +19,7 @@ namespace Content.Server.AI.Pathfinding } } - public class PathfindingChunk + public sealed class PathfindingChunk { public TimeSpan LastUpdate { get; private set; } public GridId GridId { get; } diff --git a/Content.Server/AI/Pathfinding/PathfindingNode.cs b/Content.Server/AI/Pathfinding/PathfindingNode.cs index d4c27dfe61..ef4456f288 100644 --- a/Content.Server/AI/Pathfinding/PathfindingNode.cs +++ b/Content.Server/AI/Pathfinding/PathfindingNode.cs @@ -13,7 +13,7 @@ using Robust.Shared.Utility; namespace Content.Server.AI.Pathfinding { - public class PathfindingNode + public sealed class PathfindingNode { public PathfindingChunk ParentChunk => _parentChunk; private readonly PathfindingChunk _parentChunk; diff --git a/Content.Server/AI/Pathfinding/PathfindingSystem.cs b/Content.Server/AI/Pathfinding/PathfindingSystem.cs index 5e92900e6f..a2863c2d3c 100644 --- a/Content.Server/AI/Pathfinding/PathfindingSystem.cs +++ b/Content.Server/AI/Pathfinding/PathfindingSystem.cs @@ -27,7 +27,7 @@ namespace Content.Server.AI.Pathfinding /// This system handles pathfinding graph updates as well as dispatches to the pathfinder /// (90% of what it's doing is graph updates so not much point splitting the 2 roles) /// - public class PathfindingSystem : EntitySystem + public sealed class PathfindingSystem : EntitySystem { [Dependency] private readonly IMapManager _mapManager = default!; [Dependency] private readonly IEntityManager _entityManager = default!; diff --git a/Content.Server/AI/Pathfinding/ServerPathfindingDebugSystem.cs b/Content.Server/AI/Pathfinding/ServerPathfindingDebugSystem.cs index ae2092b854..34c24e71fd 100644 --- a/Content.Server/AI/Pathfinding/ServerPathfindingDebugSystem.cs +++ b/Content.Server/AI/Pathfinding/ServerPathfindingDebugSystem.cs @@ -11,7 +11,7 @@ namespace Content.Server.AI.Pathfinding { #if DEBUG [UsedImplicitly] - public class ServerPathfindingDebugSystem : EntitySystem + public sealed class ServerPathfindingDebugSystem : EntitySystem { public override void Initialize() { diff --git a/Content.Server/AI/Utility/Actions/Test/MoveRightAndLeftTen.cs b/Content.Server/AI/Utility/Actions/Test/MoveRightAndLeftTen.cs index 0e5955c39b..b1bfe66c1d 100644 --- a/Content.Server/AI/Utility/Actions/Test/MoveRightAndLeftTen.cs +++ b/Content.Server/AI/Utility/Actions/Test/MoveRightAndLeftTen.cs @@ -13,7 +13,7 @@ namespace Content.Server.AI.Utility.Actions.Test /// /// Used for pathfinding debugging /// - public class MoveRightAndLeftTen : UtilityAction + public sealed class MoveRightAndLeftTen : UtilityAction { public override bool CanOverride => false; diff --git a/Content.Server/AI/Utility/BehaviorSetPrototype.cs b/Content.Server/AI/Utility/BehaviorSetPrototype.cs index 1ab3f3da82..b8a5cb67b9 100644 --- a/Content.Server/AI/Utility/BehaviorSetPrototype.cs +++ b/Content.Server/AI/Utility/BehaviorSetPrototype.cs @@ -6,7 +6,7 @@ using Robust.Shared.ViewVariables; namespace Content.Server.AI.Utility { [Prototype("behaviorSet")] - public class BehaviorSetPrototype : IPrototype + public sealed class BehaviorSetPrototype : IPrototype { /// /// Name of the BehaviorSet. diff --git a/Content.Server/AI/Utility/Considerations/Clothing/ClothingInSlotCon.cs b/Content.Server/AI/Utility/Considerations/Clothing/ClothingInSlotCon.cs index e28105b41d..74999afefd 100644 --- a/Content.Server/AI/Utility/Considerations/Clothing/ClothingInSlotCon.cs +++ b/Content.Server/AI/Utility/Considerations/Clothing/ClothingInSlotCon.cs @@ -4,7 +4,7 @@ using Content.Shared.Inventory; namespace Content.Server.AI.Utility.Considerations.Clothing { - public class ClothingInSlotCon : Consideration + public sealed class ClothingInSlotCon : Consideration { public ClothingInSlotCon Slot(string slot, Blackboard context) diff --git a/Content.Server/AI/Utility/Considerations/ConsiderationsManager.cs b/Content.Server/AI/Utility/Considerations/ConsiderationsManager.cs index 81eb727a44..c5bb9671cc 100644 --- a/Content.Server/AI/Utility/Considerations/ConsiderationsManager.cs +++ b/Content.Server/AI/Utility/Considerations/ConsiderationsManager.cs @@ -5,7 +5,7 @@ using Robust.Shared.Reflection; namespace Content.Server.AI.Utility.Considerations { - public class ConsiderationsManager + public sealed class ConsiderationsManager { private readonly Dictionary _considerations = new(); diff --git a/Content.Server/AI/Utility/Considerations/DummyCon.cs b/Content.Server/AI/Utility/Considerations/DummyCon.cs index 91e9135f50..503ddbefc9 100644 --- a/Content.Server/AI/Utility/Considerations/DummyCon.cs +++ b/Content.Server/AI/Utility/Considerations/DummyCon.cs @@ -2,7 +2,7 @@ using Content.Server.AI.WorldState; namespace Content.Server.AI.Utility.Considerations { - public class DummyCon : Consideration + public sealed class DummyCon : Consideration { protected override float GetScore(Blackboard context) => 1.0f; } diff --git a/Content.Server/AI/Utility/Considerations/Hands/FreeHandCon.cs b/Content.Server/AI/Utility/Considerations/Hands/FreeHandCon.cs index 029775d5f3..bb40bd2f83 100644 --- a/Content.Server/AI/Utility/Considerations/Hands/FreeHandCon.cs +++ b/Content.Server/AI/Utility/Considerations/Hands/FreeHandCon.cs @@ -6,7 +6,7 @@ using Robust.Shared.IoC; namespace Content.Server.AI.Utility.Considerations.Hands { - public class FreeHandCon : Consideration + public sealed class FreeHandCon : Consideration { protected override float GetScore(Blackboard context) { diff --git a/Content.Server/AI/Utility/Considerations/Inventory/CanPutTargetInInventoryCon.cs b/Content.Server/AI/Utility/Considerations/Inventory/CanPutTargetInInventoryCon.cs index 8c4783efdb..52aa6dabf8 100644 --- a/Content.Server/AI/Utility/Considerations/Inventory/CanPutTargetInInventoryCon.cs +++ b/Content.Server/AI/Utility/Considerations/Inventory/CanPutTargetInInventoryCon.cs @@ -8,7 +8,7 @@ using Robust.Shared.IoC; namespace Content.Server.AI.Utility.Considerations.Inventory { - public class CanPutTargetInInventoryCon : Consideration + public sealed class CanPutTargetInInventoryCon : Consideration { protected override float GetScore(Blackboard context) { diff --git a/Content.Server/AI/Utility/Considerations/Inventory/TargetInOurInventoryCon.cs b/Content.Server/AI/Utility/Considerations/Inventory/TargetInOurInventoryCon.cs index 92d5d4b23f..d039626f02 100644 --- a/Content.Server/AI/Utility/Considerations/Inventory/TargetInOurInventoryCon.cs +++ b/Content.Server/AI/Utility/Considerations/Inventory/TargetInOurInventoryCon.cs @@ -7,7 +7,7 @@ using Robust.Shared.IoC; namespace Content.Server.AI.Utility.Considerations.Inventory { - public class TargetInOurInventoryCon : Consideration + public sealed class TargetInOurInventoryCon : Consideration { protected override float GetScore(Blackboard context) { diff --git a/Content.Server/AI/Utility/Considerations/Nutrition/Drink/ThirstCon.cs b/Content.Server/AI/Utility/Considerations/Nutrition/Drink/ThirstCon.cs index b90f80bdae..5613b922b8 100644 --- a/Content.Server/AI/Utility/Considerations/Nutrition/Drink/ThirstCon.cs +++ b/Content.Server/AI/Utility/Considerations/Nutrition/Drink/ThirstCon.cs @@ -7,7 +7,7 @@ using Robust.Shared.IoC; namespace Content.Server.AI.Utility.Considerations.Nutrition.Drink { - public class ThirstCon : Consideration + public sealed class ThirstCon : Consideration { protected override float GetScore(Blackboard context) { diff --git a/Content.Server/AI/Utility/NpcBehaviorManager.cs b/Content.Server/AI/Utility/NpcBehaviorManager.cs index ef1513797c..8c0680d6e4 100644 --- a/Content.Server/AI/Utility/NpcBehaviorManager.cs +++ b/Content.Server/AI/Utility/NpcBehaviorManager.cs @@ -158,7 +158,7 @@ namespace Content.Server.AI.Utility npc.AvailableActions.Sort(_comparer); } - private class NpcActionComparer : Comparer + private sealed class NpcActionComparer : Comparer { public override int Compare(IAiUtility? x, IAiUtility? y) { diff --git a/Content.Server/AI/WorldState/States/Hands/AnyFreeHandState.cs b/Content.Server/AI/WorldState/States/Hands/AnyFreeHandState.cs index 9b33236cdb..e3ed0f259b 100644 --- a/Content.Server/AI/WorldState/States/Hands/AnyFreeHandState.cs +++ b/Content.Server/AI/WorldState/States/Hands/AnyFreeHandState.cs @@ -6,7 +6,7 @@ using Robust.Shared.IoC; namespace Content.Server.AI.WorldState.States.Hands { [UsedImplicitly] - public class AnyFreeHandState : StateData + public sealed class AnyFreeHandState : StateData { public override string Name => "AnyFreeHand"; public override bool GetValue() diff --git a/Content.Server/AI/WorldState/States/Hands/HandItemsState.cs b/Content.Server/AI/WorldState/States/Hands/HandItemsState.cs index 2a0ec7503b..87cd3fa726 100644 --- a/Content.Server/AI/WorldState/States/Hands/HandItemsState.cs +++ b/Content.Server/AI/WorldState/States/Hands/HandItemsState.cs @@ -7,7 +7,7 @@ using Robust.Shared.IoC; namespace Content.Server.AI.WorldState.States.Hands { [UsedImplicitly] - public class HandItemsState : StateData> + public sealed class HandItemsState : StateData> { public override string Name => "HandItems"; public override List GetValue() diff --git a/Content.Server/AI/WorldState/States/Nutrition/ThirstyState.cs b/Content.Server/AI/WorldState/States/Nutrition/ThirstyState.cs index fc78103085..b29ccfe0fc 100644 --- a/Content.Server/AI/WorldState/States/Nutrition/ThirstyState.cs +++ b/Content.Server/AI/WorldState/States/Nutrition/ThirstyState.cs @@ -8,7 +8,7 @@ using Robust.Shared.IoC; namespace Content.Server.AI.WorldState.States.Nutrition { [UsedImplicitly] - public class ThirstyState : StateData + public sealed class ThirstyState : StateData { public override string Name => "Thirsty"; diff --git a/Content.Server/AI/WorldState/States/Utility/ConsiderationState.cs b/Content.Server/AI/WorldState/States/Utility/ConsiderationState.cs index 66903bee54..d869a8b8e1 100644 --- a/Content.Server/AI/WorldState/States/Utility/ConsiderationState.cs +++ b/Content.Server/AI/WorldState/States/Utility/ConsiderationState.cs @@ -3,8 +3,8 @@ namespace Content.Server.AI.WorldState.States.Utility /// /// Used by the utility AI to calc the adjusted scores /// - public class ConsiderationState : StoredStateData + public sealed class ConsiderationState : StoredStateData { public override string Name => "Consideration"; } -} \ No newline at end of file +} diff --git a/Content.Server/AI/WorldState/States/Utility/LastUtilityScoreState.cs b/Content.Server/AI/WorldState/States/Utility/LastUtilityScoreState.cs index 68dad19ff0..62cfb72c1e 100644 --- a/Content.Server/AI/WorldState/States/Utility/LastUtilityScoreState.cs +++ b/Content.Server/AI/WorldState/States/Utility/LastUtilityScoreState.cs @@ -6,7 +6,7 @@ namespace Content.Server.AI.WorldState.States.Utility /// Used for the utility AI; sets the threshold score we need to beat /// [UsedImplicitly] - public class LastUtilityScoreState : StateData + public sealed class LastUtilityScoreState : StateData { public override string Name => "LastBonus"; private float _value = 0.0f; diff --git a/Content.Server/AME/AMENodeGroup.cs b/Content.Server/AME/AMENodeGroup.cs index 83bfa2654b..8c22be06fd 100644 --- a/Content.Server/AME/AMENodeGroup.cs +++ b/Content.Server/AME/AMENodeGroup.cs @@ -17,7 +17,7 @@ namespace Content.Server.AME /// Node group class for handling the Antimatter Engine's console and parts. /// [NodeGroup(NodeGroupID.AMEngine)] - public class AMENodeGroup : BaseNodeGroup + public sealed class AMENodeGroup : BaseNodeGroup { /// /// The AME controller which is currently in control of this node group. diff --git a/Content.Server/AME/AntimatterEngineSystem.cs b/Content.Server/AME/AntimatterEngineSystem.cs index f65fccfbf5..a358ea7f13 100644 --- a/Content.Server/AME/AntimatterEngineSystem.cs +++ b/Content.Server/AME/AntimatterEngineSystem.cs @@ -5,7 +5,7 @@ using Robust.Shared.GameObjects; namespace Content.Server.AME { [UsedImplicitly] - public class AntimatterEngineSystem : EntitySystem + public sealed class AntimatterEngineSystem : EntitySystem { private float _accumulatedFrameTime; diff --git a/Content.Server/AME/Components/AMEControllerComponent.cs b/Content.Server/AME/Components/AMEControllerComponent.cs index 2b567848e5..ce298fd862 100644 --- a/Content.Server/AME/Components/AMEControllerComponent.cs +++ b/Content.Server/AME/Components/AMEControllerComponent.cs @@ -26,7 +26,7 @@ namespace Content.Server.AME.Components [RegisterComponent] [ComponentReference(typeof(IActivate))] [ComponentReference(typeof(IInteractUsing))] - public class AMEControllerComponent : SharedAMEControllerComponent, IActivate, IInteractUsing + public sealed class AMEControllerComponent : SharedAMEControllerComponent, IActivate, IInteractUsing { [Dependency] private readonly IEntityManager _entities = default!; diff --git a/Content.Server/AME/Components/AMEFuelContainerComponent.cs b/Content.Server/AME/Components/AMEFuelContainerComponent.cs index 30403a6e8f..6c06efea94 100644 --- a/Content.Server/AME/Components/AMEFuelContainerComponent.cs +++ b/Content.Server/AME/Components/AMEFuelContainerComponent.cs @@ -4,7 +4,7 @@ using Robust.Shared.ViewVariables; namespace Content.Server.AME.Components { [RegisterComponent] - public class AMEFuelContainerComponent : Component + public sealed class AMEFuelContainerComponent : Component { private int _fuelAmount; private int _maxFuelAmount; diff --git a/Content.Server/AME/Components/AMEPartComponent.cs b/Content.Server/AME/Components/AMEPartComponent.cs index 5db4ad46fc..0078e30a13 100644 --- a/Content.Server/AME/Components/AMEPartComponent.cs +++ b/Content.Server/AME/Components/AMEPartComponent.cs @@ -20,7 +20,7 @@ namespace Content.Server.AME.Components { [RegisterComponent] [ComponentReference(typeof(IInteractUsing))] - public class AMEPartComponent : Component, IInteractUsing + public sealed class AMEPartComponent : Component, IInteractUsing { [Dependency] private readonly IMapManager _mapManager = default!; [Dependency] private readonly IServerEntityManager _serverEntityManager = default!; diff --git a/Content.Server/AME/Components/AMEShieldComponent.cs b/Content.Server/AME/Components/AMEShieldComponent.cs index 1708e0c700..0ac836e399 100644 --- a/Content.Server/AME/Components/AMEShieldComponent.cs +++ b/Content.Server/AME/Components/AMEShieldComponent.cs @@ -8,7 +8,7 @@ using Robust.Shared.ViewVariables; namespace Content.Server.AME.Components { [RegisterComponent] - public class AMEShieldComponent : SharedAMEShieldComponent + public sealed class AMEShieldComponent : SharedAMEShieldComponent { private bool _isCore = false; diff --git a/Content.Server/Access/Components/PresetIdCardComponent.cs b/Content.Server/Access/Components/PresetIdCardComponent.cs index f0bfc0678a..614aec6e59 100644 --- a/Content.Server/Access/Components/PresetIdCardComponent.cs +++ b/Content.Server/Access/Components/PresetIdCardComponent.cs @@ -7,7 +7,7 @@ using Robust.Shared.Serialization.Manager.Attributes; namespace Content.Server.Access.Components { [RegisterComponent] - public class PresetIdCardComponent : Component + public sealed class PresetIdCardComponent : Component { [DataField("job")] public readonly string? JobName; diff --git a/Content.Server/Access/Systems/IdCardSystem.cs b/Content.Server/Access/Systems/IdCardSystem.cs index 2dab8f2259..e985d89fe5 100644 --- a/Content.Server/Access/Systems/IdCardSystem.cs +++ b/Content.Server/Access/Systems/IdCardSystem.cs @@ -17,7 +17,7 @@ using Robust.Shared.Random; namespace Content.Server.Access.Systems { - public class IdCardSystem : SharedIdCardSystem + public sealed class IdCardSystem : SharedIdCardSystem { [Dependency] private readonly InventorySystem _inventorySystem = default!; [Dependency] private readonly PopupSystem _popupSystem = default!; diff --git a/Content.Server/Access/Systems/PresetIdCardSystem.cs b/Content.Server/Access/Systems/PresetIdCardSystem.cs index a9e22ebf62..6f0d74e963 100644 --- a/Content.Server/Access/Systems/PresetIdCardSystem.cs +++ b/Content.Server/Access/Systems/PresetIdCardSystem.cs @@ -9,7 +9,7 @@ using System; namespace Content.Server.Access.Systems { - public class PresetIdCardSystem : EntitySystem + public sealed class PresetIdCardSystem : EntitySystem { [Dependency] private readonly IPrototypeManager _prototypeManager = default!; [Dependency] private readonly IdCardSystem _cardSystem = default!; diff --git a/Content.Server/Act/IDisarmedAct.cs b/Content.Server/Act/IDisarmedAct.cs index 42571c7c86..9602cbabb2 100644 --- a/Content.Server/Act/IDisarmedAct.cs +++ b/Content.Server/Act/IDisarmedAct.cs @@ -24,7 +24,7 @@ namespace Content.Server.Act int Priority => 0; } - public class DisarmedActEvent : HandledEntityEventArgs + public sealed class DisarmedActEvent : HandledEntityEventArgs { /// /// The entity being disarmed. diff --git a/Content.Server/Actions/Actions/CombatMode.cs b/Content.Server/Actions/Actions/CombatMode.cs index e072b317a9..9c628ad015 100644 --- a/Content.Server/Actions/Actions/CombatMode.cs +++ b/Content.Server/Actions/Actions/CombatMode.cs @@ -11,7 +11,7 @@ namespace Content.Server.Actions.Actions { [UsedImplicitly] [DataDefinition] - public class CombatMode : IToggleAction + public sealed class CombatMode : IToggleAction { public bool DoToggleAction(ToggleActionEventArgs args) { diff --git a/Content.Server/Actions/Actions/DebugInstant.cs b/Content.Server/Actions/Actions/DebugInstant.cs index 02c54137a4..f5ef59ceeb 100644 --- a/Content.Server/Actions/Actions/DebugInstant.cs +++ b/Content.Server/Actions/Actions/DebugInstant.cs @@ -12,7 +12,7 @@ namespace Content.Server.Actions.Actions /// [UsedImplicitly] [DataDefinition] - public class DebugInstant : IInstantAction, IInstantItemAction + public sealed class DebugInstant : IInstantAction, IInstantItemAction { [DataField("message")] public string Message { get; [UsedImplicitly] private set; } = "Instant action used."; [DataField("cooldown")] public float Cooldown { get; [UsedImplicitly] private set; } diff --git a/Content.Server/Actions/Actions/DebugTargetEntity.cs b/Content.Server/Actions/Actions/DebugTargetEntity.cs index d30679e9f9..6f9ca4beaa 100644 --- a/Content.Server/Actions/Actions/DebugTargetEntity.cs +++ b/Content.Server/Actions/Actions/DebugTargetEntity.cs @@ -9,7 +9,7 @@ namespace Content.Server.Actions.Actions { [UsedImplicitly] [DataDefinition] - public class DebugTargetEntity : ITargetEntityAction, ITargetEntityItemAction + public sealed class DebugTargetEntity : ITargetEntityAction, ITargetEntityItemAction { public void DoTargetEntityAction(TargetEntityItemActionEventArgs args) { diff --git a/Content.Server/Actions/Actions/DebugTargetPoint.cs b/Content.Server/Actions/Actions/DebugTargetPoint.cs index bcab85d283..f6013868d3 100644 --- a/Content.Server/Actions/Actions/DebugTargetPoint.cs +++ b/Content.Server/Actions/Actions/DebugTargetPoint.cs @@ -9,7 +9,7 @@ namespace Content.Server.Actions.Actions { [UsedImplicitly] [DataDefinition] - public class DebugTargetPoint : ITargetPointAction, ITargetPointItemAction + public sealed class DebugTargetPoint : ITargetPointAction, ITargetPointItemAction { public void DoTargetPointAction(TargetPointItemActionEventArgs args) { diff --git a/Content.Server/Actions/Actions/DebugToggle.cs b/Content.Server/Actions/Actions/DebugToggle.cs index 44370bc023..69d297079c 100644 --- a/Content.Server/Actions/Actions/DebugToggle.cs +++ b/Content.Server/Actions/Actions/DebugToggle.cs @@ -10,7 +10,7 @@ namespace Content.Server.Actions.Actions { [UsedImplicitly] [DataDefinition] - public class DebugToggle : IToggleAction, IToggleItemAction + public sealed class DebugToggle : IToggleAction, IToggleItemAction { [DataField("messageOn")] public string MessageOn { get; private set; } = "on!"; [DataField("messageOff")] public string MessageOff { get; private set; } = "off!"; diff --git a/Content.Server/Actions/Actions/DisarmAction.cs b/Content.Server/Actions/Actions/DisarmAction.cs index 07d2e69af5..98ebca505b 100644 --- a/Content.Server/Actions/Actions/DisarmAction.cs +++ b/Content.Server/Actions/Actions/DisarmAction.cs @@ -32,7 +32,7 @@ namespace Content.Server.Actions.Actions { [UsedImplicitly] [DataDefinition] - public class DisarmAction : ITargetEntityAction + public sealed class DisarmAction : ITargetEntityAction { [DataField("failProb")] private float _failProb = 0.4f; [DataField("pushProb")] private float _pushProb = 0.4f; diff --git a/Content.Server/Actions/Actions/GhostBoo.cs b/Content.Server/Actions/Actions/GhostBoo.cs index 3a563da8ed..190fc05be4 100644 --- a/Content.Server/Actions/Actions/GhostBoo.cs +++ b/Content.Server/Actions/Actions/GhostBoo.cs @@ -15,7 +15,7 @@ namespace Content.Server.Actions.Actions /// [UsedImplicitly] [DataDefinition] - public class GhostBoo : IInstantAction + public sealed class GhostBoo : IInstantAction { [DataField("radius")] private float _radius = 3; [DataField("cooldown")] private float _cooldown = 120; diff --git a/Content.Server/Actions/Actions/GuardianToggleAction.cs b/Content.Server/Actions/Actions/GuardianToggleAction.cs index 5343e72284..33b2b4b492 100644 --- a/Content.Server/Actions/Actions/GuardianToggleAction.cs +++ b/Content.Server/Actions/Actions/GuardianToggleAction.cs @@ -15,7 +15,7 @@ namespace Content.Server.Actions.Actions /// [UsedImplicitly] [DataDefinition] - public class ToggleGuardianAction : IInstantAction + public sealed class ToggleGuardianAction : IInstantAction { [DataField("cooldown")] public float Cooldown { get; [UsedImplicitly] private set; } diff --git a/Content.Server/Actions/Actions/PAIMidi.cs b/Content.Server/Actions/Actions/PAIMidi.cs index 942633e920..10e08b2731 100644 --- a/Content.Server/Actions/Actions/PAIMidi.cs +++ b/Content.Server/Actions/Actions/PAIMidi.cs @@ -18,7 +18,7 @@ namespace Content.Server.Actions.Actions /// [UsedImplicitly] [DataDefinition] - public class PAIMidi : IInstantAction + public sealed class PAIMidi : IInstantAction { public void DoInstantAction(InstantActionEventArgs args) diff --git a/Content.Server/Actions/Actions/ScreamAction.cs b/Content.Server/Actions/Actions/ScreamAction.cs index 28a20be608..b86842ad40 100644 --- a/Content.Server/Actions/Actions/ScreamAction.cs +++ b/Content.Server/Actions/Actions/ScreamAction.cs @@ -20,7 +20,7 @@ namespace Content.Server.Actions.Actions { [UsedImplicitly] [DataDefinition] - public class ScreamAction : IInstantAction, ISerializationHooks + public sealed class ScreamAction : IInstantAction, ISerializationHooks { private const float Variation = 0.125f; private const float Volume = 4f; diff --git a/Content.Server/Actions/Events/DisarmAttemptEvent.cs b/Content.Server/Actions/Events/DisarmAttemptEvent.cs index 2a5d167209..f28f0fd565 100644 --- a/Content.Server/Actions/Events/DisarmAttemptEvent.cs +++ b/Content.Server/Actions/Events/DisarmAttemptEvent.cs @@ -2,7 +2,7 @@ using Robust.Shared.GameObjects; namespace Content.Server.Actions.Events { - public class DisarmAttemptEvent : CancellableEntityEventArgs + public sealed class DisarmAttemptEvent : CancellableEntityEventArgs { public readonly EntityUid TargetUid; public readonly EntityUid DisarmerUid; diff --git a/Content.Server/Actions/Spells/GiveItemSpell.cs b/Content.Server/Actions/Spells/GiveItemSpell.cs index 58fa0d8bf0..a57f5b5783 100644 --- a/Content.Server/Actions/Spells/GiveItemSpell.cs +++ b/Content.Server/Actions/Spells/GiveItemSpell.cs @@ -22,7 +22,7 @@ namespace Content.Server.Actions.Spells { [UsedImplicitly] [DataDefinition] - public class GiveItemSpell : IInstantAction + public sealed class GiveItemSpell : IInstantAction { //TODO: Needs to be an EntityPrototype for proper validation [ViewVariables] [DataField("castMessage")] public string? CastMessage { get; set; } = default!; [ViewVariables] [DataField("cooldown")] public float CoolDown { get; set; } = 1f; diff --git a/Content.Server/Administration/AdminSystem.cs b/Content.Server/Administration/AdminSystem.cs index 61e57de557..317b8ab4df 100644 --- a/Content.Server/Administration/AdminSystem.cs +++ b/Content.Server/Administration/AdminSystem.cs @@ -15,7 +15,7 @@ using Robust.Shared.Network; namespace Content.Server.Administration { - public class AdminSystem : EntitySystem + public sealed class AdminSystem : EntitySystem { [Dependency] private readonly IPlayerManager _playerManager = default!; [Dependency] private readonly IAdminManager _adminManager = default!; diff --git a/Content.Server/Administration/AdminVerbSystem.cs b/Content.Server/Administration/AdminVerbSystem.cs index da6b7fd169..4e373e4381 100644 --- a/Content.Server/Administration/AdminVerbSystem.cs +++ b/Content.Server/Administration/AdminVerbSystem.cs @@ -38,7 +38,7 @@ namespace Content.Server.Administration /// /// System to provide various global admin/debug verbs /// - public class AdminVerbSystem : EntitySystem + public sealed class AdminVerbSystem : EntitySystem { [Dependency] private readonly IConGroupController _groupController = default!; [Dependency] private readonly IConsoleHost _console = default!; @@ -78,7 +78,7 @@ namespace Content.Server.Administration _console.RemoteExecuteCommand(player, $"openahelp \"{targetActor.PlayerSession.UserId}\""); verb.Impact = LogImpact.Low; args.Verbs.Add(verb); - + // Freeze var frozen = HasComp(args.Target); args.Verbs.Add(new Verb diff --git a/Content.Server/Administration/BwoinkSystem.cs b/Content.Server/Administration/BwoinkSystem.cs index bacefd0098..43656936dc 100644 --- a/Content.Server/Administration/BwoinkSystem.cs +++ b/Content.Server/Administration/BwoinkSystem.cs @@ -26,7 +26,7 @@ using System.Text.Json.Serialization; namespace Content.Server.Administration { [UsedImplicitly] - public class BwoinkSystem : SharedBwoinkSystem + public sealed class BwoinkSystem : SharedBwoinkSystem { [Dependency] private readonly IPlayerManager _playerManager = default!; [Dependency] private readonly IAdminManager _adminManager = default!; diff --git a/Content.Server/Administration/Commands/AGhost.cs b/Content.Server/Administration/Commands/AGhost.cs index d7252145c7..9e4eb4e412 100644 --- a/Content.Server/Administration/Commands/AGhost.cs +++ b/Content.Server/Administration/Commands/AGhost.cs @@ -11,7 +11,7 @@ using Robust.Shared.IoC; namespace Content.Server.Administration.Commands { [AdminCommand(AdminFlags.Admin)] - public class AGhost : IConsoleCommand + public sealed class AGhost : IConsoleCommand { [Dependency] private readonly IEntityManager _entities = default!; diff --git a/Content.Server/Administration/Commands/AddBodyPartCommand.cs b/Content.Server/Administration/Commands/AddBodyPartCommand.cs index f9cf3cfd97..70f9896f1e 100644 --- a/Content.Server/Administration/Commands/AddBodyPartCommand.cs +++ b/Content.Server/Administration/Commands/AddBodyPartCommand.cs @@ -8,7 +8,7 @@ using Robust.Shared.Localization; namespace Content.Server.Administration.Commands { [AdminCommand(AdminFlags.Fun)] - public class AddBodyPartCommand : IConsoleCommand + public sealed class AddBodyPartCommand : IConsoleCommand { public string Command => "addbodypart"; public string Description => "Adds a given entity to a containing body."; diff --git a/Content.Server/Administration/Commands/AddEntityStorageCommand.cs b/Content.Server/Administration/Commands/AddEntityStorageCommand.cs index d3385136cd..2fb5cf76e6 100644 --- a/Content.Server/Administration/Commands/AddEntityStorageCommand.cs +++ b/Content.Server/Administration/Commands/AddEntityStorageCommand.cs @@ -8,7 +8,7 @@ using Robust.Shared.Localization; namespace Content.Server.Administration.Commands { [AdminCommand(AdminFlags.Fun)] - public class AddEntityStorageCommand : IConsoleCommand + public sealed class AddEntityStorageCommand : IConsoleCommand { public string Command => "addstorage"; public string Description => "Adds a given entity to a containing storage."; diff --git a/Content.Server/Administration/Commands/AddMechanismCommand.cs b/Content.Server/Administration/Commands/AddMechanismCommand.cs index 71a9459348..34770972a6 100644 --- a/Content.Server/Administration/Commands/AddMechanismCommand.cs +++ b/Content.Server/Administration/Commands/AddMechanismCommand.cs @@ -9,7 +9,7 @@ using Robust.Shared.Localization; namespace Content.Server.Administration.Commands { [AdminCommand(AdminFlags.Fun)] - public class AddMechanismCommand : IConsoleCommand + public sealed class AddMechanismCommand : IConsoleCommand { public string Command => "addmechanism"; public string Description => "Adds a given entity to a containing body."; diff --git a/Content.Server/Administration/Commands/AddReagent.cs b/Content.Server/Administration/Commands/AddReagent.cs index 59144921d2..40dd850af2 100644 --- a/Content.Server/Administration/Commands/AddReagent.cs +++ b/Content.Server/Administration/Commands/AddReagent.cs @@ -15,7 +15,7 @@ namespace Content.Server.Administration.Commands /// Command that allows you to edit an existing solution by adding (or removing) reagents. /// [AdminCommand(AdminFlags.Fun)] - public class AddReagent : IConsoleCommand + public sealed class AddReagent : IConsoleCommand { public string Command => "addreagent"; public string Description => "Add (or remove) some amount of reagent from some solution."; diff --git a/Content.Server/Administration/Commands/AdminLogBulk.cs b/Content.Server/Administration/Commands/AdminLogBulk.cs index ec833df9a2..ec66ad42f9 100644 --- a/Content.Server/Administration/Commands/AdminLogBulk.cs +++ b/Content.Server/Administration/Commands/AdminLogBulk.cs @@ -11,7 +11,7 @@ namespace Content.Server.Administration.Commands; #if DEBUG [AdminCommand(AdminFlags.Host)] -public class AdminLogBulk : IConsoleCommand +public sealed class AdminLogBulk : IConsoleCommand { public string Command => "adminlogbulk"; public string Description => "Adds debug logs to the database."; diff --git a/Content.Server/Administration/Commands/AnnounceUiCommand.cs b/Content.Server/Administration/Commands/AnnounceUiCommand.cs index 025d6b9aa7..f40787cf95 100644 --- a/Content.Server/Administration/Commands/AnnounceUiCommand.cs +++ b/Content.Server/Administration/Commands/AnnounceUiCommand.cs @@ -8,7 +8,7 @@ using Robust.Shared.IoC; namespace Content.Server.Administration.Commands { [AdminCommand(AdminFlags.Admin)] - public class AnnounceUiCommand : IConsoleCommand + public sealed class AnnounceUiCommand : IConsoleCommand { public string Command => "announceui"; diff --git a/Content.Server/Administration/Commands/BanListCommand.cs b/Content.Server/Administration/Commands/BanListCommand.cs index 3bb9894ecb..02ca8ace7c 100644 --- a/Content.Server/Administration/Commands/BanListCommand.cs +++ b/Content.Server/Administration/Commands/BanListCommand.cs @@ -10,7 +10,7 @@ using Robust.Shared.Network; namespace Content.Server.Administration.Commands { [AdminCommand(AdminFlags.Ban)] - public class BanListCommand : IConsoleCommand + public sealed class BanListCommand : IConsoleCommand { public string Command => "banlist"; public string Description => "Lists somebody's bans"; diff --git a/Content.Server/Administration/Commands/ControlMob.cs b/Content.Server/Administration/Commands/ControlMob.cs index 6dae68645e..c4aa192e0f 100644 --- a/Content.Server/Administration/Commands/ControlMob.cs +++ b/Content.Server/Administration/Commands/ControlMob.cs @@ -11,7 +11,7 @@ using Robust.Shared.Utility; namespace Content.Server.Administration.Commands { [AdminCommand(AdminFlags.Admin)] - class ControlMob : IConsoleCommand + sealed class ControlMob : IConsoleCommand { [Dependency] private readonly IEntityManager _entities = default!; diff --git a/Content.Server/Administration/Commands/DSay.cs b/Content.Server/Administration/Commands/DSay.cs index 42e00b264e..8353bc40da 100644 --- a/Content.Server/Administration/Commands/DSay.cs +++ b/Content.Server/Administration/Commands/DSay.cs @@ -8,7 +8,7 @@ using Robust.Shared.Localization; namespace Content.Server.Administration.Commands { [AdminCommand(AdminFlags.Admin)] - class DSay : IConsoleCommand + sealed class DSay : IConsoleCommand { public string Command => "dsay"; diff --git a/Content.Server/Administration/Commands/DeAdminCommand.cs b/Content.Server/Administration/Commands/DeAdminCommand.cs index 63feb7846b..5be0b44595 100644 --- a/Content.Server/Administration/Commands/DeAdminCommand.cs +++ b/Content.Server/Administration/Commands/DeAdminCommand.cs @@ -10,7 +10,7 @@ namespace Content.Server.Administration.Commands { [UsedImplicitly] [AdminCommand(AdminFlags.None)] - public class DeAdminCommand : IConsoleCommand + public sealed class DeAdminCommand : IConsoleCommand { public string Command => "deadmin"; public string Description => "Temporarily de-admins you so you can experience the round as a normal player."; diff --git a/Content.Server/Administration/Commands/DeleteComponent.cs b/Content.Server/Administration/Commands/DeleteComponent.cs index d848b1312b..e9031e32ae 100644 --- a/Content.Server/Administration/Commands/DeleteComponent.cs +++ b/Content.Server/Administration/Commands/DeleteComponent.cs @@ -6,7 +6,7 @@ using Robust.Shared.IoC; namespace Content.Server.Administration.Commands { [AdminCommand(AdminFlags.VarEdit)] - public class DeleteComponent : IConsoleCommand + public sealed class DeleteComponent : IConsoleCommand { public string Command => "deletecomponent"; public string Description => "Deletes all instances of the specified component."; diff --git a/Content.Server/Administration/Commands/DeleteEntitiesWithComponent.cs b/Content.Server/Administration/Commands/DeleteEntitiesWithComponent.cs index a2324d3810..f3c72fac1a 100644 --- a/Content.Server/Administration/Commands/DeleteEntitiesWithComponent.cs +++ b/Content.Server/Administration/Commands/DeleteEntitiesWithComponent.cs @@ -10,7 +10,7 @@ using Robust.Shared.Localization; namespace Content.Server.Administration.Commands { [AdminCommand(AdminFlags.VarEdit)] - class DeleteEntitiesWithComponent : IConsoleCommand + sealed class DeleteEntitiesWithComponent : IConsoleCommand { public string Command => "deleteewc"; diff --git a/Content.Server/Administration/Commands/DeleteEntitiesWithId.cs b/Content.Server/Administration/Commands/DeleteEntitiesWithId.cs index def77308ed..3c17c2fca2 100644 --- a/Content.Server/Administration/Commands/DeleteEntitiesWithId.cs +++ b/Content.Server/Administration/Commands/DeleteEntitiesWithId.cs @@ -7,7 +7,7 @@ using Robust.Shared.IoC; namespace Content.Server.Administration.Commands { [AdminCommand(AdminFlags.Spawn)] - public class DeleteEntitiesWithId : IConsoleCommand + public sealed class DeleteEntitiesWithId : IConsoleCommand { public string Command => "deleteewi"; public string Description => "Deletes entities with the specified prototype ID."; diff --git a/Content.Server/Administration/Commands/DeleteEntityCommand.cs b/Content.Server/Administration/Commands/DeleteEntityCommand.cs index 1d8aa288ac..f7945d045f 100644 --- a/Content.Server/Administration/Commands/DeleteEntityCommand.cs +++ b/Content.Server/Administration/Commands/DeleteEntityCommand.cs @@ -6,7 +6,7 @@ using Robust.Shared.IoC; namespace Content.Server.Administration.Commands { [AdminCommand(AdminFlags.Spawn)] - public class DeleteEntityCommand : IConsoleCommand + public sealed class DeleteEntityCommand : IConsoleCommand { public string Command => "deleteentity"; public string Description => "Deletes an entity with the given id."; diff --git a/Content.Server/Administration/Commands/FindEntitiesWithComponents.cs b/Content.Server/Administration/Commands/FindEntitiesWithComponents.cs index e6086e72f8..03150a3c50 100644 --- a/Content.Server/Administration/Commands/FindEntitiesWithComponents.cs +++ b/Content.Server/Administration/Commands/FindEntitiesWithComponents.cs @@ -9,7 +9,7 @@ using Robust.Shared.IoC; namespace Content.Server.Administration.Commands { [AdminCommand(AdminFlags.Mapping)] - public class FindEntitiesWithComponents : IConsoleCommand + public sealed class FindEntitiesWithComponents : IConsoleCommand { public string Command => "findentitieswithcomponents"; public string Description => "Finds entities with all of the specified components."; diff --git a/Content.Server/Administration/Commands/OpenAdminLogsCommand.cs b/Content.Server/Administration/Commands/OpenAdminLogsCommand.cs index 3bbbf8a375..eb2f8b292b 100644 --- a/Content.Server/Administration/Commands/OpenAdminLogsCommand.cs +++ b/Content.Server/Administration/Commands/OpenAdminLogsCommand.cs @@ -8,7 +8,7 @@ using Robust.Shared.IoC; namespace Content.Server.Administration.Commands; [AdminCommand(AdminFlags.Logs)] -public class OpenAdminLogsCommand : IConsoleCommand +public sealed class OpenAdminLogsCommand : IConsoleCommand { public string Command => "adminlogs"; public string Description => "Opens the admin logs panel."; diff --git a/Content.Server/Administration/Commands/OwoifyCommand.cs b/Content.Server/Administration/Commands/OwoifyCommand.cs index f02191407c..6faf6c3b15 100644 --- a/Content.Server/Administration/Commands/OwoifyCommand.cs +++ b/Content.Server/Administration/Commands/OwoifyCommand.cs @@ -9,7 +9,7 @@ using Robust.Shared.Random; namespace Content.Server.Administration.Commands; [AdminCommand(AdminFlags.Fun)] -public class OwoifyCommand : IConsoleCommand +public sealed class OwoifyCommand : IConsoleCommand { public string Command => "owoify"; diff --git a/Content.Server/Administration/Commands/PardonCommand.cs b/Content.Server/Administration/Commands/PardonCommand.cs index ff088591ab..dc8a796233 100644 --- a/Content.Server/Administration/Commands/PardonCommand.cs +++ b/Content.Server/Administration/Commands/PardonCommand.cs @@ -10,7 +10,7 @@ using Robust.Shared.IoC; namespace Content.Server.Administration.Commands { [AdminCommand(AdminFlags.Ban)] - public class PardonCommand : IConsoleCommand + public sealed class PardonCommand : IConsoleCommand { public string Command => "pardon"; public string Description => "Pardons somebody's ban"; diff --git a/Content.Server/Administration/Commands/ReAdminCommand.cs b/Content.Server/Administration/Commands/ReAdminCommand.cs index 6d2804fd4a..9f1ad91c3f 100644 --- a/Content.Server/Administration/Commands/ReAdminCommand.cs +++ b/Content.Server/Administration/Commands/ReAdminCommand.cs @@ -8,7 +8,7 @@ using Robust.Shared.IoC; namespace Content.Server.Administration.Commands { [AnyCommand] - public class ReAdminCommand : IConsoleCommand + public sealed class ReAdminCommand : IConsoleCommand { public string Command => "readmin"; public string Description => "Re-admins you if you previously de-adminned."; diff --git a/Content.Server/Administration/Commands/ReadyAll.cs b/Content.Server/Administration/Commands/ReadyAll.cs index 38eeecd8fe..c0f57aa2bd 100644 --- a/Content.Server/Administration/Commands/ReadyAll.cs +++ b/Content.Server/Administration/Commands/ReadyAll.cs @@ -9,7 +9,7 @@ using Robust.Shared.IoC; namespace Content.Server.Administration.Commands { [AdminCommand(AdminFlags.Round)] - public class ReadyAll : IConsoleCommand + public sealed class ReadyAll : IConsoleCommand { public string Command => "readyall"; public string Description => "Readies up all players in the lobby, except for observers."; diff --git a/Content.Server/Administration/Commands/RejuvenateCommand.cs b/Content.Server/Administration/Commands/RejuvenateCommand.cs index 186dc13a5b..db5145a999 100644 --- a/Content.Server/Administration/Commands/RejuvenateCommand.cs +++ b/Content.Server/Administration/Commands/RejuvenateCommand.cs @@ -17,7 +17,7 @@ using Robust.Shared.Localization; namespace Content.Server.Administration.Commands { [AdminCommand(AdminFlags.Admin)] - public class RejuvenateCommand : IConsoleCommand + public sealed class RejuvenateCommand : IConsoleCommand { public string Command => "rejuvenate"; diff --git a/Content.Server/Administration/Commands/RemoveBodyPartCommand.cs b/Content.Server/Administration/Commands/RemoveBodyPartCommand.cs index 9d9822c532..06a6cc075d 100644 --- a/Content.Server/Administration/Commands/RemoveBodyPartCommand.cs +++ b/Content.Server/Administration/Commands/RemoveBodyPartCommand.cs @@ -8,7 +8,7 @@ using Robust.Shared.Localization; namespace Content.Server.Administration.Commands { [AdminCommand(AdminFlags.Fun)] - public class RemoveBodyPartCommand : IConsoleCommand + public sealed class RemoveBodyPartCommand : IConsoleCommand { public string Command => "rmbodypart"; public string Description => "Removes a given entity from it's containing body, if any."; diff --git a/Content.Server/Administration/Commands/RemoveEntityStorageCommand.cs b/Content.Server/Administration/Commands/RemoveEntityStorageCommand.cs index bc73bf7c51..c525351f5f 100644 --- a/Content.Server/Administration/Commands/RemoveEntityStorageCommand.cs +++ b/Content.Server/Administration/Commands/RemoveEntityStorageCommand.cs @@ -8,7 +8,7 @@ using Robust.Shared.Localization; namespace Content.Server.Administration.Commands { [AdminCommand(AdminFlags.Fun)] - public class RemoveEntityStorageCommand : IConsoleCommand + public sealed class RemoveEntityStorageCommand : IConsoleCommand { public string Command => "rmstorage"; public string Description => "Removes a given entity from it's containing storage, if any."; diff --git a/Content.Server/Administration/Commands/RemoveExtraComponents.cs b/Content.Server/Administration/Commands/RemoveExtraComponents.cs index ae1d31b209..64bbbaf52d 100644 --- a/Content.Server/Administration/Commands/RemoveExtraComponents.cs +++ b/Content.Server/Administration/Commands/RemoveExtraComponents.cs @@ -7,7 +7,7 @@ using Robust.Shared.Prototypes; namespace Content.Server.Administration.Commands { [AdminCommand(AdminFlags.Mapping)] - public class RemoveExtraComponents : IConsoleCommand + public sealed class RemoveExtraComponents : IConsoleCommand { public string Command => "removeextracomponents"; public string Description => "Removes all components from all entities of the specified id if that component is not in its prototype.\nIf no id is specified, it matches all entities."; diff --git a/Content.Server/Administration/Commands/RemoveMechanismCommand.cs b/Content.Server/Administration/Commands/RemoveMechanismCommand.cs index 6a8d35a249..0fa455e375 100644 --- a/Content.Server/Administration/Commands/RemoveMechanismCommand.cs +++ b/Content.Server/Administration/Commands/RemoveMechanismCommand.cs @@ -9,7 +9,7 @@ using Robust.Shared.Localization; namespace Content.Server.Administration.Commands { [AdminCommand(AdminFlags.Fun)] - public class RemoveMechanismCommand : IConsoleCommand + public sealed class RemoveMechanismCommand : IConsoleCommand { public string Command => "rmmechanism"; public string Description => "Removes a given entity from it's containing bodypart, if any."; diff --git a/Content.Server/Administration/Commands/SetAdminOOC.cs b/Content.Server/Administration/Commands/SetAdminOOC.cs index 20e69eb341..9a3d70881f 100644 --- a/Content.Server/Administration/Commands/SetAdminOOC.cs +++ b/Content.Server/Administration/Commands/SetAdminOOC.cs @@ -11,7 +11,7 @@ using Robust.Shared.Maths; namespace Content.Server.Administration.Commands { [AdminCommand(AdminFlags.Admin)] - internal class SetAdminOOC : IConsoleCommand + internal sealed class SetAdminOOC : IConsoleCommand { public string Command => "setadminooc"; public string Description => Loc.GetString("set-admin-ooc-command-description", ("command", Command)); diff --git a/Content.Server/Administration/Commands/SetMindCommand.cs b/Content.Server/Administration/Commands/SetMindCommand.cs index 9fc34085f7..f271aa8bef 100644 --- a/Content.Server/Administration/Commands/SetMindCommand.cs +++ b/Content.Server/Administration/Commands/SetMindCommand.cs @@ -10,7 +10,7 @@ using Robust.Shared.Localization; namespace Content.Server.Administration.Commands { [AdminCommand(AdminFlags.Admin)] - class SetMindCommand : IConsoleCommand + sealed class SetMindCommand : IConsoleCommand { public string Command => "setmind"; diff --git a/Content.Server/Administration/Commands/SetOutfitCommand.cs b/Content.Server/Administration/Commands/SetOutfitCommand.cs index 187cf7e30b..ae5fe1471c 100644 --- a/Content.Server/Administration/Commands/SetOutfitCommand.cs +++ b/Content.Server/Administration/Commands/SetOutfitCommand.cs @@ -18,7 +18,7 @@ using InventoryComponent = Content.Shared.Inventory.InventoryComponent; namespace Content.Server.Administration.Commands { [AdminCommand(AdminFlags.Admin)] - class SetOutfitCommand : IConsoleCommand + sealed class SetOutfitCommand : IConsoleCommand { public string Command => "setoutfit"; diff --git a/Content.Server/Administration/Commands/SetSolutionCapacity.cs b/Content.Server/Administration/Commands/SetSolutionCapacity.cs index 917b6a9002..9a8ad0ecf1 100644 --- a/Content.Server/Administration/Commands/SetSolutionCapacity.cs +++ b/Content.Server/Administration/Commands/SetSolutionCapacity.cs @@ -9,7 +9,7 @@ using Robust.Shared.IoC; namespace Content.Server.Administration.Commands { [AdminCommand(AdminFlags.Fun)] - public class SetSolutionCapacity : IConsoleCommand + public sealed class SetSolutionCapacity : IConsoleCommand { public string Command => "setsolutioncapacity"; public string Description => "Set the capacity (maximum volume) of some solution."; diff --git a/Content.Server/Administration/Commands/SetSolutionTemperature.cs b/Content.Server/Administration/Commands/SetSolutionTemperature.cs index 998b0dbd5a..b4cae498ec 100644 --- a/Content.Server/Administration/Commands/SetSolutionTemperature.cs +++ b/Content.Server/Administration/Commands/SetSolutionTemperature.cs @@ -8,7 +8,7 @@ using Robust.Shared.IoC; namespace Content.Server.Administration.Commands { [AdminCommand(AdminFlags.Fun)] - public class SetSolutionTemperature : IConsoleCommand + public sealed class SetSolutionTemperature : IConsoleCommand { public string Command => "setsolutiontemperature"; public string Description => "Set the temperature of some solution."; diff --git a/Content.Server/Administration/Commands/SetSolutionThermalEnergy.cs b/Content.Server/Administration/Commands/SetSolutionThermalEnergy.cs index 5b8ac77053..4b50836fb4 100644 --- a/Content.Server/Administration/Commands/SetSolutionThermalEnergy.cs +++ b/Content.Server/Administration/Commands/SetSolutionThermalEnergy.cs @@ -8,7 +8,7 @@ using Robust.Shared.IoC; namespace Content.Server.Administration.Commands { [AdminCommand(AdminFlags.Fun)] - public class SetSolutionThermalEnergy : IConsoleCommand + public sealed class SetSolutionThermalEnergy : IConsoleCommand { public string Command => "setsolutionthermalenergy"; public string Description => "Set the thermal energy of some solution."; diff --git a/Content.Server/Administration/Commands/ShuttleCommands.cs b/Content.Server/Administration/Commands/ShuttleCommands.cs index 6241ab1b89..f9ac6de1a3 100644 --- a/Content.Server/Administration/Commands/ShuttleCommands.cs +++ b/Content.Server/Administration/Commands/ShuttleCommands.cs @@ -10,7 +10,7 @@ using Robust.Shared.Localization; namespace Content.Server.Administration.Commands { [AdminCommand(AdminFlags.Round)] - public class CallShuttleCommand : IConsoleCommand + public sealed class CallShuttleCommand : IConsoleCommand { public string Command => "callshuttle"; public string Description => Loc.GetString("call-shuttle-command-description"); @@ -37,7 +37,7 @@ namespace Content.Server.Administration.Commands } [AdminCommand(AdminFlags.Round)] - public class RecallShuttleCommand : IConsoleCommand + public sealed class RecallShuttleCommand : IConsoleCommand { public string Command => "recallshuttle"; public string Description => Loc.GetString("recall-shuttle-command-description"); diff --git a/Content.Server/Administration/Commands/Station/AdjustStationJobCommand.cs b/Content.Server/Administration/Commands/Station/AdjustStationJobCommand.cs index 1cd957eb14..32ced8277d 100644 --- a/Content.Server/Administration/Commands/Station/AdjustStationJobCommand.cs +++ b/Content.Server/Administration/Commands/Station/AdjustStationJobCommand.cs @@ -11,7 +11,7 @@ using Robust.Shared.Prototypes; namespace Content.Server.Administration.Commands.Station; [AdminCommand(AdminFlags.Round)] -public class AdjustStationJobCommand : IConsoleCommand +public sealed class AdjustStationJobCommand : IConsoleCommand { public string Command => "adjstationjob"; diff --git a/Content.Server/Administration/Commands/Station/ListStationJobsCommand.cs b/Content.Server/Administration/Commands/Station/ListStationJobsCommand.cs index 68458c6d01..482579e3f2 100644 --- a/Content.Server/Administration/Commands/Station/ListStationJobsCommand.cs +++ b/Content.Server/Administration/Commands/Station/ListStationJobsCommand.cs @@ -8,7 +8,7 @@ using Robust.Shared.Localization; namespace Content.Server.Administration.Commands.Station; [AdminCommand(AdminFlags.Admin)] -public class ListStationJobsCommand : IConsoleCommand +public sealed class ListStationJobsCommand : IConsoleCommand { public string Command => "lsstationjobs"; diff --git a/Content.Server/Administration/Commands/Station/ListStationsCommand.cs b/Content.Server/Administration/Commands/Station/ListStationsCommand.cs index 29a513f317..8bdfce0c05 100644 --- a/Content.Server/Administration/Commands/Station/ListStationsCommand.cs +++ b/Content.Server/Administration/Commands/Station/ListStationsCommand.cs @@ -6,7 +6,7 @@ using Robust.Shared.GameObjects; namespace Content.Server.Administration.Commands.Station; [AdminCommand(AdminFlags.Admin)] -public class ListStationsCommand : IConsoleCommand +public sealed class ListStationsCommand : IConsoleCommand { public string Command => "lsstations"; diff --git a/Content.Server/Administration/Commands/Station/RenameStationCommand.cs b/Content.Server/Administration/Commands/Station/RenameStationCommand.cs index c0b742779a..3d2b37576a 100644 --- a/Content.Server/Administration/Commands/Station/RenameStationCommand.cs +++ b/Content.Server/Administration/Commands/Station/RenameStationCommand.cs @@ -8,7 +8,7 @@ using Robust.Shared.Localization; namespace Content.Server.Administration.Commands.Station; [AdminCommand(AdminFlags.Admin)] -public class RenameStationCommand : IConsoleCommand +public sealed class RenameStationCommand : IConsoleCommand { public string Command => "renamestation"; diff --git a/Content.Server/Administration/Commands/WarpCommand.cs b/Content.Server/Administration/Commands/WarpCommand.cs index 8a9c8b5291..9599bb9971 100644 --- a/Content.Server/Administration/Commands/WarpCommand.cs +++ b/Content.Server/Administration/Commands/WarpCommand.cs @@ -14,7 +14,7 @@ using Robust.Shared.Physics; namespace Content.Server.Administration.Commands { [AdminCommand(AdminFlags.Admin)] - public class WarpCommand : IConsoleCommand + public sealed class WarpCommand : IConsoleCommand { public string Command => "warp"; public string Description => "Teleports you to predefined areas on the map."; diff --git a/Content.Server/Administration/GamePrototypeLoadManager.cs b/Content.Server/Administration/GamePrototypeLoadManager.cs index 2fff6bc72c..4af6ecdce6 100644 --- a/Content.Server/Administration/GamePrototypeLoadManager.cs +++ b/Content.Server/Administration/GamePrototypeLoadManager.cs @@ -14,7 +14,7 @@ namespace Content.Server.Administration; /// /// Manages sending runtime-loaded prototypes from game staff to clients. /// -public class GamePrototypeLoadManager : IGamePrototypeLoadManager +public sealed class GamePrototypeLoadManager : IGamePrototypeLoadManager { [Dependency] private readonly IServerNetManager _netManager = default!; [Dependency] private readonly IAdminManager _adminManager = default!; diff --git a/Content.Server/Administration/Logs/AdminLogSystem.Cache.cs b/Content.Server/Administration/Logs/AdminLogSystem.Cache.cs index 67853790af..7cbea39b35 100644 --- a/Content.Server/Administration/Logs/AdminLogSystem.Cache.cs +++ b/Content.Server/Administration/Logs/AdminLogSystem.Cache.cs @@ -9,7 +9,7 @@ using Prometheus; namespace Content.Server.Administration.Logs; -public partial class AdminLogSystem +public sealed partial class AdminLogSystem { private const int MaxRoundsCached = 3; private const int LogListInitialSize = 30_000; diff --git a/Content.Server/Administration/Logs/AdminLogSystem.Json.cs b/Content.Server/Administration/Logs/AdminLogSystem.Json.cs index 928eae22b3..9e317704ec 100644 --- a/Content.Server/Administration/Logs/AdminLogSystem.Json.cs +++ b/Content.Server/Administration/Logs/AdminLogSystem.Json.cs @@ -11,7 +11,7 @@ using Robust.Shared.IoC; namespace Content.Server.Administration.Logs; -public partial class AdminLogSystem +public sealed partial class AdminLogSystem { private static readonly JsonNamingPolicy NamingPolicy = JsonNamingPolicy.CamelCase; diff --git a/Content.Server/Administration/Logs/AdminLogSystem.cs b/Content.Server/Administration/Logs/AdminLogSystem.cs index bf46d88ae1..89b0734f64 100644 --- a/Content.Server/Administration/Logs/AdminLogSystem.cs +++ b/Content.Server/Administration/Logs/AdminLogSystem.cs @@ -20,7 +20,7 @@ using Robust.Shared.Reflection; namespace Content.Server.Administration.Logs; -public partial class AdminLogSystem : SharedAdminLogSystem +public sealed partial class AdminLogSystem : SharedAdminLogSystem { [Dependency] private readonly IConfigurationManager _configuration = default!; [Dependency] private readonly IEntityManager _entityManager = default!; diff --git a/Content.Server/Administration/Logs/Converters/AdminLogConverterAttribute.cs b/Content.Server/Administration/Logs/Converters/AdminLogConverterAttribute.cs index 34d98699c3..3ac1c5a5c8 100644 --- a/Content.Server/Administration/Logs/Converters/AdminLogConverterAttribute.cs +++ b/Content.Server/Administration/Logs/Converters/AdminLogConverterAttribute.cs @@ -5,6 +5,6 @@ namespace Content.Server.Administration.Logs.Converters; [AttributeUsage(AttributeTargets.Class)] [BaseTypeRequired(typeof(AdminLogConverter<>))] -public class AdminLogConverterAttribute : Attribute +public sealed class AdminLogConverterAttribute : Attribute { } diff --git a/Content.Server/Administration/Logs/Converters/EntityStringRepresentationConverter.cs b/Content.Server/Administration/Logs/Converters/EntityStringRepresentationConverter.cs index 991aa4d457..a7dc779252 100644 --- a/Content.Server/Administration/Logs/Converters/EntityStringRepresentationConverter.cs +++ b/Content.Server/Administration/Logs/Converters/EntityStringRepresentationConverter.cs @@ -4,7 +4,7 @@ using Robust.Shared.GameObjects; namespace Content.Server.Administration.Logs.Converters; [AdminLogConverter] -public class EntityStringRepresentationConverter : AdminLogConverter +public sealed class EntityStringRepresentationConverter : AdminLogConverter { public override void Write(Utf8JsonWriter writer, EntityStringRepresentation value, JsonSerializerOptions options) { diff --git a/Content.Server/Administration/Logs/Converters/EntityUidConverter.cs b/Content.Server/Administration/Logs/Converters/EntityUidConverter.cs index 8cd5fb74db..55db739359 100644 --- a/Content.Server/Administration/Logs/Converters/EntityUidConverter.cs +++ b/Content.Server/Administration/Logs/Converters/EntityUidConverter.cs @@ -6,7 +6,7 @@ using Robust.Shared.IoC; namespace Content.Server.Administration.Logs.Converters; [AdminLogConverter] -public class EntityUidConverter : AdminLogConverter +public sealed class EntityUidConverter : AdminLogConverter { [Dependency] private readonly IEntityManager _entities = default!; diff --git a/Content.Server/Administration/Logs/Converters/FixedPoint2Converter.cs b/Content.Server/Administration/Logs/Converters/FixedPoint2Converter.cs index e31707f6ae..9f6dcfa2e5 100644 --- a/Content.Server/Administration/Logs/Converters/FixedPoint2Converter.cs +++ b/Content.Server/Administration/Logs/Converters/FixedPoint2Converter.cs @@ -4,7 +4,7 @@ using Content.Shared.FixedPoint; namespace Content.Server.Administration.Logs.Converters; [AdminLogConverter] -public class FixedPoint2Converter : AdminLogConverter +public sealed class FixedPoint2Converter : AdminLogConverter { public override void Write(Utf8JsonWriter writer, FixedPoint2 value, JsonSerializerOptions options) { diff --git a/Content.Server/Administration/Logs/Converters/PlayerSessionConverter.cs b/Content.Server/Administration/Logs/Converters/PlayerSessionConverter.cs index 5d7c133c78..e76741db45 100644 --- a/Content.Server/Administration/Logs/Converters/PlayerSessionConverter.cs +++ b/Content.Server/Administration/Logs/Converters/PlayerSessionConverter.cs @@ -6,7 +6,7 @@ using Robust.Shared.IoC; namespace Content.Server.Administration.Logs.Converters; [AdminLogConverter] -public class PlayerSessionConverter : AdminLogConverter +public sealed class PlayerSessionConverter : AdminLogConverter { public override void Write(Utf8JsonWriter writer, SerializablePlayer value, JsonSerializerOptions options) { diff --git a/Content.Server/Advertise/AdvertiseComponent.cs b/Content.Server/Advertise/AdvertiseComponent.cs index 797c78c135..135791fe8a 100644 --- a/Content.Server/Advertise/AdvertiseComponent.cs +++ b/Content.Server/Advertise/AdvertiseComponent.cs @@ -9,7 +9,7 @@ using Robust.Shared.ViewVariables; namespace Content.Server.Advertise { [RegisterComponent, Friend(typeof(AdvertiseSystem))] - public class AdvertiseComponent : Component + public sealed class AdvertiseComponent : Component { /// /// Minimum time in seconds to wait before saying a new ad, in seconds. Has to be larger than or equal to 1. diff --git a/Content.Server/Advertise/AdvertiseSystem.cs b/Content.Server/Advertise/AdvertiseSystem.cs index 3ffdc39eb1..b8467d1e7f 100644 --- a/Content.Server/Advertise/AdvertiseSystem.cs +++ b/Content.Server/Advertise/AdvertiseSystem.cs @@ -12,7 +12,7 @@ using Robust.Shared.Timing; namespace Content.Server.Advertise { - public class AdvertiseSystem : EntitySystem + public sealed class AdvertiseSystem : EntitySystem { [Dependency] private readonly IPrototypeManager _prototypeManager = default!; [Dependency] private readonly IRobustRandom _random = default!; @@ -121,7 +121,7 @@ namespace Content.Server.Advertise } } - public class AdvertiseEnableChangeAttemptEvent : CancellableEntityEventArgs + public sealed class AdvertiseEnableChangeAttemptEvent : CancellableEntityEventArgs { public bool NewState { get; } public bool OldState { get; } diff --git a/Content.Server/Advertisements/AdvertisementsPackPrototype.cs b/Content.Server/Advertisements/AdvertisementsPackPrototype.cs index 3f9a02d6e9..46f748a8fd 100644 --- a/Content.Server/Advertisements/AdvertisementsPackPrototype.cs +++ b/Content.Server/Advertisements/AdvertisementsPackPrototype.cs @@ -7,7 +7,7 @@ using Robust.Shared.ViewVariables; namespace Content.Server.Advertisements { [Serializable, Prototype("advertisementsPack")] - public class AdvertisementsPackPrototype : IPrototype + public sealed class AdvertisementsPackPrototype : IPrototype { [ViewVariables] [DataField("id", required: true)] diff --git a/Content.Server/Afk/AfkManager.cs b/Content.Server/Afk/AfkManager.cs index ae93e81254..a6657d9c7f 100644 --- a/Content.Server/Afk/AfkManager.cs +++ b/Content.Server/Afk/AfkManager.cs @@ -36,7 +36,7 @@ namespace Content.Server.Afk } [UsedImplicitly] - public class AfkManager : IAfkManager, IEntityEventSubscriber + public sealed class AfkManager : IAfkManager, IEntityEventSubscriber { [Dependency] private readonly IEntityManager _entityManager = default!; [Dependency] private readonly IPlayerManager _playerManager = default!; diff --git a/Content.Server/Alert/Click/RemoveCuffs.cs b/Content.Server/Alert/Click/RemoveCuffs.cs index ffc7f2ff7f..1419b89df0 100644 --- a/Content.Server/Alert/Click/RemoveCuffs.cs +++ b/Content.Server/Alert/Click/RemoveCuffs.cs @@ -12,7 +12,7 @@ namespace Content.Server.Alert.Click /// [UsedImplicitly] [DataDefinition] - public class RemoveCuffs : IAlertClick + public sealed class RemoveCuffs : IAlertClick { public void AlertClicked(EntityUid player) { diff --git a/Content.Server/Alert/Click/ResistFire.cs b/Content.Server/Alert/Click/ResistFire.cs index 1b5660623a..54e164a360 100644 --- a/Content.Server/Alert/Click/ResistFire.cs +++ b/Content.Server/Alert/Click/ResistFire.cs @@ -13,7 +13,7 @@ namespace Content.Server.Alert.Click /// [UsedImplicitly] [DataDefinition] - public class ResistFire : IAlertClick + public sealed class ResistFire : IAlertClick { public void AlertClicked(EntityUid player) { diff --git a/Content.Server/Alert/Click/StopBeingPulled.cs b/Content.Server/Alert/Click/StopBeingPulled.cs index 56bcd0ce3d..99030c1d75 100644 --- a/Content.Server/Alert/Click/StopBeingPulled.cs +++ b/Content.Server/Alert/Click/StopBeingPulled.cs @@ -14,7 +14,7 @@ namespace Content.Server.Alert.Click /// [UsedImplicitly] [DataDefinition] - public class StopBeingPulled : IAlertClick + public sealed class StopBeingPulled : IAlertClick { public void AlertClicked(EntityUid player) { diff --git a/Content.Server/Alert/Click/StopPiloting.cs b/Content.Server/Alert/Click/StopPiloting.cs index bb624a2951..ed8a090734 100644 --- a/Content.Server/Alert/Click/StopPiloting.cs +++ b/Content.Server/Alert/Click/StopPiloting.cs @@ -15,7 +15,7 @@ namespace Content.Server.Alert.Click /// [UsedImplicitly] [DataDefinition] - public class StopPiloting : IAlertClick + public sealed class StopPiloting : IAlertClick { public void AlertClicked(EntityUid player) { diff --git a/Content.Server/Alert/Click/StopPulling.cs b/Content.Server/Alert/Click/StopPulling.cs index f0381097a6..733647966f 100644 --- a/Content.Server/Alert/Click/StopPulling.cs +++ b/Content.Server/Alert/Click/StopPulling.cs @@ -13,7 +13,7 @@ namespace Content.Server.Alert.Click /// [UsedImplicitly] [DataDefinition] - public class StopPulling : IAlertClick + public sealed class StopPulling : IAlertClick { public void AlertClicked(EntityUid player) { diff --git a/Content.Server/Alert/Click/Unbuckle.cs b/Content.Server/Alert/Click/Unbuckle.cs index cc848aa02b..40026e1b74 100644 --- a/Content.Server/Alert/Click/Unbuckle.cs +++ b/Content.Server/Alert/Click/Unbuckle.cs @@ -12,7 +12,7 @@ namespace Content.Server.Alert.Click /// [UsedImplicitly] [DataDefinition] - public class Unbuckle : IAlertClick + public sealed class Unbuckle : IAlertClick { public void AlertClicked(EntityUid player) { diff --git a/Content.Server/Alert/ServerAlertsSystem.cs b/Content.Server/Alert/ServerAlertsSystem.cs index 0398dd4b17..37fbe42d2d 100644 --- a/Content.Server/Alert/ServerAlertsSystem.cs +++ b/Content.Server/Alert/ServerAlertsSystem.cs @@ -4,4 +4,4 @@ namespace Content.Server.Alert; // The only reason this exists is because the DI system requires the shared AlertsSystem // to be abstract. -internal class ServerAlertsSystem : AlertsSystem { } +internal sealed class ServerAlertsSystem : AlertsSystem { } diff --git a/Content.Server/Animals/Components/UdderComponent.cs b/Content.Server/Animals/Components/UdderComponent.cs index d0c68061ef..502873d1d4 100644 --- a/Content.Server/Animals/Components/UdderComponent.cs +++ b/Content.Server/Animals/Components/UdderComponent.cs @@ -11,7 +11,7 @@ using Robust.Shared.ViewVariables; namespace Content.Server.Animals.Components { [RegisterComponent, Friend(typeof(UdderSystem))] - internal class UdderComponent : Component + internal sealed class UdderComponent : Component { /// /// The reagent to produce. diff --git a/Content.Server/Animals/Systems/UdderSystem.cs b/Content.Server/Animals/Systems/UdderSystem.cs index c5ae24963e..758f8f6dd6 100644 --- a/Content.Server/Animals/Systems/UdderSystem.cs +++ b/Content.Server/Animals/Systems/UdderSystem.cs @@ -16,7 +16,7 @@ namespace Content.Server.Animals.Systems /// /// Gives ability to living beings with acceptable hunger level to produce milkable reagents. /// - internal class UdderSystem : EntitySystem + internal sealed class UdderSystem : EntitySystem { [Dependency] private readonly SolutionContainerSystem _solutionContainerSystem = default!; [Dependency] private readonly DoAfterSystem _doAfterSystem = default!; @@ -136,7 +136,7 @@ namespace Content.Server.Animals.Systems args.Verbs.Add(verb); } - private class MilkingFinishedEvent : EntityEventArgs + private sealed class MilkingFinishedEvent : EntityEventArgs { public EntityUid UserUid; public EntityUid ContainerUid; @@ -148,7 +148,7 @@ namespace Content.Server.Animals.Systems } } - private class MilkingFailEvent : EntityEventArgs + private sealed class MilkingFailEvent : EntityEventArgs { } } } diff --git a/Content.Server/Announcements/AnnounceCommand.cs b/Content.Server/Announcements/AnnounceCommand.cs index 40e08df1f2..63d217455e 100644 --- a/Content.Server/Announcements/AnnounceCommand.cs +++ b/Content.Server/Announcements/AnnounceCommand.cs @@ -9,7 +9,7 @@ using Robust.Shared.Audio; namespace Content.Server.Announcements { [AdminCommand(AdminFlags.Admin)] - public class AnnounceCommand : IConsoleCommand + public sealed class AnnounceCommand : IConsoleCommand { public string Command => "announce"; public string Description => "Send an in-game announcement."; diff --git a/Content.Server/Arcade/BlockGameSystem.cs b/Content.Server/Arcade/BlockGameSystem.cs index ffb3b8430f..08bd5c73b1 100644 --- a/Content.Server/Arcade/BlockGameSystem.cs +++ b/Content.Server/Arcade/BlockGameSystem.cs @@ -8,7 +8,7 @@ using Robust.Shared.Utility; namespace Content.Server.Arcade { // ReSharper disable once ClassNeverInstantiated.Global - public class BlockGameSystem : EntitySystem + public sealed class BlockGameSystem : EntitySystem { private readonly List _roundHighscores = new(); private readonly List _globalHighscores = new(); diff --git a/Content.Server/Arcade/Components/BlockGameArcadeComponent.cs b/Content.Server/Arcade/Components/BlockGameArcadeComponent.cs index 4593aa6240..0eb925dd58 100644 --- a/Content.Server/Arcade/Components/BlockGameArcadeComponent.cs +++ b/Content.Server/Arcade/Components/BlockGameArcadeComponent.cs @@ -17,7 +17,7 @@ namespace Content.Server.Arcade.Components { [RegisterComponent] [ComponentReference(typeof(IActivate))] - public class BlockGameArcadeComponent : Component, IActivate + public sealed class BlockGameArcadeComponent : Component, IActivate { [Dependency] private readonly IRobustRandom _random = default!; [Dependency] private readonly IEntityManager _entityManager = default!; @@ -146,7 +146,7 @@ namespace Content.Server.Arcade.Components _game?.GameTick(frameTime); } - private class BlockGame + private sealed class BlockGame { //note: field is 10(0 -> 9) wide and 20(0 -> 19) high diff --git a/Content.Server/Arcade/Components/SpaceVillainArcadeComponent.cs b/Content.Server/Arcade/Components/SpaceVillainArcadeComponent.cs index 07d3ead6a2..9262764434 100644 --- a/Content.Server/Arcade/Components/SpaceVillainArcadeComponent.cs +++ b/Content.Server/Arcade/Components/SpaceVillainArcadeComponent.cs @@ -26,7 +26,7 @@ namespace Content.Server.Arcade.Components { [RegisterComponent] [ComponentReference(typeof(IActivate))] - public class SpaceVillainArcadeComponent : SharedSpaceVillainArcadeComponent, IActivate, IWires + public sealed class SpaceVillainArcadeComponent : SharedSpaceVillainArcadeComponent, IActivate, IWires { [Dependency] private readonly IRobustRandom _random = null!; @@ -246,7 +246,7 @@ namespace Content.Server.Arcade.Components /// /// A Class to handle all the game-logic of the SpaceVillain-game. /// - public class SpaceVillainGame + public sealed class SpaceVillainGame { [Dependency] private readonly IRobustRandom _random = default!; diff --git a/Content.Server/Armor/ArmorComponent.cs b/Content.Server/Armor/ArmorComponent.cs index 81dd7ec74f..557df0bb13 100644 --- a/Content.Server/Armor/ArmorComponent.cs +++ b/Content.Server/Armor/ArmorComponent.cs @@ -5,7 +5,7 @@ using Robust.Shared.Serialization.Manager.Attributes; namespace Content.Server.Armor { [RegisterComponent] - public class ArmorComponent : Component + public sealed class ArmorComponent : Component { [DataField("modifiers", required: true)] public DamageModifierSet Modifiers = default!; diff --git a/Content.Server/Armor/ArmorSystem.cs b/Content.Server/Armor/ArmorSystem.cs index cb57a99d51..fdaff2eaf4 100644 --- a/Content.Server/Armor/ArmorSystem.cs +++ b/Content.Server/Armor/ArmorSystem.cs @@ -3,7 +3,7 @@ using Robust.Shared.GameObjects; namespace Content.Server.Armor { - public class ArmorSystem : EntitySystem + public sealed class ArmorSystem : EntitySystem { public override void Initialize() { diff --git a/Content.Server/Atmos/Commands/AddAtmosCommand.cs b/Content.Server/Atmos/Commands/AddAtmosCommand.cs index be4fc7e35e..aaf5734a44 100644 --- a/Content.Server/Atmos/Commands/AddAtmosCommand.cs +++ b/Content.Server/Atmos/Commands/AddAtmosCommand.cs @@ -9,7 +9,7 @@ using Robust.Shared.Map; namespace Content.Server.Atmos.Commands { [AdminCommand(AdminFlags.Debug)] - public class AddAtmosCommand : IConsoleCommand + public sealed class AddAtmosCommand : IConsoleCommand { [Dependency] private readonly IEntityManager _entities = default!; diff --git a/Content.Server/Atmos/Commands/AddGasCommand.cs b/Content.Server/Atmos/Commands/AddGasCommand.cs index 61438b748f..d5aa50f19b 100644 --- a/Content.Server/Atmos/Commands/AddGasCommand.cs +++ b/Content.Server/Atmos/Commands/AddGasCommand.cs @@ -10,7 +10,7 @@ using Robust.Shared.Maths; namespace Content.Server.Atmos.Commands { [AdminCommand(AdminFlags.Debug)] - public class AddGasCommand : IConsoleCommand + public sealed class AddGasCommand : IConsoleCommand { public string Command => "addgas"; public string Description => "Adds gas at a certain position."; diff --git a/Content.Server/Atmos/Commands/AddUnsimulatedAtmosCommand.cs b/Content.Server/Atmos/Commands/AddUnsimulatedAtmosCommand.cs index b5e4850aaa..737f4f384d 100644 --- a/Content.Server/Atmos/Commands/AddUnsimulatedAtmosCommand.cs +++ b/Content.Server/Atmos/Commands/AddUnsimulatedAtmosCommand.cs @@ -9,7 +9,7 @@ using Robust.Shared.Map; namespace Content.Server.Atmos.Commands { [AdminCommand(AdminFlags.Debug)] - public class AddUnsimulatedAtmosCommand : IConsoleCommand + public sealed class AddUnsimulatedAtmosCommand : IConsoleCommand { public string Command => "addunsimulatedatmos"; public string Description => "Adds unimulated atmos support to a grid."; diff --git a/Content.Server/Atmos/Commands/DeleteGasCommand.cs b/Content.Server/Atmos/Commands/DeleteGasCommand.cs index 0e1adc1e6f..ff8b840e4d 100644 --- a/Content.Server/Atmos/Commands/DeleteGasCommand.cs +++ b/Content.Server/Atmos/Commands/DeleteGasCommand.cs @@ -12,7 +12,7 @@ using Robust.Shared.Map; namespace Content.Server.Atmos.Commands { [AdminCommand(AdminFlags.Debug)] - public class DeleteGasCommand : IConsoleCommand + public sealed class DeleteGasCommand : IConsoleCommand { public string Command => "deletegas"; public string Description => "Removes all gases from a grid, or just of one type if specified."; diff --git a/Content.Server/Atmos/Commands/FillGasCommand.cs b/Content.Server/Atmos/Commands/FillGasCommand.cs index d2b25313fc..855b6ef18e 100644 --- a/Content.Server/Atmos/Commands/FillGasCommand.cs +++ b/Content.Server/Atmos/Commands/FillGasCommand.cs @@ -10,7 +10,7 @@ using Robust.Shared.Map; namespace Content.Server.Atmos.Commands { [AdminCommand(AdminFlags.Debug)] - public class FillGas : IConsoleCommand + public sealed class FillGas : IConsoleCommand { public string Command => "fillgas"; public string Description => "Adds gas to all tiles in a grid."; diff --git a/Content.Server/Atmos/Commands/ListGasesCommand.cs b/Content.Server/Atmos/Commands/ListGasesCommand.cs index 6fad4670fe..ba1c99307b 100644 --- a/Content.Server/Atmos/Commands/ListGasesCommand.cs +++ b/Content.Server/Atmos/Commands/ListGasesCommand.cs @@ -7,7 +7,7 @@ using Robust.Shared.GameObjects; namespace Content.Server.Atmos.Commands { [AdminCommand(AdminFlags.Debug)] - public class ListGasesCommand : IConsoleCommand + public sealed class ListGasesCommand : IConsoleCommand { public string Command => "listgases"; public string Description => "Prints a list of gases and their indices."; diff --git a/Content.Server/Atmos/Commands/RemoveGasCommand.cs b/Content.Server/Atmos/Commands/RemoveGasCommand.cs index bd5cee5a7b..4677e5055f 100644 --- a/Content.Server/Atmos/Commands/RemoveGasCommand.cs +++ b/Content.Server/Atmos/Commands/RemoveGasCommand.cs @@ -9,7 +9,7 @@ using Robust.Shared.Maths; namespace Content.Server.Atmos.Commands { [AdminCommand(AdminFlags.Debug)] - public class RemoveGasCommand : IConsoleCommand + public sealed class RemoveGasCommand : IConsoleCommand { public string Command => "removegas"; public string Description => "Removes an amount of gases."; diff --git a/Content.Server/Atmos/Commands/SetAtmosTemperatureCommand.cs b/Content.Server/Atmos/Commands/SetAtmosTemperatureCommand.cs index af12a8a752..51d5348897 100644 --- a/Content.Server/Atmos/Commands/SetAtmosTemperatureCommand.cs +++ b/Content.Server/Atmos/Commands/SetAtmosTemperatureCommand.cs @@ -10,7 +10,7 @@ using Robust.Shared.Map; namespace Content.Server.Atmos.Commands { [AdminCommand(AdminFlags.Debug)] - public class SetAtmosTemperatureCommand : IConsoleCommand + public sealed class SetAtmosTemperatureCommand : IConsoleCommand { public string Command => "setatmostemp"; public string Description => "Sets a grid's temperature (in kelvin)."; diff --git a/Content.Server/Atmos/Commands/SetTemperatureCommand.cs b/Content.Server/Atmos/Commands/SetTemperatureCommand.cs index 5b7ad506e2..709f6beeeb 100644 --- a/Content.Server/Atmos/Commands/SetTemperatureCommand.cs +++ b/Content.Server/Atmos/Commands/SetTemperatureCommand.cs @@ -10,7 +10,7 @@ using Robust.Shared.Maths; namespace Content.Server.Atmos.Commands { [AdminCommand(AdminFlags.Debug)] - public class SetTemperatureCommand : IConsoleCommand + public sealed class SetTemperatureCommand : IConsoleCommand { public string Command => "settemp"; public string Description => "Sets a tile's temperature (in kelvin)."; diff --git a/Content.Server/Atmos/Commands/ShowAtmosCommand.cs b/Content.Server/Atmos/Commands/ShowAtmosCommand.cs index 6e6a176628..52e67c8e14 100644 --- a/Content.Server/Atmos/Commands/ShowAtmosCommand.cs +++ b/Content.Server/Atmos/Commands/ShowAtmosCommand.cs @@ -8,7 +8,7 @@ using Robust.Shared.GameObjects; namespace Content.Server.Atmos.Commands { [AdminCommand(AdminFlags.Debug)] - public class ShowAtmos : IConsoleCommand + public sealed class ShowAtmos : IConsoleCommand { public string Command => "showatmos"; public string Description => "Toggles seeing atmos debug overlay."; diff --git a/Content.Server/Atmos/Components/AirtightComponent.cs b/Content.Server/Atmos/Components/AirtightComponent.cs index 8cf4d733c5..fde9e4a1ee 100644 --- a/Content.Server/Atmos/Components/AirtightComponent.cs +++ b/Content.Server/Atmos/Components/AirtightComponent.cs @@ -11,7 +11,7 @@ using Robust.Shared.ViewVariables; namespace Content.Server.Atmos.Components { [RegisterComponent] - public class AirtightComponent : Component + public sealed class AirtightComponent : Component { public (GridId Grid, Vector2i Tile) LastPosition { get; set; } diff --git a/Content.Server/Atmos/Components/AtmosExposedComponent.cs b/Content.Server/Atmos/Components/AtmosExposedComponent.cs index 8f29f5b3ad..34304fe32b 100644 --- a/Content.Server/Atmos/Components/AtmosExposedComponent.cs +++ b/Content.Server/Atmos/Components/AtmosExposedComponent.cs @@ -7,7 +7,7 @@ namespace Content.Server.Atmos.Components /// Represents that entity can be exposed to Atmos /// [RegisterComponent] - public class AtmosExposedComponent : Component + public sealed class AtmosExposedComponent : Component { } } diff --git a/Content.Server/Atmos/Components/AtmosFixMarkerComponent.cs b/Content.Server/Atmos/Components/AtmosFixMarkerComponent.cs index 337228aa30..0596a343a4 100644 --- a/Content.Server/Atmos/Components/AtmosFixMarkerComponent.cs +++ b/Content.Server/Atmos/Components/AtmosFixMarkerComponent.cs @@ -7,7 +7,7 @@ namespace Content.Server.Atmos.Components /// Used by FixGridAtmos. Entities with this may get magically auto-deleted on map initialization in future. /// [RegisterComponent] - public class AtmosFixMarkerComponent : Component + public sealed class AtmosFixMarkerComponent : Component { // See FixGridAtmos for more details [DataField("mode")] diff --git a/Content.Server/Atmos/Components/BarotraumaComponent.cs b/Content.Server/Atmos/Components/BarotraumaComponent.cs index 0719d9befb..5fbba97c85 100644 --- a/Content.Server/Atmos/Components/BarotraumaComponent.cs +++ b/Content.Server/Atmos/Components/BarotraumaComponent.cs @@ -10,7 +10,7 @@ namespace Content.Server.Atmos.Components /// Barotrauma: injury because of changes in air pressure. /// [RegisterComponent] - public class BarotraumaComponent : Component + public sealed class BarotraumaComponent : Component { [DataField("damage", required: true)] [ViewVariables(VVAccess.ReadWrite)] diff --git a/Content.Server/Atmos/Components/BreathToolComponent.cs b/Content.Server/Atmos/Components/BreathToolComponent.cs index 536829ca88..0722428533 100644 --- a/Content.Server/Atmos/Components/BreathToolComponent.cs +++ b/Content.Server/Atmos/Components/BreathToolComponent.cs @@ -13,7 +13,7 @@ namespace Content.Server.Atmos.Components /// [RegisterComponent] [ComponentProtoName("BreathMask")] - public class BreathToolComponent : Component + public sealed class BreathToolComponent : Component { [Dependency] private readonly IEntityManager _entities = default!; diff --git a/Content.Server/Atmos/Components/FlammableComponent.cs b/Content.Server/Atmos/Components/FlammableComponent.cs index bc0d13c5b0..27c60cfe28 100644 --- a/Content.Server/Atmos/Components/FlammableComponent.cs +++ b/Content.Server/Atmos/Components/FlammableComponent.cs @@ -8,7 +8,7 @@ using Robust.Shared.ViewVariables; namespace Content.Server.Atmos.Components { [RegisterComponent] - public class FlammableComponent : Component + public sealed class FlammableComponent : Component { [ViewVariables] public bool Resisting = false; diff --git a/Content.Server/Atmos/Components/GasAnalyzerComponent.cs b/Content.Server/Atmos/Components/GasAnalyzerComponent.cs index d37db732bc..16c5e6f87d 100644 --- a/Content.Server/Atmos/Components/GasAnalyzerComponent.cs +++ b/Content.Server/Atmos/Components/GasAnalyzerComponent.cs @@ -20,7 +20,7 @@ namespace Content.Server.Atmos.Components [RegisterComponent] [ComponentReference(typeof(IActivate))] [ComponentReference(typeof(SharedGasAnalyzerComponent))] - public class GasAnalyzerComponent : SharedGasAnalyzerComponent, IAfterInteract, IDropped, IActivate + public sealed class GasAnalyzerComponent : SharedGasAnalyzerComponent, IAfterInteract, IDropped, IActivate { [Dependency] private readonly IEntityManager _entities = default!; diff --git a/Content.Server/Atmos/Components/GasMixtureHolderComponent.cs b/Content.Server/Atmos/Components/GasMixtureHolderComponent.cs index bf213354a7..dfddf0a007 100644 --- a/Content.Server/Atmos/Components/GasMixtureHolderComponent.cs +++ b/Content.Server/Atmos/Components/GasMixtureHolderComponent.cs @@ -5,7 +5,7 @@ using Robust.Shared.ViewVariables; namespace Content.Server.Atmos.Components { [RegisterComponent] - public class GasMixtureHolderComponent : Component, IGasMixtureHolder + public sealed class GasMixtureHolderComponent : Component, IGasMixtureHolder { [ViewVariables] [DataField("air")] public GasMixture Air { get; set; } = new GasMixture(); } diff --git a/Content.Server/Atmos/Components/GasTankComponent.cs b/Content.Server/Atmos/Components/GasTankComponent.cs index aa6c046d8c..54f725a7fd 100644 --- a/Content.Server/Atmos/Components/GasTankComponent.cs +++ b/Content.Server/Atmos/Components/GasTankComponent.cs @@ -31,7 +31,7 @@ namespace Content.Server.Atmos.Components [RegisterComponent] [ComponentReference(typeof(IActivate))] #pragma warning disable 618 - public class GasTankComponent : Component, IExamine, IGasMixtureHolder, IDropped, IActivate + public sealed class GasTankComponent : Component, IExamine, IGasMixtureHolder, IDropped, IActivate #pragma warning restore 618 { [Dependency] private readonly IEntityManager _entMan = default!; @@ -312,7 +312,7 @@ namespace Content.Server.Atmos.Components [UsedImplicitly] [DataDefinition] - public class ToggleInternalsAction : IToggleItemAction + public sealed class ToggleInternalsAction : IToggleItemAction { public bool DoToggleAction(ToggleItemActionEventArgs args) { diff --git a/Content.Server/Atmos/Components/GridAtmosphereComponent.cs b/Content.Server/Atmos/Components/GridAtmosphereComponent.cs index 570553923f..b680fee595 100644 --- a/Content.Server/Atmos/Components/GridAtmosphereComponent.cs +++ b/Content.Server/Atmos/Components/GridAtmosphereComponent.cs @@ -18,6 +18,7 @@ namespace Content.Server.Atmos.Components /// [ComponentReference(typeof(IAtmosphereComponent))] [RegisterComponent, Serializable] + [Virtual] public class GridAtmosphereComponent : Component, IAtmosphereComponent, ISerializationHooks { public virtual bool Simulated => true; diff --git a/Content.Server/Atmos/Components/IgniteOnCollideComponent.cs b/Content.Server/Atmos/Components/IgniteOnCollideComponent.cs index 94cfdfcaa3..ee8c57a604 100644 --- a/Content.Server/Atmos/Components/IgniteOnCollideComponent.cs +++ b/Content.Server/Atmos/Components/IgniteOnCollideComponent.cs @@ -9,7 +9,7 @@ using System.Threading.Tasks; namespace Content.Server.Atmos.Components { [RegisterComponent] - public class IgniteOnCollideComponent : Component + public sealed class IgniteOnCollideComponent : Component { [DataField("fireStacks")] public float FireStacks { get; set; } diff --git a/Content.Server/Atmos/Components/MovedByPressureComponent.cs b/Content.Server/Atmos/Components/MovedByPressureComponent.cs index afa40dd3fd..b92d2bd3ea 100644 --- a/Content.Server/Atmos/Components/MovedByPressureComponent.cs +++ b/Content.Server/Atmos/Components/MovedByPressureComponent.cs @@ -15,7 +15,7 @@ using Robust.Shared.ViewVariables; namespace Content.Server.Atmos.Components { [RegisterComponent] - public class MovedByPressureComponent : Component + public sealed class MovedByPressureComponent : Component { [Dependency] private readonly IRobustRandom _robustRandom = default!; [Dependency] private readonly IEntityManager _entMan = default!; diff --git a/Content.Server/Atmos/Components/PressureProtectionComponent.cs b/Content.Server/Atmos/Components/PressureProtectionComponent.cs index 9eb086684b..302d077603 100644 --- a/Content.Server/Atmos/Components/PressureProtectionComponent.cs +++ b/Content.Server/Atmos/Components/PressureProtectionComponent.cs @@ -5,7 +5,7 @@ using Robust.Shared.ViewVariables; namespace Content.Server.Atmos.Components { [RegisterComponent] - public class PressureProtectionComponent : Component + public sealed class PressureProtectionComponent : Component { [DataField("highPressureMultiplier")] public float HighPressureMultiplier { get; } = 1f; diff --git a/Content.Server/Atmos/Components/SpaceAtmosphereComponent.cs b/Content.Server/Atmos/Components/SpaceAtmosphereComponent.cs index 503bf261ae..8c9b090636 100644 --- a/Content.Server/Atmos/Components/SpaceAtmosphereComponent.cs +++ b/Content.Server/Atmos/Components/SpaceAtmosphereComponent.cs @@ -4,7 +4,7 @@ namespace Content.Server.Atmos.Components { [RegisterComponent] [ComponentReference(typeof(IAtmosphereComponent))] - public class SpaceAtmosphereComponent : Component, IAtmosphereComponent + public sealed class SpaceAtmosphereComponent : Component, IAtmosphereComponent { public bool Simulated => false; } diff --git a/Content.Server/Atmos/Components/TemperatureProtectionComponent.cs b/Content.Server/Atmos/Components/TemperatureProtectionComponent.cs index 422249f1aa..7f1a6e74d2 100644 --- a/Content.Server/Atmos/Components/TemperatureProtectionComponent.cs +++ b/Content.Server/Atmos/Components/TemperatureProtectionComponent.cs @@ -5,7 +5,7 @@ using Robust.Shared.Serialization.Manager.Attributes; namespace Content.Server.Atmos.Components; [RegisterComponent] -public class TemperatureProtectionComponent : Component +public sealed class TemperatureProtectionComponent : Component { /// /// How much to multiply temperature deltas by. diff --git a/Content.Server/Atmos/Components/UnsimulatedGridAtmosphereComponent.cs b/Content.Server/Atmos/Components/UnsimulatedGridAtmosphereComponent.cs index 2aebb27480..bc2ac437b7 100644 --- a/Content.Server/Atmos/Components/UnsimulatedGridAtmosphereComponent.cs +++ b/Content.Server/Atmos/Components/UnsimulatedGridAtmosphereComponent.cs @@ -10,7 +10,7 @@ namespace Content.Server.Atmos.Components [RegisterComponent] [ComponentReference(typeof(IAtmosphereComponent))] [Serializable] - public class UnsimulatedGridAtmosphereComponent : GridAtmosphereComponent + public sealed class UnsimulatedGridAtmosphereComponent : GridAtmosphereComponent { public override bool Simulated => false; } diff --git a/Content.Server/Atmos/EntitySystems/AirtightSystem.cs b/Content.Server/Atmos/EntitySystems/AirtightSystem.cs index ffc727da75..dcfe1289aa 100644 --- a/Content.Server/Atmos/EntitySystems/AirtightSystem.cs +++ b/Content.Server/Atmos/EntitySystems/AirtightSystem.cs @@ -10,7 +10,7 @@ using Robust.Shared.Maths; namespace Content.Server.Atmos.EntitySystems { [UsedImplicitly] - public class AirtightSystem : EntitySystem + public sealed class AirtightSystem : EntitySystem { [Dependency] private readonly IMapManager _mapManager = default!; [Dependency] private readonly AtmosphereSystem _atmosphereSystem = default!; @@ -132,7 +132,7 @@ namespace Content.Server.Atmos.EntitySystems } } - public class AirtightChanged : EntityEventArgs + public sealed class AirtightChanged : EntityEventArgs { public AirtightComponent Airtight; diff --git a/Content.Server/Atmos/EntitySystems/AtmosExposedSystem.cs b/Content.Server/Atmos/EntitySystems/AtmosExposedSystem.cs index 6c03aaaa53..8d0d6c4f26 100644 --- a/Content.Server/Atmos/EntitySystems/AtmosExposedSystem.cs +++ b/Content.Server/Atmos/EntitySystems/AtmosExposedSystem.cs @@ -8,7 +8,7 @@ using Robust.Shared.Map; namespace Content.Server.Atmos.EntitySystems { /* doesn't seem to be a use for this at the moment, so it's disabled - public class AtmosExposedSystem : EntitySystem + public sealed class AtmosExposedSystem : EntitySystem {} */ diff --git a/Content.Server/Atmos/EntitySystems/AtmosphereSystem.CVars.cs b/Content.Server/Atmos/EntitySystems/AtmosphereSystem.CVars.cs index 067c4581ab..5d26ab07fd 100644 --- a/Content.Server/Atmos/EntitySystems/AtmosphereSystem.CVars.cs +++ b/Content.Server/Atmos/EntitySystems/AtmosphereSystem.CVars.cs @@ -4,7 +4,7 @@ using Robust.Shared.IoC; namespace Content.Server.Atmos.EntitySystems { - public partial class AtmosphereSystem + public sealed partial class AtmosphereSystem { [Dependency] private readonly IConfigurationManager _cfg = default!; diff --git a/Content.Server/Atmos/EntitySystems/AtmosphereSystem.Commands.cs b/Content.Server/Atmos/EntitySystems/AtmosphereSystem.Commands.cs index 9219aa3a1b..6063bc7680 100644 --- a/Content.Server/Atmos/EntitySystems/AtmosphereSystem.Commands.cs +++ b/Content.Server/Atmos/EntitySystems/AtmosphereSystem.Commands.cs @@ -8,7 +8,7 @@ using Robust.Shared.Map; namespace Content.Server.Atmos.EntitySystems; -public partial class AtmosphereSystem +public sealed partial class AtmosphereSystem { [Dependency] private readonly IConsoleHost _consoleHost = default!; diff --git a/Content.Server/Atmos/EntitySystems/AtmosphereSystem.ExcitedGroup.cs b/Content.Server/Atmos/EntitySystems/AtmosphereSystem.ExcitedGroup.cs index 982f192bb0..29ba3e9f73 100644 --- a/Content.Server/Atmos/EntitySystems/AtmosphereSystem.ExcitedGroup.cs +++ b/Content.Server/Atmos/EntitySystems/AtmosphereSystem.ExcitedGroup.cs @@ -4,7 +4,7 @@ using Robust.Shared.Utility; namespace Content.Server.Atmos.EntitySystems { - public partial class AtmosphereSystem + public sealed partial class AtmosphereSystem { private void ExcitedGroupAddTile(ExcitedGroup excitedGroup, TileAtmosphere tile) { diff --git a/Content.Server/Atmos/EntitySystems/AtmosphereSystem.Gases.cs b/Content.Server/Atmos/EntitySystems/AtmosphereSystem.Gases.cs index b588184d55..6a34538891 100644 --- a/Content.Server/Atmos/EntitySystems/AtmosphereSystem.Gases.cs +++ b/Content.Server/Atmos/EntitySystems/AtmosphereSystem.Gases.cs @@ -10,7 +10,7 @@ using DependencyAttribute = Robust.Shared.IoC.DependencyAttribute; namespace Content.Server.Atmos.EntitySystems { - public partial class AtmosphereSystem + public sealed partial class AtmosphereSystem { [Dependency] private readonly IPrototypeManager _protoMan = default!; diff --git a/Content.Server/Atmos/EntitySystems/AtmosphereSystem.Grid.cs b/Content.Server/Atmos/EntitySystems/AtmosphereSystem.Grid.cs index bbadf7d3c1..23331cf089 100644 --- a/Content.Server/Atmos/EntitySystems/AtmosphereSystem.Grid.cs +++ b/Content.Server/Atmos/EntitySystems/AtmosphereSystem.Grid.cs @@ -20,7 +20,7 @@ using Dependency = Robust.Shared.IoC.DependencyAttribute; namespace Content.Server.Atmos.EntitySystems { - public partial class AtmosphereSystem + public sealed partial class AtmosphereSystem { [Dependency] private readonly ITileDefinitionManager _tileDefinitionManager = default!; [Dependency] private readonly GasTileOverlaySystem _gasTileOverlaySystem = default!; @@ -193,7 +193,7 @@ namespace Content.Server.Atmos.EntitySystems /// The grid where to get the tile. /// The indices of the tile. /// - public virtual IEnumerable GetObstructingComponents(IMapGrid mapGrid, Vector2i tile) + public IEnumerable GetObstructingComponents(IMapGrid mapGrid, Vector2i tile) { foreach (var uid in mapGrid.GetAnchoredEntities(tile)) { diff --git a/Content.Server/Atmos/EntitySystems/AtmosphereSystem.HighPressureDelta.cs b/Content.Server/Atmos/EntitySystems/AtmosphereSystem.HighPressureDelta.cs index a164de3b1b..5d8382500d 100644 --- a/Content.Server/Atmos/EntitySystems/AtmosphereSystem.HighPressureDelta.cs +++ b/Content.Server/Atmos/EntitySystems/AtmosphereSystem.HighPressureDelta.cs @@ -10,7 +10,7 @@ using Robust.Shared.ViewVariables; namespace Content.Server.Atmos.EntitySystems { - public partial class AtmosphereSystem + public sealed partial class AtmosphereSystem { private const int SpaceWindSoundCooldownCycles = 75; diff --git a/Content.Server/Atmos/EntitySystems/AtmosphereSystem.Hotspot.cs b/Content.Server/Atmos/EntitySystems/AtmosphereSystem.Hotspot.cs index a77f8f0391..6fbb47c574 100644 --- a/Content.Server/Atmos/EntitySystems/AtmosphereSystem.Hotspot.cs +++ b/Content.Server/Atmos/EntitySystems/AtmosphereSystem.Hotspot.cs @@ -13,7 +13,7 @@ using Robust.Shared.ViewVariables; namespace Content.Server.Atmos.EntitySystems { - public partial class AtmosphereSystem + public sealed partial class AtmosphereSystem { [Dependency] private readonly IEntityLookup _lookup = default!; diff --git a/Content.Server/Atmos/EntitySystems/AtmosphereSystem.LINDA.cs b/Content.Server/Atmos/EntitySystems/AtmosphereSystem.LINDA.cs index 0b9c8bbe9f..b43df3a3ee 100644 --- a/Content.Server/Atmos/EntitySystems/AtmosphereSystem.LINDA.cs +++ b/Content.Server/Atmos/EntitySystems/AtmosphereSystem.LINDA.cs @@ -3,7 +3,7 @@ using Content.Shared.Atmos; namespace Content.Server.Atmos.EntitySystems { - public partial class AtmosphereSystem + public sealed partial class AtmosphereSystem { private void ProcessCell(GridAtmosphereComponent gridAtmosphere, TileAtmosphere tile, int fireCount) { diff --git a/Content.Server/Atmos/EntitySystems/AtmosphereSystem.Monstermos.cs b/Content.Server/Atmos/EntitySystems/AtmosphereSystem.Monstermos.cs index 0248eef626..25b7abc5d2 100644 --- a/Content.Server/Atmos/EntitySystems/AtmosphereSystem.Monstermos.cs +++ b/Content.Server/Atmos/EntitySystems/AtmosphereSystem.Monstermos.cs @@ -14,7 +14,7 @@ using Robust.Shared.Utility; namespace Content.Server.Atmos.EntitySystems { - public partial class AtmosphereSystem + public sealed partial class AtmosphereSystem { [Dependency] private readonly IRobustRandom _robustRandom = default!; @@ -594,7 +594,7 @@ namespace Content.Server.Atmos.EntitySystems PryTile(mapGrid, tile.GridIndices); } - private class TileAtmosphereComparer : IComparer + private sealed class TileAtmosphereComparer : IComparer { public int Compare(TileAtmosphere? a, TileAtmosphere? b) { diff --git a/Content.Server/Atmos/EntitySystems/AtmosphereSystem.Processing.cs b/Content.Server/Atmos/EntitySystems/AtmosphereSystem.Processing.cs index 5a8b21f99a..bb13f8a423 100644 --- a/Content.Server/Atmos/EntitySystems/AtmosphereSystem.Processing.cs +++ b/Content.Server/Atmos/EntitySystems/AtmosphereSystem.Processing.cs @@ -12,7 +12,7 @@ using Robust.Shared.Timing; namespace Content.Server.Atmos.EntitySystems { - public partial class AtmosphereSystem + public sealed partial class AtmosphereSystem { [Dependency] private readonly IGameTiming _gameTiming = default!; diff --git a/Content.Server/Atmos/EntitySystems/AtmosphereSystem.Superconductivity.cs b/Content.Server/Atmos/EntitySystems/AtmosphereSystem.Superconductivity.cs index 644da17b08..18b564c37f 100644 --- a/Content.Server/Atmos/EntitySystems/AtmosphereSystem.Superconductivity.cs +++ b/Content.Server/Atmos/EntitySystems/AtmosphereSystem.Superconductivity.cs @@ -4,7 +4,7 @@ using Content.Shared.Atmos; namespace Content.Server.Atmos.EntitySystems { - public partial class AtmosphereSystem + public sealed partial class AtmosphereSystem { private void Superconduct(GridAtmosphereComponent gridAtmosphere, TileAtmosphere tile) { diff --git a/Content.Server/Atmos/EntitySystems/AtmosphereSystem.cs b/Content.Server/Atmos/EntitySystems/AtmosphereSystem.cs index 782f32d762..6062659433 100644 --- a/Content.Server/Atmos/EntitySystems/AtmosphereSystem.cs +++ b/Content.Server/Atmos/EntitySystems/AtmosphereSystem.cs @@ -21,7 +21,7 @@ namespace Content.Server.Atmos.EntitySystems /// This is our SSAir equivalent, if you need to interact with or query atmos in any way, go through this. /// [UsedImplicitly] - public partial class AtmosphereSystem : SharedAtmosphereSystem + public sealed partial class AtmosphereSystem : SharedAtmosphereSystem { [Dependency] private readonly IMapManager _mapManager = default!; [Dependency] private readonly AdminLogSystem _adminLog = default!; diff --git a/Content.Server/Atmos/EntitySystems/BarotraumaSystem.cs b/Content.Server/Atmos/EntitySystems/BarotraumaSystem.cs index a5195f8c06..a4e196bd20 100644 --- a/Content.Server/Atmos/EntitySystems/BarotraumaSystem.cs +++ b/Content.Server/Atmos/EntitySystems/BarotraumaSystem.cs @@ -11,7 +11,7 @@ using Robust.Shared.IoC; namespace Content.Server.Atmos.EntitySystems { - public class BarotraumaSystem : EntitySystem + public sealed class BarotraumaSystem : EntitySystem { [Dependency] private readonly AtmosphereSystem _atmosphereSystem = default!; [Dependency] private readonly DamageableSystem _damageableSystem = default!; diff --git a/Content.Server/Atmos/EntitySystems/GasAnalyzerSystem.cs b/Content.Server/Atmos/EntitySystems/GasAnalyzerSystem.cs index 8568c815fe..3e5b357167 100644 --- a/Content.Server/Atmos/EntitySystems/GasAnalyzerSystem.cs +++ b/Content.Server/Atmos/EntitySystems/GasAnalyzerSystem.cs @@ -5,7 +5,7 @@ using Robust.Shared.GameObjects; namespace Content.Server.Atmos.EntitySystems { [UsedImplicitly] - public class GasAnalyzerSystem : EntitySystem + public sealed class GasAnalyzerSystem : EntitySystem { public override void Update(float frameTime) { diff --git a/Content.Server/Atmos/EntitySystems/GasTankSystem.cs b/Content.Server/Atmos/EntitySystems/GasTankSystem.cs index 05ade9fc31..bc8d7af6ca 100644 --- a/Content.Server/Atmos/EntitySystems/GasTankSystem.cs +++ b/Content.Server/Atmos/EntitySystems/GasTankSystem.cs @@ -9,7 +9,7 @@ using Robust.Shared.Localization; namespace Content.Server.Atmos.EntitySystems { [UsedImplicitly] - public class GasTankSystem : EntitySystem + public sealed class GasTankSystem : EntitySystem { [Dependency] private readonly AtmosphereSystem _atmosphereSystem = default!; diff --git a/Content.Server/Atmos/ExcitedGroup.cs b/Content.Server/Atmos/ExcitedGroup.cs index adb7c28465..b8b2b7447a 100644 --- a/Content.Server/Atmos/ExcitedGroup.cs +++ b/Content.Server/Atmos/ExcitedGroup.cs @@ -3,7 +3,7 @@ using Robust.Shared.ViewVariables; namespace Content.Server.Atmos { - public class ExcitedGroup + public sealed class ExcitedGroup { [ViewVariables] public bool Disposed = false; diff --git a/Content.Server/Atmos/GasMixture.cs b/Content.Server/Atmos/GasMixture.cs index 4a3700f77b..50ec54b27a 100644 --- a/Content.Server/Atmos/GasMixture.cs +++ b/Content.Server/Atmos/GasMixture.cs @@ -18,7 +18,7 @@ namespace Content.Server.Atmos /// [Serializable] [DataDefinition] - public class GasMixture : IEquatable, ICloneable, ISerializationHooks + public sealed class GasMixture : IEquatable, ICloneable, ISerializationHooks { public static GasMixture SpaceGas => new() {Volume = Atmospherics.CellVolume, Temperature = Atmospherics.TCMB, Immutable = true}; diff --git a/Content.Server/Atmos/Monitor/Components/AirAlarmComponent.cs b/Content.Server/Atmos/Monitor/Components/AirAlarmComponent.cs index 17dbd9b735..76174c2ae5 100644 --- a/Content.Server/Atmos/Monitor/Components/AirAlarmComponent.cs +++ b/Content.Server/Atmos/Monitor/Components/AirAlarmComponent.cs @@ -18,7 +18,7 @@ using static Content.Shared.Wires.SharedWiresComponent.WiresAction; namespace Content.Server.Atmos.Monitor.Components { [RegisterComponent] - public class AirAlarmComponent : Component, IWires + public sealed class AirAlarmComponent : Component, IWires { [Dependency] private readonly IEntityManager _entMan = default!; diff --git a/Content.Server/Atmos/Monitor/Components/AtmosAlarmableComponent.cs b/Content.Server/Atmos/Monitor/Components/AtmosAlarmableComponent.cs index 6cb489f2be..c1e7cecb10 100644 --- a/Content.Server/Atmos/Monitor/Components/AtmosAlarmableComponent.cs +++ b/Content.Server/Atmos/Monitor/Components/AtmosAlarmableComponent.cs @@ -26,7 +26,7 @@ namespace Content.Server.Atmos.Monitor.Components /// by an atmospheric monitor. /// [RegisterComponent] - public class AtmosAlarmableComponent : Component + public sealed class AtmosAlarmableComponent : Component { [ViewVariables] public List LinkedMonitors { get; set; } = new(); diff --git a/Content.Server/Atmos/Monitor/Components/AtmosMonitorComponent.cs b/Content.Server/Atmos/Monitor/Components/AtmosMonitorComponent.cs index f0bc53e598..ebe1697cf4 100644 --- a/Content.Server/Atmos/Monitor/Components/AtmosMonitorComponent.cs +++ b/Content.Server/Atmos/Monitor/Components/AtmosMonitorComponent.cs @@ -12,7 +12,7 @@ using Robust.Shared.ViewVariables; namespace Content.Server.Atmos.Monitor.Components { [RegisterComponent] - public class AtmosMonitorComponent : Component + public sealed class AtmosMonitorComponent : Component { // Whether this monitor can send alarms, // or recieve atmos command events. diff --git a/Content.Server/Atmos/Monitor/Components/FireAlarmComponent.cs b/Content.Server/Atmos/Monitor/Components/FireAlarmComponent.cs index bcef870570..1c2e541044 100644 --- a/Content.Server/Atmos/Monitor/Components/FireAlarmComponent.cs +++ b/Content.Server/Atmos/Monitor/Components/FireAlarmComponent.cs @@ -19,7 +19,7 @@ using static Content.Shared.Wires.SharedWiresComponent.WiresAction; namespace Content.Server.Atmos.Monitor.Components { [RegisterComponent] - public class FireAlarmComponent : Component, IWires + public sealed class FireAlarmComponent : Component, IWires { [Dependency] private readonly IEntityManager _entMan = default!; diff --git a/Content.Server/Atmos/Monitor/Systems/AirAlarmModes.cs b/Content.Server/Atmos/Monitor/Systems/AirAlarmModes.cs index deaa08760e..501134db46 100644 --- a/Content.Server/Atmos/Monitor/Systems/AirAlarmModes.cs +++ b/Content.Server/Atmos/Monitor/Systems/AirAlarmModes.cs @@ -58,7 +58,7 @@ namespace Content.Server.Atmos.Monitor public void Update(EntityUid uid); } - public class AirAlarmModeFactory + public sealed class AirAlarmModeFactory { private static IAirAlarmMode _filterMode = new AirAlarmFilterMode(); private static IAirAlarmMode _fillMode = new AirAlarmFillMode(); @@ -67,7 +67,7 @@ namespace Content.Server.Atmos.Monitor // still not a fan since ReplaceMode must have an allocation // but it's whatever - public static IAirAlarmMode? ModeToExecutor(AirAlarmMode mode) => mode switch + public static IAirAlarmMode? ModeToExecutor(AirAlarmMode mode) => mode switch { AirAlarmMode.Filtering => _filterMode, AirAlarmMode.Fill => _fillMode, @@ -96,7 +96,7 @@ namespace Content.Server.Atmos.Monitor } } - public class AirAlarmNoneMode : AirAlarmModeExecutor + public sealed class AirAlarmNoneMode : AirAlarmModeExecutor { public override void Execute(EntityUid uid) { @@ -111,7 +111,7 @@ namespace Content.Server.Atmos.Monitor } } - public class AirAlarmFilterMode : AirAlarmModeExecutor + public sealed class AirAlarmFilterMode : AirAlarmModeExecutor { public override void Execute(EntityUid uid) { @@ -133,7 +133,7 @@ namespace Content.Server.Atmos.Monitor } } - public class AirAlarmPanicMode : AirAlarmModeExecutor + public sealed class AirAlarmPanicMode : AirAlarmModeExecutor { public override void Execute(EntityUid uid) { @@ -155,7 +155,7 @@ namespace Content.Server.Atmos.Monitor } } - public class AirAlarmFillMode : AirAlarmModeExecutor + public sealed class AirAlarmFillMode : AirAlarmModeExecutor { public override void Execute(EntityUid uid) { @@ -177,7 +177,7 @@ namespace Content.Server.Atmos.Monitor } } - public class AirAlarmReplaceMode : AirAlarmModeExecutor, IAirAlarmModeUpdate + public sealed class AirAlarmReplaceMode : AirAlarmModeExecutor, IAirAlarmModeUpdate { private Dictionary _devices = new(); private float _lastPressure = Atmospherics.OneAtmosphere; diff --git a/Content.Server/Atmos/Monitor/Systems/AirAlarmSystem.cs b/Content.Server/Atmos/Monitor/Systems/AirAlarmSystem.cs index b0004927d9..22123854a1 100644 --- a/Content.Server/Atmos/Monitor/Systems/AirAlarmSystem.cs +++ b/Content.Server/Atmos/Monitor/Systems/AirAlarmSystem.cs @@ -32,7 +32,7 @@ namespace Content.Server.Atmos.Monitor.Systems // data key. In response, a packet will be transmitted // with the response type as its command, and the // response data in its data key. - public class AirAlarmSystem : EntitySystem + public sealed class AirAlarmSystem : EntitySystem { [Dependency] private readonly DeviceNetworkSystem _deviceNet = default!; [Dependency] private readonly AtmosMonitorSystem _atmosMonitorSystem = default!; diff --git a/Content.Server/Atmos/Monitor/Systems/AtmosAlarmableSystem.cs b/Content.Server/Atmos/Monitor/Systems/AtmosAlarmableSystem.cs index 0a9341d414..ae0f7d4f2d 100644 --- a/Content.Server/Atmos/Monitor/Systems/AtmosAlarmableSystem.cs +++ b/Content.Server/Atmos/Monitor/Systems/AtmosAlarmableSystem.cs @@ -7,7 +7,7 @@ using Robust.Shared.GameObjects; namespace Content.Server.Atmos.Monitor.Systems { - public class AtmosAlarmableSystem : EntitySystem + public sealed class AtmosAlarmableSystem : EntitySystem { public override void Initialize() { diff --git a/Content.Server/Atmos/Monitor/Systems/AtmosMonitoringSystem.cs b/Content.Server/Atmos/Monitor/Systems/AtmosMonitoringSystem.cs index 4dad15f167..17f222922f 100644 --- a/Content.Server/Atmos/Monitor/Systems/AtmosMonitoringSystem.cs +++ b/Content.Server/Atmos/Monitor/Systems/AtmosMonitoringSystem.cs @@ -23,7 +23,7 @@ namespace Content.Server.Atmos.Monitor.Systems // to it via local APC net, and starts sending updates of the // current atmosphere. Monitors fire (which always triggers as // a danger), and atmos (which triggers based on set thresholds). - public class AtmosMonitorSystem : EntitySystem + public sealed class AtmosMonitorSystem : EntitySystem { [Dependency] private readonly AtmosphereSystem _atmosphereSystem = default!; [Dependency] private readonly AtmosDeviceSystem _atmosDeviceSystem = default!; @@ -475,7 +475,7 @@ namespace Content.Server.Atmos.Monitor.Systems } } - public class AtmosMonitorAlarmEvent : EntityEventArgs + public sealed class AtmosMonitorAlarmEvent : EntityEventArgs { public AtmosMonitorAlarmType Type { get; } public AtmosMonitorAlarmType HighestNetworkType { get; } diff --git a/Content.Server/Atmos/Monitor/Systems/FireAlarmSystem.cs b/Content.Server/Atmos/Monitor/Systems/FireAlarmSystem.cs index 77def5199b..9077971694 100644 --- a/Content.Server/Atmos/Monitor/Systems/FireAlarmSystem.cs +++ b/Content.Server/Atmos/Monitor/Systems/FireAlarmSystem.cs @@ -8,7 +8,7 @@ using Robust.Shared.IoC; namespace Content.Server.Atmos.Monitor.Systems { - public class FireAlarmSystem : EntitySystem + public sealed class FireAlarmSystem : EntitySystem { [Dependency] private readonly AtmosMonitorSystem _monitorSystem = default!; [Dependency] private readonly SharedInteractionSystem _interactionSystem = default!; diff --git a/Content.Server/Atmos/Piping/Binary/Components/GasDualPortVentPumpComponent.cs b/Content.Server/Atmos/Piping/Binary/Components/GasDualPortVentPumpComponent.cs index c76d1b0928..01b0a5940e 100644 --- a/Content.Server/Atmos/Piping/Binary/Components/GasDualPortVentPumpComponent.cs +++ b/Content.Server/Atmos/Piping/Binary/Components/GasDualPortVentPumpComponent.cs @@ -8,7 +8,7 @@ using Robust.Shared.ViewVariables; namespace Content.Server.Atmos.Piping.Binary.Components { [RegisterComponent] - public class GasDualPortVentPumpComponent : Component + public sealed class GasDualPortVentPumpComponent : Component { [ViewVariables(VVAccess.ReadWrite)] public bool Enabled { get; set; } = true; diff --git a/Content.Server/Atmos/Piping/Binary/Components/GasPassiveGateComponent.cs b/Content.Server/Atmos/Piping/Binary/Components/GasPassiveGateComponent.cs index f7ea4b8adf..bee12dc001 100644 --- a/Content.Server/Atmos/Piping/Binary/Components/GasPassiveGateComponent.cs +++ b/Content.Server/Atmos/Piping/Binary/Components/GasPassiveGateComponent.cs @@ -6,7 +6,7 @@ using Robust.Shared.ViewVariables; namespace Content.Server.Atmos.Piping.Binary.Components { [RegisterComponent] - public class GasPassiveGateComponent : Component + public sealed class GasPassiveGateComponent : Component { [DataField("enabled")] [ViewVariables(VVAccess.ReadWrite)] diff --git a/Content.Server/Atmos/Piping/Binary/Components/GasPortComponent.cs b/Content.Server/Atmos/Piping/Binary/Components/GasPortComponent.cs index 3707ff3d8c..adb5907d1d 100644 --- a/Content.Server/Atmos/Piping/Binary/Components/GasPortComponent.cs +++ b/Content.Server/Atmos/Piping/Binary/Components/GasPortComponent.cs @@ -5,7 +5,7 @@ using Robust.Shared.ViewVariables; namespace Content.Server.Atmos.Piping.Binary.Components { [RegisterComponent] - public class GasPortComponent : Component + public sealed class GasPortComponent : Component { [ViewVariables(VVAccess.ReadWrite)] [DataField("pipe")] diff --git a/Content.Server/Atmos/Piping/Binary/Components/GasPressurePumpComponent.cs b/Content.Server/Atmos/Piping/Binary/Components/GasPressurePumpComponent.cs index 0920e25dab..26ed73422b 100644 --- a/Content.Server/Atmos/Piping/Binary/Components/GasPressurePumpComponent.cs +++ b/Content.Server/Atmos/Piping/Binary/Components/GasPressurePumpComponent.cs @@ -6,7 +6,7 @@ using Robust.Shared.ViewVariables; namespace Content.Server.Atmos.Piping.Binary.Components { [RegisterComponent] - public class GasPressurePumpComponent : Component + public sealed class GasPressurePumpComponent : Component { [ViewVariables(VVAccess.ReadWrite)] public bool Enabled { get; set; } = true; diff --git a/Content.Server/Atmos/Piping/Binary/Components/GasValveComponent.cs b/Content.Server/Atmos/Piping/Binary/Components/GasValveComponent.cs index 5669e454cc..a27a965cfa 100644 --- a/Content.Server/Atmos/Piping/Binary/Components/GasValveComponent.cs +++ b/Content.Server/Atmos/Piping/Binary/Components/GasValveComponent.cs @@ -6,7 +6,7 @@ using Robust.Shared.ViewVariables; namespace Content.Server.Atmos.Piping.Binary.Components { [RegisterComponent] - public class GasValveComponent : Component + public sealed class GasValveComponent : Component { [ViewVariables] [DataField("open")] diff --git a/Content.Server/Atmos/Piping/Binary/Components/GasVolumePumpComponent.cs b/Content.Server/Atmos/Piping/Binary/Components/GasVolumePumpComponent.cs index eb3052d4ae..4bee30c9a6 100644 --- a/Content.Server/Atmos/Piping/Binary/Components/GasVolumePumpComponent.cs +++ b/Content.Server/Atmos/Piping/Binary/Components/GasVolumePumpComponent.cs @@ -6,7 +6,7 @@ using Robust.Shared.ViewVariables; namespace Content.Server.Atmos.Piping.Binary.Components { [RegisterComponent] - public class GasVolumePumpComponent : Component + public sealed class GasVolumePumpComponent : Component { [ViewVariables(VVAccess.ReadWrite)] public bool Enabled { get; set; } = true; diff --git a/Content.Server/Atmos/Piping/Binary/EntitySystems/GasDualPortVentPumpSystem.cs b/Content.Server/Atmos/Piping/Binary/EntitySystems/GasDualPortVentPumpSystem.cs index e1a3cdf9e4..ad6428f361 100644 --- a/Content.Server/Atmos/Piping/Binary/EntitySystems/GasDualPortVentPumpSystem.cs +++ b/Content.Server/Atmos/Piping/Binary/EntitySystems/GasDualPortVentPumpSystem.cs @@ -14,7 +14,7 @@ using Robust.Shared.IoC; namespace Content.Server.Atmos.Piping.Binary.EntitySystems { [UsedImplicitly] - public class GasDualPortVentPumpSystem : EntitySystem + public sealed class GasDualPortVentPumpSystem : EntitySystem { [Dependency] private readonly AtmosphereSystem _atmosphereSystem = default!; diff --git a/Content.Server/Atmos/Piping/Binary/EntitySystems/GasPassiveGateSystem.cs b/Content.Server/Atmos/Piping/Binary/EntitySystems/GasPassiveGateSystem.cs index 44ece1d573..6c81708c39 100644 --- a/Content.Server/Atmos/Piping/Binary/EntitySystems/GasPassiveGateSystem.cs +++ b/Content.Server/Atmos/Piping/Binary/EntitySystems/GasPassiveGateSystem.cs @@ -12,7 +12,7 @@ using Robust.Shared.IoC; namespace Content.Server.Atmos.Piping.Binary.EntitySystems { [UsedImplicitly] - public class GasPassiveGateSystem : EntitySystem + public sealed class GasPassiveGateSystem : EntitySystem { [Dependency] private readonly AtmosphereSystem _atmosphereSystem = default!; diff --git a/Content.Server/Atmos/Piping/Binary/EntitySystems/GasPressurePumpSystem.cs b/Content.Server/Atmos/Piping/Binary/EntitySystems/GasPressurePumpSystem.cs index 574fb9ebb5..04ed617adf 100644 --- a/Content.Server/Atmos/Piping/Binary/EntitySystems/GasPressurePumpSystem.cs +++ b/Content.Server/Atmos/Piping/Binary/EntitySystems/GasPressurePumpSystem.cs @@ -22,7 +22,7 @@ using Robust.Shared.Maths; namespace Content.Server.Atmos.Piping.Binary.EntitySystems { [UsedImplicitly] - public class GasPressurePumpSystem : EntitySystem + public sealed class GasPressurePumpSystem : EntitySystem { [Dependency] private UserInterfaceSystem _userInterfaceSystem = default!; [Dependency] private AdminLogSystem _adminLogSystem = default!; diff --git a/Content.Server/Atmos/Piping/Binary/EntitySystems/GasVolumePumpSystem.cs b/Content.Server/Atmos/Piping/Binary/EntitySystems/GasVolumePumpSystem.cs index a155421041..d74c2ba253 100644 --- a/Content.Server/Atmos/Piping/Binary/EntitySystems/GasVolumePumpSystem.cs +++ b/Content.Server/Atmos/Piping/Binary/EntitySystems/GasVolumePumpSystem.cs @@ -21,7 +21,7 @@ using Robust.Shared.Timing; namespace Content.Server.Atmos.Piping.Binary.EntitySystems { [UsedImplicitly] - public class GasVolumePumpSystem : EntitySystem + public sealed class GasVolumePumpSystem : EntitySystem { [Dependency] private readonly IGameTiming _gameTiming = default!; [Dependency] private readonly AtmosphereSystem _atmosphereSystem = default!; diff --git a/Content.Server/Atmos/Piping/Components/AtmosDeviceComponent.cs b/Content.Server/Atmos/Piping/Components/AtmosDeviceComponent.cs index b83777cdb3..7dc9d14039 100644 --- a/Content.Server/Atmos/Piping/Components/AtmosDeviceComponent.cs +++ b/Content.Server/Atmos/Piping/Components/AtmosDeviceComponent.cs @@ -11,7 +11,7 @@ namespace Content.Server.Atmos.Piping.Components /// Adds itself to a to be updated by. /// [RegisterComponent] - public class AtmosDeviceComponent : Component + public sealed class AtmosDeviceComponent : Component { /// /// Whether this device requires being anchored to join an atmosphere. diff --git a/Content.Server/Atmos/Piping/Components/AtmosPipeColorComponent.cs b/Content.Server/Atmos/Piping/Components/AtmosPipeColorComponent.cs index a5de61634e..f415fe3277 100644 --- a/Content.Server/Atmos/Piping/Components/AtmosPipeColorComponent.cs +++ b/Content.Server/Atmos/Piping/Components/AtmosPipeColorComponent.cs @@ -8,7 +8,7 @@ using Robust.Shared.ViewVariables; namespace Content.Server.Atmos.Piping.Components { [RegisterComponent] - public class AtmosPipeColorComponent : Component + public sealed class AtmosPipeColorComponent : Component { [DataField("color")] public Color Color { get; set; } = Color.White; diff --git a/Content.Server/Atmos/Piping/Components/AtmosUnsafeUnanchorComponent.cs b/Content.Server/Atmos/Piping/Components/AtmosUnsafeUnanchorComponent.cs index dd8754a064..4cb26612b1 100644 --- a/Content.Server/Atmos/Piping/Components/AtmosUnsafeUnanchorComponent.cs +++ b/Content.Server/Atmos/Piping/Components/AtmosUnsafeUnanchorComponent.cs @@ -5,7 +5,7 @@ using Robust.Shared.ViewVariables; namespace Content.Server.Atmos.Piping.Components { [RegisterComponent] - public class AtmosUnsafeUnanchorComponent : Component + public sealed class AtmosUnsafeUnanchorComponent : Component { [ViewVariables(VVAccess.ReadWrite)] [DataField("enabled")] diff --git a/Content.Server/Atmos/Piping/EntitySystems/AtmosDeviceSystem.cs b/Content.Server/Atmos/Piping/EntitySystems/AtmosDeviceSystem.cs index 2d5bcca41a..0ee6caafc2 100644 --- a/Content.Server/Atmos/Piping/EntitySystems/AtmosDeviceSystem.cs +++ b/Content.Server/Atmos/Piping/EntitySystems/AtmosDeviceSystem.cs @@ -10,7 +10,7 @@ using Robust.Shared.Timing; namespace Content.Server.Atmos.Piping.EntitySystems { [UsedImplicitly] - public class AtmosDeviceSystem : EntitySystem + public sealed class AtmosDeviceSystem : EntitySystem { [Dependency] private readonly IGameTiming _gameTiming = default!; [Dependency] private readonly AtmosphereSystem _atmosphereSystem = default!; diff --git a/Content.Server/Atmos/Piping/EntitySystems/AtmosPipeColorSystem.cs b/Content.Server/Atmos/Piping/EntitySystems/AtmosPipeColorSystem.cs index 7f5f997775..a3512069a6 100644 --- a/Content.Server/Atmos/Piping/EntitySystems/AtmosPipeColorSystem.cs +++ b/Content.Server/Atmos/Piping/EntitySystems/AtmosPipeColorSystem.cs @@ -5,7 +5,7 @@ using Robust.Shared.Maths; namespace Content.Server.Atmos.Piping.EntitySystems { - public class AtmosPipeColorSystem : EntitySystem + public sealed class AtmosPipeColorSystem : EntitySystem { public override void Initialize() { diff --git a/Content.Server/Atmos/Piping/EntitySystems/AtmosUnsafeUnanchorSystem.cs b/Content.Server/Atmos/Piping/EntitySystems/AtmosUnsafeUnanchorSystem.cs index 7997984658..127c6237dc 100644 --- a/Content.Server/Atmos/Piping/EntitySystems/AtmosUnsafeUnanchorSystem.cs +++ b/Content.Server/Atmos/Piping/EntitySystems/AtmosUnsafeUnanchorSystem.cs @@ -15,7 +15,7 @@ using Robust.Shared.Player; namespace Content.Server.Atmos.Piping.EntitySystems { [UsedImplicitly] - public class AtmosUnsafeUnanchorSystem : EntitySystem + public sealed class AtmosUnsafeUnanchorSystem : EntitySystem { [Dependency] private readonly AtmosphereSystem _atmosphereSystem = default!; [Dependency] private readonly PopupSystem _popupSystem = default!; diff --git a/Content.Server/Atmos/Piping/Other/Components/GasMinerComponent.cs b/Content.Server/Atmos/Piping/Other/Components/GasMinerComponent.cs index e840b0d7e0..ce030af85d 100644 --- a/Content.Server/Atmos/Piping/Other/Components/GasMinerComponent.cs +++ b/Content.Server/Atmos/Piping/Other/Components/GasMinerComponent.cs @@ -6,7 +6,7 @@ using Robust.Shared.ViewVariables; namespace Content.Server.Atmos.Piping.Other.Components { [RegisterComponent] - public class GasMinerComponent : Component + public sealed class GasMinerComponent : Component { public bool Enabled { get; set; } = true; diff --git a/Content.Server/Atmos/Piping/Other/EntitySystems/GasMinerSystem.cs b/Content.Server/Atmos/Piping/Other/EntitySystems/GasMinerSystem.cs index 3bcb4e602b..d9cbca8657 100644 --- a/Content.Server/Atmos/Piping/Other/EntitySystems/GasMinerSystem.cs +++ b/Content.Server/Atmos/Piping/Other/EntitySystems/GasMinerSystem.cs @@ -11,7 +11,7 @@ using Robust.Shared.IoC; namespace Content.Server.Atmos.Piping.Other.EntitySystems { [UsedImplicitly] - public class GasMinerSystem : EntitySystem + public sealed class GasMinerSystem : EntitySystem { [Dependency] private readonly AtmosphereSystem _atmosphereSystem = default!; diff --git a/Content.Server/Atmos/Piping/Trinary/Components/GasFilterComponent.cs b/Content.Server/Atmos/Piping/Trinary/Components/GasFilterComponent.cs index b6c1c2e92c..63915bb805 100644 --- a/Content.Server/Atmos/Piping/Trinary/Components/GasFilterComponent.cs +++ b/Content.Server/Atmos/Piping/Trinary/Components/GasFilterComponent.cs @@ -8,7 +8,7 @@ using Robust.Shared.ViewVariables; namespace Content.Server.Atmos.Piping.Trinary.Components { [RegisterComponent] - public class GasFilterComponent : Component + public sealed class GasFilterComponent : Component { [ViewVariables(VVAccess.ReadWrite)] public bool Enabled { get; set; } = true; diff --git a/Content.Server/Atmos/Piping/Trinary/EntitySystems/GasFilterSystem.cs b/Content.Server/Atmos/Piping/Trinary/EntitySystems/GasFilterSystem.cs index bfbcb1a73a..7980daf5bc 100644 --- a/Content.Server/Atmos/Piping/Trinary/EntitySystems/GasFilterSystem.cs +++ b/Content.Server/Atmos/Piping/Trinary/EntitySystems/GasFilterSystem.cs @@ -22,7 +22,7 @@ using Robust.Shared.Timing; namespace Content.Server.Atmos.Piping.Trinary.EntitySystems { [UsedImplicitly] - public class GasFilterSystem : EntitySystem + public sealed class GasFilterSystem : EntitySystem { [Dependency] private IGameTiming _gameTiming = default!; [Dependency] private UserInterfaceSystem _userInterfaceSystem = default!; diff --git a/Content.Server/Atmos/Piping/Unary/Components/GasCanisterComponent.cs b/Content.Server/Atmos/Piping/Unary/Components/GasCanisterComponent.cs index a4bb5b4bd8..16e0cdf9c7 100644 --- a/Content.Server/Atmos/Piping/Unary/Components/GasCanisterComponent.cs +++ b/Content.Server/Atmos/Piping/Unary/Components/GasCanisterComponent.cs @@ -6,7 +6,7 @@ using Robust.Shared.ViewVariables; namespace Content.Server.Atmos.Piping.Unary.Components { [RegisterComponent] - public class GasCanisterComponent : Component + public sealed class GasCanisterComponent : Component { [ViewVariables(VVAccess.ReadWrite)] [DataField("port")] diff --git a/Content.Server/Atmos/Piping/Unary/Components/GasOutletInjectorComponent.cs b/Content.Server/Atmos/Piping/Unary/Components/GasOutletInjectorComponent.cs index 26387b559d..19fb93461f 100644 --- a/Content.Server/Atmos/Piping/Unary/Components/GasOutletInjectorComponent.cs +++ b/Content.Server/Atmos/Piping/Unary/Components/GasOutletInjectorComponent.cs @@ -5,7 +5,7 @@ using Robust.Shared.ViewVariables; namespace Content.Server.Atmos.Piping.Unary.Components { [RegisterComponent] - public class GasOutletInjectorComponent : Component + public sealed class GasOutletInjectorComponent : Component { [ViewVariables(VVAccess.ReadWrite)] diff --git a/Content.Server/Atmos/Piping/Unary/Components/GasPassiveVentComponent.cs b/Content.Server/Atmos/Piping/Unary/Components/GasPassiveVentComponent.cs index a55d3d26b4..f89dcf8744 100644 --- a/Content.Server/Atmos/Piping/Unary/Components/GasPassiveVentComponent.cs +++ b/Content.Server/Atmos/Piping/Unary/Components/GasPassiveVentComponent.cs @@ -4,7 +4,7 @@ using Robust.Shared.Serialization.Manager.Attributes; namespace Content.Server.Atmos.Piping.Unary.Components { [RegisterComponent] - public class GasPassiveVentComponent : Component + public sealed class GasPassiveVentComponent : Component { [DataField("inlet")] public string InletName = "pipe"; diff --git a/Content.Server/Atmos/Piping/Unary/Components/GasPortableComponent.cs b/Content.Server/Atmos/Piping/Unary/Components/GasPortableComponent.cs index 9f6f0afca4..2b2971f34d 100644 --- a/Content.Server/Atmos/Piping/Unary/Components/GasPortableComponent.cs +++ b/Content.Server/Atmos/Piping/Unary/Components/GasPortableComponent.cs @@ -5,7 +5,7 @@ using Robust.Shared.ViewVariables; namespace Content.Server.Atmos.Piping.Unary.Components { [RegisterComponent] - public class GasPortableComponent : Component + public sealed class GasPortableComponent : Component { [ViewVariables(VVAccess.ReadWrite)] [DataField("port")] diff --git a/Content.Server/Atmos/Piping/Unary/Components/GasVentPumpComponent.cs b/Content.Server/Atmos/Piping/Unary/Components/GasVentPumpComponent.cs index 7ecec9e390..546010709e 100644 --- a/Content.Server/Atmos/Piping/Unary/Components/GasVentPumpComponent.cs +++ b/Content.Server/Atmos/Piping/Unary/Components/GasVentPumpComponent.cs @@ -8,7 +8,7 @@ using Robust.Shared.ViewVariables; namespace Content.Server.Atmos.Piping.Unary.Components { [RegisterComponent] - public class GasVentPumpComponent : Component + public sealed class GasVentPumpComponent : Component { [ViewVariables(VVAccess.ReadWrite)] public bool Enabled { get; set; } = true; diff --git a/Content.Server/Atmos/Piping/Unary/Components/GasVentScrubberComponent.cs b/Content.Server/Atmos/Piping/Unary/Components/GasVentScrubberComponent.cs index 309277bb06..fc8060dd6d 100644 --- a/Content.Server/Atmos/Piping/Unary/Components/GasVentScrubberComponent.cs +++ b/Content.Server/Atmos/Piping/Unary/Components/GasVentScrubberComponent.cs @@ -9,7 +9,7 @@ using Robust.Shared.ViewVariables; namespace Content.Server.Atmos.Piping.Unary.Components { [RegisterComponent] - public class GasVentScrubberComponent : Component + public sealed class GasVentScrubberComponent : Component { [ViewVariables(VVAccess.ReadWrite)] public bool Enabled { get; set; } = true; diff --git a/Content.Server/Atmos/Piping/Unary/EntitySystems/GasOutletInjectorSystem.cs b/Content.Server/Atmos/Piping/Unary/EntitySystems/GasOutletInjectorSystem.cs index 1074f84398..fdc0858a24 100644 --- a/Content.Server/Atmos/Piping/Unary/EntitySystems/GasOutletInjectorSystem.cs +++ b/Content.Server/Atmos/Piping/Unary/EntitySystems/GasOutletInjectorSystem.cs @@ -11,7 +11,7 @@ using Robust.Shared.IoC; namespace Content.Server.Atmos.Piping.Unary.EntitySystems { [UsedImplicitly] - public class GasOutletInjectorSystem : EntitySystem + public sealed class GasOutletInjectorSystem : EntitySystem { [Dependency] private readonly AtmosphereSystem _atmosphereSystem = default!; diff --git a/Content.Server/Atmos/Piping/Unary/EntitySystems/GasPassiveVentSystem.cs b/Content.Server/Atmos/Piping/Unary/EntitySystems/GasPassiveVentSystem.cs index ec71c0c909..d959461c25 100644 --- a/Content.Server/Atmos/Piping/Unary/EntitySystems/GasPassiveVentSystem.cs +++ b/Content.Server/Atmos/Piping/Unary/EntitySystems/GasPassiveVentSystem.cs @@ -12,7 +12,7 @@ using Robust.Shared.IoC; namespace Content.Server.Atmos.Piping.Unary.EntitySystems { [UsedImplicitly] - public class GasPassiveVentSystem : EntitySystem + public sealed class GasPassiveVentSystem : EntitySystem { [Dependency] private readonly AtmosphereSystem _atmosphereSystem = default!; diff --git a/Content.Server/Atmos/Piping/Unary/EntitySystems/GasPortableSystem.cs b/Content.Server/Atmos/Piping/Unary/EntitySystems/GasPortableSystem.cs index 259ac53e04..e4f37906cb 100644 --- a/Content.Server/Atmos/Piping/Unary/EntitySystems/GasPortableSystem.cs +++ b/Content.Server/Atmos/Piping/Unary/EntitySystems/GasPortableSystem.cs @@ -13,7 +13,7 @@ using Robust.Shared.Map; namespace Content.Server.Atmos.Piping.Unary.EntitySystems { [UsedImplicitly] - public class GasPortableSystem : EntitySystem + public sealed class GasPortableSystem : EntitySystem { [Dependency] private readonly IMapManager _mapManager = default!; diff --git a/Content.Server/Atmos/Piping/Unary/EntitySystems/GasThermoMachineSystem.cs b/Content.Server/Atmos/Piping/Unary/EntitySystems/GasThermoMachineSystem.cs index a7f7c90142..240dec9e99 100644 --- a/Content.Server/Atmos/Piping/Unary/EntitySystems/GasThermoMachineSystem.cs +++ b/Content.Server/Atmos/Piping/Unary/EntitySystems/GasThermoMachineSystem.cs @@ -11,7 +11,7 @@ using Robust.Shared.IoC; namespace Content.Server.Atmos.Piping.Unary.EntitySystems { [UsedImplicitly] - public class GasThermoMachineSystem : EntitySystem + public sealed class GasThermoMachineSystem : EntitySystem { [Dependency] private readonly AtmosphereSystem _atmosphereSystem = default!; diff --git a/Content.Server/Atmos/Piping/Unary/EntitySystems/GasVentPumpSystem.cs b/Content.Server/Atmos/Piping/Unary/EntitySystems/GasVentPumpSystem.cs index 376132d92f..3ef20c7b4f 100644 --- a/Content.Server/Atmos/Piping/Unary/EntitySystems/GasVentPumpSystem.cs +++ b/Content.Server/Atmos/Piping/Unary/EntitySystems/GasVentPumpSystem.cs @@ -22,7 +22,7 @@ using Robust.Shared.IoC; namespace Content.Server.Atmos.Piping.Unary.EntitySystems { [UsedImplicitly] - public class GasVentPumpSystem : EntitySystem + public sealed class GasVentPumpSystem : EntitySystem { [Dependency] private readonly AtmosphereSystem _atmosphereSystem = default!; [Dependency] private readonly DeviceNetworkSystem _deviceNetSystem = default!; diff --git a/Content.Server/Atmos/Piping/Unary/EntitySystems/GasVentScrubberSystem.cs b/Content.Server/Atmos/Piping/Unary/EntitySystems/GasVentScrubberSystem.cs index 09e5176208..93664fb74d 100644 --- a/Content.Server/Atmos/Piping/Unary/EntitySystems/GasVentScrubberSystem.cs +++ b/Content.Server/Atmos/Piping/Unary/EntitySystems/GasVentScrubberSystem.cs @@ -22,7 +22,7 @@ using Robust.Shared.Maths; namespace Content.Server.Atmos.Piping.Unary.EntitySystems { [UsedImplicitly] - public class GasVentScrubberSystem : EntitySystem + public sealed class GasVentScrubberSystem : EntitySystem { [Dependency] private readonly AtmosphereSystem _atmosphereSystem = default!; [Dependency] private readonly DeviceNetworkSystem _deviceNetSystem = default!; diff --git a/Content.Server/Atmos/PressureEvent.cs b/Content.Server/Atmos/PressureEvent.cs index 72df9a01f4..5a9bc33221 100644 --- a/Content.Server/Atmos/PressureEvent.cs +++ b/Content.Server/Atmos/PressureEvent.cs @@ -40,12 +40,12 @@ namespace Content.Server.Atmos } } - public class LowPressureEvent : PressureEvent + public sealed class LowPressureEvent : PressureEvent { public LowPressureEvent(float pressure) : base(pressure) { } } - public class HighPressureEvent : PressureEvent + public sealed class HighPressureEvent : PressureEvent { public HighPressureEvent(float pressure) : base(pressure) { } } diff --git a/Content.Server/Atmos/Reactions/GasReactionPrototype.cs b/Content.Server/Atmos/Reactions/GasReactionPrototype.cs index c782ca6ac6..dd2c310a60 100644 --- a/Content.Server/Atmos/Reactions/GasReactionPrototype.cs +++ b/Content.Server/Atmos/Reactions/GasReactionPrototype.cs @@ -23,7 +23,7 @@ namespace Content.Server.Atmos.Reactions } [Prototype("gasReaction")] - public class GasReactionPrototype : IPrototype + public sealed class GasReactionPrototype : IPrototype { [ViewVariables] [DataField("id", required: true)] diff --git a/Content.Server/Atmos/Reactions/PlasmaFireReaction.cs b/Content.Server/Atmos/Reactions/PlasmaFireReaction.cs index b43000e8a1..dd4ca09dc5 100644 --- a/Content.Server/Atmos/Reactions/PlasmaFireReaction.cs +++ b/Content.Server/Atmos/Reactions/PlasmaFireReaction.cs @@ -10,7 +10,7 @@ namespace Content.Server.Atmos.Reactions { [UsedImplicitly] [DataDefinition] - public class PlasmaFireReaction : IGasReactionEffect + public sealed class PlasmaFireReaction : IGasReactionEffect { public ReactionResult React(GasMixture mixture, IGasMixtureHolder? holder, AtmosphereSystem atmosphereSystem) { diff --git a/Content.Server/Atmos/Reactions/TritiumFireReaction.cs b/Content.Server/Atmos/Reactions/TritiumFireReaction.cs index 57d46d9863..6793794c97 100644 --- a/Content.Server/Atmos/Reactions/TritiumFireReaction.cs +++ b/Content.Server/Atmos/Reactions/TritiumFireReaction.cs @@ -9,7 +9,7 @@ namespace Content.Server.Atmos.Reactions { [UsedImplicitly] [DataDefinition] - public class TritiumFireReaction : IGasReactionEffect + public sealed class TritiumFireReaction : IGasReactionEffect { public ReactionResult React(GasMixture mixture, IGasMixtureHolder? holder, AtmosphereSystem atmosphereSystem) { diff --git a/Content.Server/Atmos/Reactions/WaterVaporReaction.cs b/Content.Server/Atmos/Reactions/WaterVaporReaction.cs index ba30ef4ec8..f05c4afc34 100644 --- a/Content.Server/Atmos/Reactions/WaterVaporReaction.cs +++ b/Content.Server/Atmos/Reactions/WaterVaporReaction.cs @@ -13,7 +13,7 @@ namespace Content.Server.Atmos.Reactions { [UsedImplicitly] [DataDefinition] - public class WaterVaporReaction : IGasReactionEffect + public sealed class WaterVaporReaction : IGasReactionEffect { [DataField("reagent")] public string? Reagent { get; } = null; @@ -37,7 +37,7 @@ namespace Content.Server.Atmos.Reactions // Remove the moles from the mixture... mixture.AdjustMoles(GasId, -MolesPerUnit); - var tileRef = tile.GridIndices.GetTileRef(tile.GridIndex); + var tileRef = tile.GridIndices.GetTileRef(tile.GridIndex); EntitySystem.Get() .SpillAt(tileRef, new Solution(Reagent, FixedPoint2.New(MolesPerUnit)), PuddlePrototype, sound: false); diff --git a/Content.Server/Atmos/TileAtmosphere.cs b/Content.Server/Atmos/TileAtmosphere.cs index cf307b6362..34b5f2f0c3 100644 --- a/Content.Server/Atmos/TileAtmosphere.cs +++ b/Content.Server/Atmos/TileAtmosphere.cs @@ -11,7 +11,7 @@ namespace Content.Server.Atmos /// Internal Atmos class that stores data about the atmosphere in a grid. /// You shouldn't use this directly, use instead. /// - public class TileAtmosphere : IGasMixtureHolder + public sealed class TileAtmosphere : IGasMixtureHolder { [ViewVariables] public int ArchivedCycle; diff --git a/Content.Server/Atmos/TileFireEvent.cs b/Content.Server/Atmos/TileFireEvent.cs index 6bcdd2fc5d..d9085ce015 100644 --- a/Content.Server/Atmos/TileFireEvent.cs +++ b/Content.Server/Atmos/TileFireEvent.cs @@ -5,7 +5,7 @@ namespace Content.Server.Atmos /// /// Event raised directed to an entity when it is standing on a tile that's on fire. /// - public class TileFireEvent : EntityEventArgs + public sealed class TileFireEvent : EntityEventArgs { public float Temperature { get; } public float Volume { get; } diff --git a/Content.Server/Audio/AmbientOnPoweredComponent.cs b/Content.Server/Audio/AmbientOnPoweredComponent.cs index 4d58271f8e..a514ad38ee 100644 --- a/Content.Server/Audio/AmbientOnPoweredComponent.cs +++ b/Content.Server/Audio/AmbientOnPoweredComponent.cs @@ -7,7 +7,7 @@ namespace Content.Server.Audio /// Toggles on when powered and off when not powered. /// [RegisterComponent] - public class AmbientOnPoweredComponent : Component + public sealed class AmbientOnPoweredComponent : Component { } } diff --git a/Content.Server/BarSign/BarSignComponent.cs b/Content.Server/BarSign/BarSignComponent.cs index bf77b7374e..3713a3958d 100644 --- a/Content.Server/BarSign/BarSignComponent.cs +++ b/Content.Server/BarSign/BarSignComponent.cs @@ -5,7 +5,7 @@ using Robust.Shared.ViewVariables; namespace Content.Server.BarSign { [RegisterComponent] - public class BarSignComponent : Component + public sealed class BarSignComponent : Component { [DataField("current")] [ViewVariables(VVAccess.ReadOnly)] diff --git a/Content.Server/BarSign/BarSignPrototype.cs b/Content.Server/BarSign/BarSignPrototype.cs index 99e32cafec..a783866a8b 100644 --- a/Content.Server/BarSign/BarSignPrototype.cs +++ b/Content.Server/BarSign/BarSignPrototype.cs @@ -6,7 +6,7 @@ using Robust.Shared.ViewVariables; namespace Content.Server.BarSign { [Prototype("barSign")] - public class BarSignPrototype : IPrototype + public sealed class BarSignPrototype : IPrototype { private string _description = string.Empty; private string _name = string.Empty; diff --git a/Content.Server/BarSign/Systems/BarSignSystem.cs b/Content.Server/BarSign/Systems/BarSignSystem.cs index 61843cd79c..1c3627e255 100644 --- a/Content.Server/BarSign/Systems/BarSignSystem.cs +++ b/Content.Server/BarSign/Systems/BarSignSystem.cs @@ -12,7 +12,7 @@ using Robust.Shared.Random; namespace Content.Server.BarSign.Systems { - public class BarSignSystem : EntitySystem + public sealed class BarSignSystem : EntitySystem { [Dependency] private readonly IPrototypeManager _prototypeManager = default!; [Dependency] private readonly IRobustRandom _random = default!; diff --git a/Content.Server/Bible/BibleSystem.cs b/Content.Server/Bible/BibleSystem.cs index 1b71923a04..877057f111 100644 --- a/Content.Server/Bible/BibleSystem.cs +++ b/Content.Server/Bible/BibleSystem.cs @@ -20,7 +20,7 @@ using Robust.Shared.Timing; namespace Content.Server.Bible { - public class BibleSystem : EntitySystem + public sealed class BibleSystem : EntitySystem { [Dependency] private readonly InventorySystem _invSystem = default!; [Dependency] private readonly IRobustRandom _random = default!; diff --git a/Content.Server/Body/Commands/AddHandCommand.cs b/Content.Server/Body/Commands/AddHandCommand.cs index d709c79246..aa0773c99e 100644 --- a/Content.Server/Body/Commands/AddHandCommand.cs +++ b/Content.Server/Body/Commands/AddHandCommand.cs @@ -11,7 +11,7 @@ using Robust.Shared.Random; namespace Content.Server.Body.Commands { [AdminCommand(AdminFlags.Fun)] - class AddHandCommand : IConsoleCommand + sealed class AddHandCommand : IConsoleCommand { public const string DefaultHandPrototype = "LeftHandHuman"; diff --git a/Content.Server/Body/Commands/AttachBodyPartCommand.cs b/Content.Server/Body/Commands/AttachBodyPartCommand.cs index c46e366400..b4fd6b42e4 100644 --- a/Content.Server/Body/Commands/AttachBodyPartCommand.cs +++ b/Content.Server/Body/Commands/AttachBodyPartCommand.cs @@ -9,7 +9,7 @@ using Robust.Shared.IoC; namespace Content.Server.Body.Commands { [AdminCommand(AdminFlags.Fun)] - public class AttachBodyPartCommand : IConsoleCommand + public sealed class AttachBodyPartCommand : IConsoleCommand { public string Command => "attachbodypart"; public string Description => "Attaches a body part to you or someone else."; diff --git a/Content.Server/Body/Commands/DestroyMechanismCommand.cs b/Content.Server/Body/Commands/DestroyMechanismCommand.cs index a9a3add4a5..2b9118ecb8 100644 --- a/Content.Server/Body/Commands/DestroyMechanismCommand.cs +++ b/Content.Server/Body/Commands/DestroyMechanismCommand.cs @@ -10,7 +10,7 @@ using Robust.Shared.Random; namespace Content.Server.Body.Commands { [AdminCommand(AdminFlags.Fun)] - class DestroyMechanismCommand : IConsoleCommand + sealed class DestroyMechanismCommand : IConsoleCommand { public string Command => "destroymechanism"; public string Description => "Destroys a mechanism from your entity"; diff --git a/Content.Server/Body/Commands/RemoveHandCommand.cs b/Content.Server/Body/Commands/RemoveHandCommand.cs index e474ebfb1a..6737edafde 100644 --- a/Content.Server/Body/Commands/RemoveHandCommand.cs +++ b/Content.Server/Body/Commands/RemoveHandCommand.cs @@ -12,7 +12,7 @@ using Robust.Shared.Random; namespace Content.Server.Body.Commands { [AdminCommand(AdminFlags.Fun)] - class RemoveHandCommand : IConsoleCommand + sealed class RemoveHandCommand : IConsoleCommand { public string Command => "removehand"; public string Description => "Removes a hand from your entity."; diff --git a/Content.Server/Body/Components/BloodstreamComponent.cs b/Content.Server/Body/Components/BloodstreamComponent.cs index aa8426efbe..612ef6e153 100644 --- a/Content.Server/Body/Components/BloodstreamComponent.cs +++ b/Content.Server/Body/Components/BloodstreamComponent.cs @@ -11,7 +11,7 @@ using Robust.Shared.ViewVariables; namespace Content.Server.Body.Components { [RegisterComponent, Friend(typeof(BloodstreamSystem))] - public class BloodstreamComponent : Component + public sealed class BloodstreamComponent : Component { /// /// Max volume of internal solution storage diff --git a/Content.Server/Body/Components/BodyComponent.cs b/Content.Server/Body/Components/BodyComponent.cs index 307f74c562..9486df05aa 100644 --- a/Content.Server/Body/Components/BodyComponent.cs +++ b/Content.Server/Body/Components/BodyComponent.cs @@ -15,7 +15,7 @@ namespace Content.Server.Body.Components { [RegisterComponent] [ComponentReference(typeof(SharedBodyComponent))] - public class BodyComponent : SharedBodyComponent + public sealed class BodyComponent : SharedBodyComponent { [Dependency] private readonly IEntityManager _entMan = default!; diff --git a/Content.Server/Body/Components/BodyPartComponent.cs b/Content.Server/Body/Components/BodyPartComponent.cs index 87a169171e..482eefde4a 100644 --- a/Content.Server/Body/Components/BodyPartComponent.cs +++ b/Content.Server/Body/Components/BodyPartComponent.cs @@ -9,7 +9,7 @@ namespace Content.Server.Body.Components { [RegisterComponent] [ComponentReference(typeof(SharedBodyPartComponent))] - public class BodyPartComponent : SharedBodyPartComponent + public sealed class BodyPartComponent : SharedBodyPartComponent { [Dependency] private readonly IEntityManager _entMan = default!; diff --git a/Content.Server/Body/Components/BodyScannerComponent.cs b/Content.Server/Body/Components/BodyScannerComponent.cs index a9045bcf11..18d5619dc3 100644 --- a/Content.Server/Body/Components/BodyScannerComponent.cs +++ b/Content.Server/Body/Components/BodyScannerComponent.cs @@ -11,7 +11,7 @@ namespace Content.Server.Body.Components [RegisterComponent] [ComponentReference(typeof(IActivate))] [ComponentReference(typeof(SharedBodyScannerComponent))] - public class BodyScannerComponent : SharedBodyScannerComponent, IActivate + public sealed class BodyScannerComponent : SharedBodyScannerComponent, IActivate { [Dependency] private readonly IEntityManager _entMan = default!; diff --git a/Content.Server/Body/Components/BrainComponent.cs b/Content.Server/Body/Components/BrainComponent.cs index e3f52f55d1..f5cdea9d45 100644 --- a/Content.Server/Body/Components/BrainComponent.cs +++ b/Content.Server/Body/Components/BrainComponent.cs @@ -5,7 +5,7 @@ using Robust.Shared.GameObjects; namespace Content.Server.Body.Components { [RegisterComponent, Friend(typeof(BrainSystem))] - public class BrainComponent : Component + public sealed class BrainComponent : Component { } } diff --git a/Content.Server/Body/Components/InternalsComponent.cs b/Content.Server/Body/Components/InternalsComponent.cs index 72e1f9f8c5..a43217544a 100644 --- a/Content.Server/Body/Components/InternalsComponent.cs +++ b/Content.Server/Body/Components/InternalsComponent.cs @@ -6,7 +6,7 @@ using Robust.Shared.ViewVariables; namespace Content.Server.Body.Components { [RegisterComponent] - public class InternalsComponent : Component + public sealed class InternalsComponent : Component { [Dependency] private readonly IEntityManager _entMan = default!; diff --git a/Content.Server/Body/Components/MetabolizerComponent.cs b/Content.Server/Body/Components/MetabolizerComponent.cs index 29a2c6a3e8..fb7fe838db 100644 --- a/Content.Server/Body/Components/MetabolizerComponent.cs +++ b/Content.Server/Body/Components/MetabolizerComponent.cs @@ -15,7 +15,7 @@ namespace Content.Server.Body.Components /// Handles metabolizing various reagents with given effects. /// [RegisterComponent, Friend(typeof(MetabolizerSystem))] - public class MetabolizerComponent : Component + public sealed class MetabolizerComponent : Component { public float AccumulatedFrametime = 0.0f; @@ -74,7 +74,7 @@ namespace Content.Server.Body.Components /// This allows metabolizers to remove certain groups much faster, or not at all. /// [DataDefinition] - public class MetabolismGroupEntry + public sealed class MetabolismGroupEntry { [DataField("id", required: true, customTypeSerializer:typeof(PrototypeIdSerializer))] public string Id = default!; diff --git a/Content.Server/Body/Components/StomachComponent.cs b/Content.Server/Body/Components/StomachComponent.cs index f977656c6a..ec7227f720 100644 --- a/Content.Server/Body/Components/StomachComponent.cs +++ b/Content.Server/Body/Components/StomachComponent.cs @@ -10,7 +10,7 @@ using Robust.Shared.ViewVariables; namespace Content.Server.Body.Components { [RegisterComponent, Friend(typeof(StomachSystem))] - public class StomachComponent : Component + public sealed class StomachComponent : Component { public float AccumulatedFrameTime; @@ -48,7 +48,7 @@ namespace Content.Server.Body.Components /// /// Used to track quantity changes when ingesting & digesting reagents /// - public class ReagentDelta + public sealed class ReagentDelta { public readonly string ReagentId; public readonly FixedPoint2 Quantity; diff --git a/Content.Server/Body/Components/ThermalRegulatorComponent.cs b/Content.Server/Body/Components/ThermalRegulatorComponent.cs index 6314883df1..437d7f4fc2 100644 --- a/Content.Server/Body/Components/ThermalRegulatorComponent.cs +++ b/Content.Server/Body/Components/ThermalRegulatorComponent.cs @@ -8,7 +8,7 @@ namespace Content.Server.Body.Components; [RegisterComponent] [Friend(typeof(ThermalRegulatorSystem))] -public class ThermalRegulatorComponent : Component +public sealed class ThermalRegulatorComponent : Component { /// /// Heat generated due to metabolism. It's generated via metabolism diff --git a/Content.Server/Body/Systems/BloodstreamSystem.cs b/Content.Server/Body/Systems/BloodstreamSystem.cs index 98e637fe53..518b309b7d 100644 --- a/Content.Server/Body/Systems/BloodstreamSystem.cs +++ b/Content.Server/Body/Systems/BloodstreamSystem.cs @@ -10,7 +10,7 @@ using Robust.Shared.IoC; namespace Content.Server.Body.Systems; -public class BloodstreamSystem : EntitySystem +public sealed class BloodstreamSystem : EntitySystem { [Dependency] private readonly SolutionContainerSystem _solutionContainerSystem = default!; [Dependency] private readonly AtmosphereSystem _atmosSystem = default!; diff --git a/Content.Server/Body/Systems/BrainSystem.cs b/Content.Server/Body/Systems/BrainSystem.cs index e7a84a6fba..d5c1c9f247 100644 --- a/Content.Server/Body/Systems/BrainSystem.cs +++ b/Content.Server/Body/Systems/BrainSystem.cs @@ -9,7 +9,7 @@ using Robust.Shared.GameObjects; namespace Content.Server.Body.Systems { - public class BrainSystem : EntitySystem + public sealed class BrainSystem : EntitySystem { public override void Initialize() { diff --git a/Content.Server/Body/Systems/InternalsSystem.cs b/Content.Server/Body/Systems/InternalsSystem.cs index 4a8a7a1367..4a3b764e6e 100644 --- a/Content.Server/Body/Systems/InternalsSystem.cs +++ b/Content.Server/Body/Systems/InternalsSystem.cs @@ -5,7 +5,7 @@ using Robust.Shared.GameObjects; namespace Content.Server.Body.Systems; -public class InternalsSystem : EntitySystem +public sealed class InternalsSystem : EntitySystem { public override void Initialize() { diff --git a/Content.Server/Body/Systems/LungSystem.cs b/Content.Server/Body/Systems/LungSystem.cs index d6f3be7e4d..5857283c2a 100644 --- a/Content.Server/Body/Systems/LungSystem.cs +++ b/Content.Server/Body/Systems/LungSystem.cs @@ -12,7 +12,7 @@ using Robust.Shared.Utility; namespace Content.Server.Body.Systems; -public class LungSystem : EntitySystem +public sealed class LungSystem : EntitySystem { [Dependency] private readonly SolutionContainerSystem _solutionContainerSystem = default!; [Dependency] private readonly AtmosphereSystem _atmosphereSystem = default!; diff --git a/Content.Server/Body/Systems/MetabolizerSystem.cs b/Content.Server/Body/Systems/MetabolizerSystem.cs index e5d211a78c..73b25951e7 100644 --- a/Content.Server/Body/Systems/MetabolizerSystem.cs +++ b/Content.Server/Body/Systems/MetabolizerSystem.cs @@ -18,7 +18,7 @@ using Robust.Shared.Random; namespace Content.Server.Body.Systems { [UsedImplicitly] - public class MetabolizerSystem : EntitySystem + public sealed class MetabolizerSystem : EntitySystem { [Dependency] private readonly SolutionContainerSystem _solutionContainerSystem = default!; [Dependency] private readonly IPrototypeManager _prototypeManager = default!; diff --git a/Content.Server/Body/Systems/RespiratorSystem.cs b/Content.Server/Body/Systems/RespiratorSystem.cs index cf9bb1f5ec..1b016dd298 100644 --- a/Content.Server/Body/Systems/RespiratorSystem.cs +++ b/Content.Server/Body/Systems/RespiratorSystem.cs @@ -21,7 +21,7 @@ using Robust.Shared.Timing; namespace Content.Server.Body.Systems { [UsedImplicitly] - public class RespiratorSystem : EntitySystem + public sealed class RespiratorSystem : EntitySystem { [Dependency] private readonly DamageableSystem _damageableSys = default!; [Dependency] private readonly AdminLogSystem _logSys = default!; @@ -192,12 +192,12 @@ namespace Content.Server.Body.Systems } } -public class InhaleLocationEvent : EntityEventArgs +public sealed class InhaleLocationEvent : EntityEventArgs { public GasMixture? Gas; } -public class ExhaleLocationEvent : EntityEventArgs +public sealed class ExhaleLocationEvent : EntityEventArgs { public GasMixture? Gas; } diff --git a/Content.Server/Body/Systems/StomachSystem.cs b/Content.Server/Body/Systems/StomachSystem.cs index c264870469..62b5f8e0fd 100644 --- a/Content.Server/Body/Systems/StomachSystem.cs +++ b/Content.Server/Body/Systems/StomachSystem.cs @@ -9,7 +9,7 @@ using Robust.Shared.Utility; namespace Content.Server.Body.Systems { - public class StomachSystem : EntitySystem + public sealed class StomachSystem : EntitySystem { [Dependency] private readonly SolutionContainerSystem _solutionContainerSystem = default!; diff --git a/Content.Server/Body/Systems/ThermalRegulatorSystem.cs b/Content.Server/Body/Systems/ThermalRegulatorSystem.cs index 9de3afae52..81f38213b3 100644 --- a/Content.Server/Body/Systems/ThermalRegulatorSystem.cs +++ b/Content.Server/Body/Systems/ThermalRegulatorSystem.cs @@ -8,7 +8,7 @@ using Robust.Shared.IoC; namespace Content.Server.Body.Systems; -public class ThermalRegulatorSystem : EntitySystem +public sealed class ThermalRegulatorSystem : EntitySystem { [Dependency] private readonly TemperatureSystem _tempSys = default!; [Dependency] private readonly ActionBlockerSystem _actionBlockerSys = default!; diff --git a/Content.Server/Botany/Components/PlantHolderComponent.cs b/Content.Server/Botany/Components/PlantHolderComponent.cs index 6443aefd77..bcd0805f82 100644 --- a/Content.Server/Botany/Components/PlantHolderComponent.cs +++ b/Content.Server/Botany/Components/PlantHolderComponent.cs @@ -37,7 +37,7 @@ namespace Content.Server.Botany.Components { [RegisterComponent] #pragma warning disable 618 - public class PlantHolderComponent : Component, IInteractUsing, IInteractHand, IActivate, IExamine + public sealed class PlantHolderComponent : Component, IInteractUsing, IInteractHand, IActivate, IExamine #pragma warning restore 618 { public const float HydroponicsSpeedMultiplier = 1f; diff --git a/Content.Server/Botany/Systems/BotanySystem.Produce.cs b/Content.Server/Botany/Systems/BotanySystem.Produce.cs index d4bfc2d0c9..fbd06e1afb 100644 --- a/Content.Server/Botany/Systems/BotanySystem.Produce.cs +++ b/Content.Server/Botany/Systems/BotanySystem.Produce.cs @@ -6,7 +6,7 @@ using Robust.Shared.Maths; namespace Content.Server.Botany.Systems; -public partial class BotanySystem +public sealed partial class BotanySystem { public void ProduceGrown(EntityUid uid, ProduceComponent produce) { diff --git a/Content.Server/Botany/Systems/BotanySystem.Seed.cs b/Content.Server/Botany/Systems/BotanySystem.Seed.cs index 97b58be408..7322cba2d0 100644 --- a/Content.Server/Botany/Systems/BotanySystem.Seed.cs +++ b/Content.Server/Botany/Systems/BotanySystem.Seed.cs @@ -17,7 +17,7 @@ using Robust.Shared.Utility; namespace Content.Server.Botany.Systems; -public partial class BotanySystem +public sealed partial class BotanySystem { public void InitializeSeeds() { diff --git a/Content.Server/Bql/QuerySelectors.cs b/Content.Server/Bql/QuerySelectors.cs index 5431cb19ce..505fbebd01 100644 --- a/Content.Server/Bql/QuerySelectors.cs +++ b/Content.Server/Bql/QuerySelectors.cs @@ -10,10 +10,10 @@ using Robust.Shared.GameObjects; namespace Content.Server.Bql { - public class QuerySelectors + public sealed class QuerySelectors { [RegisterBqlQuerySelector] - public class MindfulQuerySelector : BqlQuerySelector + public sealed class MindfulQuerySelector : BqlQuerySelector { public override string Token => "mindful"; @@ -41,7 +41,7 @@ namespace Content.Server.Bql } [RegisterBqlQuerySelector] - public class TaggedQuerySelector : BqlQuerySelector + public sealed class TaggedQuerySelector : BqlQuerySelector { public override string Token => "tagged"; @@ -63,7 +63,7 @@ namespace Content.Server.Bql } [RegisterBqlQuerySelector] - public class AliveQuerySelector : BqlQuerySelector + public sealed class AliveQuerySelector : BqlQuerySelector { public override string Token => "alive"; @@ -84,7 +84,7 @@ namespace Content.Server.Bql } [RegisterBqlQuerySelector] - public class HasReagentQuerySelector : BqlQuerySelector + public sealed class HasReagentQuerySelector : BqlQuerySelector { public override string Token => "hasreagent"; @@ -113,7 +113,7 @@ namespace Content.Server.Bql } [RegisterBqlQuerySelector] - public class ApcPoweredQuerySelector : BqlQuerySelector + public sealed class ApcPoweredQuerySelector : BqlQuerySelector { public override string Token => "apcpowered"; diff --git a/Content.Server/Buckle/Components/BuckleComponent.cs b/Content.Server/Buckle/Components/BuckleComponent.cs index 6a4ae96cbc..8276cb7e97 100644 --- a/Content.Server/Buckle/Components/BuckleComponent.cs +++ b/Content.Server/Buckle/Components/BuckleComponent.cs @@ -30,7 +30,7 @@ namespace Content.Server.Buckle.Components /// [RegisterComponent] [ComponentReference(typeof(SharedBuckleComponent))] - public class BuckleComponent : SharedBuckleComponent + public sealed class BuckleComponent : SharedBuckleComponent { [Dependency] private readonly IEntityManager _entMan = default!; [Dependency] private readonly IGameTiming _gameTiming = default!; diff --git a/Content.Server/Buckle/Components/StrapComponent.cs b/Content.Server/Buckle/Components/StrapComponent.cs index c4336174d2..f42f44d42c 100644 --- a/Content.Server/Buckle/Components/StrapComponent.cs +++ b/Content.Server/Buckle/Components/StrapComponent.cs @@ -18,7 +18,7 @@ namespace Content.Server.Buckle.Components { [RegisterComponent] [ComponentReference(typeof(SharedStrapComponent))] - public class StrapComponent : SharedStrapComponent, IInteractHand, ISerializationHooks, IDestroyAct + public sealed class StrapComponent : SharedStrapComponent, IInteractHand, ISerializationHooks, IDestroyAct { [Dependency] private readonly IEntityManager _entityManager = default!; diff --git a/Content.Server/CPUJob/JobQueues/Queues/JobQueue.cs b/Content.Server/CPUJob/JobQueues/Queues/JobQueue.cs index 050b1928b9..a727987b7d 100644 --- a/Content.Server/CPUJob/JobQueues/Queues/JobQueue.cs +++ b/Content.Server/CPUJob/JobQueues/Queues/JobQueue.cs @@ -3,6 +3,7 @@ using Robust.Shared.Timing; namespace Content.Server.CPUJob.JobQueues.Queues { + [Virtual] public class JobQueue { private readonly IStopwatch _stopwatch; diff --git a/Content.Server/Cabinet/ItemCabinetSystem.cs b/Content.Server/Cabinet/ItemCabinetSystem.cs index cb4d8c3fb8..bebc314608 100644 --- a/Content.Server/Cabinet/ItemCabinetSystem.cs +++ b/Content.Server/Cabinet/ItemCabinetSystem.cs @@ -12,7 +12,7 @@ using Robust.Shared.Player; namespace Content.Server.Cabinet { - public class ItemCabinetSystem : EntitySystem + public sealed class ItemCabinetSystem : EntitySystem { [Dependency] private readonly ItemSlotsSystem _itemSlotsSystem = default!; diff --git a/Content.Server/Cargo/CargoBankAccount.cs b/Content.Server/Cargo/CargoBankAccount.cs index 253a214085..408d0407b2 100644 --- a/Content.Server/Cargo/CargoBankAccount.cs +++ b/Content.Server/Cargo/CargoBankAccount.cs @@ -3,7 +3,7 @@ using Robust.Shared.ViewVariables; namespace Content.Server.Cargo { - public class CargoBankAccount : ICargoBankAccount + public sealed class CargoBankAccount : ICargoBankAccount { [ViewVariables] public int Id { get; } diff --git a/Content.Server/Cargo/CargoOrderDatabase.cs b/Content.Server/Cargo/CargoOrderDatabase.cs index 38e2cad3ac..d118511038 100644 --- a/Content.Server/Cargo/CargoOrderDatabase.cs +++ b/Content.Server/Cargo/CargoOrderDatabase.cs @@ -8,7 +8,7 @@ using Robust.Shared.Localization; namespace Content.Server.Cargo { - public class CargoOrderDatabase + public sealed class CargoOrderDatabase { private readonly Dictionary _orders = new(); private int _orderNumber = 0; diff --git a/Content.Server/Cargo/Components/CargoConsoleComponent.cs b/Content.Server/Cargo/Components/CargoConsoleComponent.cs index b5aaf4c4d8..f2c3ecb8dc 100644 --- a/Content.Server/Cargo/Components/CargoConsoleComponent.cs +++ b/Content.Server/Cargo/Components/CargoConsoleComponent.cs @@ -19,7 +19,7 @@ using Robust.Shared.ViewVariables; namespace Content.Server.Cargo.Components { [RegisterComponent] - public class CargoConsoleComponent : SharedCargoConsoleComponent + public sealed class CargoConsoleComponent : SharedCargoConsoleComponent { [Dependency] private readonly IMapManager _mapManager = default!; [Dependency] private readonly IEntityManager _entMan = default!; diff --git a/Content.Server/Cargo/Components/CargoOrderDatabaseComponent.cs b/Content.Server/Cargo/Components/CargoOrderDatabaseComponent.cs index c184a0fe12..52b7b97dd1 100644 --- a/Content.Server/Cargo/Components/CargoOrderDatabaseComponent.cs +++ b/Content.Server/Cargo/Components/CargoOrderDatabaseComponent.cs @@ -5,7 +5,7 @@ using Robust.Shared.Players; namespace Content.Server.Cargo.Components { [RegisterComponent] - public class CargoOrderDatabaseComponent : SharedCargoOrderDatabaseComponent + public sealed class CargoOrderDatabaseComponent : SharedCargoOrderDatabaseComponent { public CargoOrderDatabase? Database { get; set; } public bool ConnectedToDatabase => Database != null; diff --git a/Content.Server/Cargo/Components/GalacticMarketComponent.cs b/Content.Server/Cargo/Components/GalacticMarketComponent.cs index 4d5d45a84e..d374cc0090 100644 --- a/Content.Server/Cargo/Components/GalacticMarketComponent.cs +++ b/Content.Server/Cargo/Components/GalacticMarketComponent.cs @@ -5,7 +5,7 @@ using Robust.Shared.Players; namespace Content.Server.Cargo.Components { [RegisterComponent] - public class GalacticMarketComponent : SharedGalacticMarketComponent + public sealed class GalacticMarketComponent : SharedGalacticMarketComponent { public override ComponentState GetComponentState() { diff --git a/Content.Server/CharacterAppearance/Components/MagicMirrorComponent.cs b/Content.Server/CharacterAppearance/Components/MagicMirrorComponent.cs index c980287e5e..351978e973 100644 --- a/Content.Server/CharacterAppearance/Components/MagicMirrorComponent.cs +++ b/Content.Server/CharacterAppearance/Components/MagicMirrorComponent.cs @@ -15,7 +15,7 @@ namespace Content.Server.CharacterAppearance.Components { [RegisterComponent] [ComponentReference(typeof(IActivate))] - public class MagicMirrorComponent : SharedMagicMirrorComponent, IActivate + public sealed class MagicMirrorComponent : SharedMagicMirrorComponent, IActivate { [Dependency] private readonly IEntityManager _entities = default!; [Dependency] private readonly SpriteAccessoryManager _spriteAccessoryManager = default!; diff --git a/Content.Server/CharacterInfo/CharacterInfoSystem.cs b/Content.Server/CharacterInfo/CharacterInfoSystem.cs index f1f3b7613e..c900c8d259 100644 --- a/Content.Server/CharacterInfo/CharacterInfoSystem.cs +++ b/Content.Server/CharacterInfo/CharacterInfoSystem.cs @@ -8,7 +8,7 @@ using Robust.Shared.Player; namespace Content.Server.CharacterInfo; -public class CharacterInfoSystem : EntitySystem +public sealed class CharacterInfoSystem : EntitySystem { public override void Initialize() { @@ -52,7 +52,7 @@ public class CharacterInfoSystem : EntitySystem jobTitle = role.Name; break; } - + // Get briefing briefing = mind.Briefing; } diff --git a/Content.Server/Chat/Commands/AdminChatCommand.cs b/Content.Server/Chat/Commands/AdminChatCommand.cs index 50a4f207e2..3f4398cf67 100644 --- a/Content.Server/Chat/Commands/AdminChatCommand.cs +++ b/Content.Server/Chat/Commands/AdminChatCommand.cs @@ -8,7 +8,7 @@ using Robust.Shared.IoC; namespace Content.Server.Chat.Commands { [AdminCommand(AdminFlags.Admin)] - internal class AdminChatCommand : IConsoleCommand + internal sealed class AdminChatCommand : IConsoleCommand { public string Command => "asay"; public string Description => "Send chat messages to the private admin chat channel."; diff --git a/Content.Server/Chat/Commands/LOOCCommand.cs b/Content.Server/Chat/Commands/LOOCCommand.cs index 75eaa94726..ca88e385ae 100644 --- a/Content.Server/Chat/Commands/LOOCCommand.cs +++ b/Content.Server/Chat/Commands/LOOCCommand.cs @@ -10,7 +10,7 @@ using Robust.Shared.IoC; namespace Content.Server.Chat.Commands { [AnyCommand] - internal class LOOCCommand : IConsoleCommand + internal sealed class LOOCCommand : IConsoleCommand { public string Command => "looc"; public string Description => "Send Local Out Of Character chat messages."; diff --git a/Content.Server/Chat/Commands/MeCommand.cs b/Content.Server/Chat/Commands/MeCommand.cs index a07fa09e54..b1db3f9851 100644 --- a/Content.Server/Chat/Commands/MeCommand.cs +++ b/Content.Server/Chat/Commands/MeCommand.cs @@ -10,7 +10,7 @@ using Robust.Shared.IoC; namespace Content.Server.Chat.Commands { [AnyCommand] - internal class MeCommand : IConsoleCommand + internal sealed class MeCommand : IConsoleCommand { public string Command => "me"; public string Description => "Perform an action."; diff --git a/Content.Server/Chat/Commands/OOCCommand.cs b/Content.Server/Chat/Commands/OOCCommand.cs index c72be74c25..1f30bebae3 100644 --- a/Content.Server/Chat/Commands/OOCCommand.cs +++ b/Content.Server/Chat/Commands/OOCCommand.cs @@ -8,7 +8,7 @@ using Robust.Shared.IoC; namespace Content.Server.Chat.Commands { [AnyCommand] - internal class OOCCommand : IConsoleCommand + internal sealed class OOCCommand : IConsoleCommand { public string Command => "ooc"; public string Description => "Send Out Of Character chat messages."; diff --git a/Content.Server/Chat/Commands/SayCommand.cs b/Content.Server/Chat/Commands/SayCommand.cs index 150e2c5a2e..26afa8ffe4 100644 --- a/Content.Server/Chat/Commands/SayCommand.cs +++ b/Content.Server/Chat/Commands/SayCommand.cs @@ -8,7 +8,7 @@ using Robust.Shared.IoC; namespace Content.Server.Chat.Commands { [AnyCommand] - internal class SayCommand : IConsoleCommand + internal sealed class SayCommand : IConsoleCommand { public string Command => "say"; public string Description => "Send chat messages to the local channel or a specified radio channel."; diff --git a/Content.Server/Chat/Commands/SetLOOCCommand.cs b/Content.Server/Chat/Commands/SetLOOCCommand.cs index 3ed206b054..3267c1aede 100644 --- a/Content.Server/Chat/Commands/SetLOOCCommand.cs +++ b/Content.Server/Chat/Commands/SetLOOCCommand.cs @@ -9,7 +9,7 @@ using Robust.Shared.Localization; namespace Content.Server.Chat.Commands; [AdminCommand(AdminFlags.Server)] -public class SetLOOCCommand : IConsoleCommand +public sealed class SetLOOCCommand : IConsoleCommand { public string Command => "setlooc"; public string Description => Loc.GetString("set-looc-command-description"); diff --git a/Content.Server/Chat/Commands/SetOOCCommand.cs b/Content.Server/Chat/Commands/SetOOCCommand.cs index f26ce1e1a5..a0ccba8e70 100644 --- a/Content.Server/Chat/Commands/SetOOCCommand.cs +++ b/Content.Server/Chat/Commands/SetOOCCommand.cs @@ -9,7 +9,7 @@ using Robust.Shared.Localization; namespace Content.Server.Chat.Commands; [AdminCommand(AdminFlags.Server)] -public class SetOOCCommand : IConsoleCommand +public sealed class SetOOCCommand : IConsoleCommand { public string Command => "setooc"; public string Description => Loc.GetString("set-ooc-command-description"); diff --git a/Content.Server/Chat/Commands/SuicideCommand.cs b/Content.Server/Chat/Commands/SuicideCommand.cs index 41bd624542..3baceb8bed 100644 --- a/Content.Server/Chat/Commands/SuicideCommand.cs +++ b/Content.Server/Chat/Commands/SuicideCommand.cs @@ -23,7 +23,7 @@ using Robust.Shared.Prototypes; namespace Content.Server.Chat.Commands { [AnyCommand] - internal class SuicideCommand : IConsoleCommand + internal sealed class SuicideCommand : IConsoleCommand { [Dependency] private readonly IEntityManager _entities = default!; diff --git a/Content.Server/Chat/Commands/WhisperCommand.cs b/Content.Server/Chat/Commands/WhisperCommand.cs index bc05148b41..4daca93ad9 100644 --- a/Content.Server/Chat/Commands/WhisperCommand.cs +++ b/Content.Server/Chat/Commands/WhisperCommand.cs @@ -8,7 +8,7 @@ using Robust.Shared.IoC; namespace Content.Server.Chat.Commands { [AnyCommand] - internal class WhisperCommand : IConsoleCommand + internal sealed class WhisperCommand : IConsoleCommand { public string Command => "whisper"; public string Description => "Send chat messages to the local channel as a whisper"; diff --git a/Content.Server/Chat/Managers/ChatSanitizationManager.cs b/Content.Server/Chat/Managers/ChatSanitizationManager.cs index ddd45e08e3..5c59865d5d 100644 --- a/Content.Server/Chat/Managers/ChatSanitizationManager.cs +++ b/Content.Server/Chat/Managers/ChatSanitizationManager.cs @@ -9,7 +9,7 @@ using Robust.Shared.Localization; namespace Content.Server.Chat.Managers; -public class ChatSanitizationManager : IChatSanitizationManager +public sealed class ChatSanitizationManager : IChatSanitizationManager { [Dependency] private readonly IConfigurationManager _configurationManager = default!; diff --git a/Content.Server/Chemistry/Components/ChemMasterComponent.cs b/Content.Server/Chemistry/Components/ChemMasterComponent.cs index e772cf4514..4be4ccb0c7 100644 --- a/Content.Server/Chemistry/Components/ChemMasterComponent.cs +++ b/Content.Server/Chemistry/Components/ChemMasterComponent.cs @@ -35,7 +35,7 @@ namespace Content.Server.Chemistry.Components [RegisterComponent] [ComponentReference(typeof(IActivate))] [ComponentReference(typeof(SharedChemMasterComponent))] - public class ChemMasterComponent : SharedChemMasterComponent, IActivate + public sealed class ChemMasterComponent : SharedChemMasterComponent, IActivate { [Dependency] private readonly IEntityManager _entities = default!; diff --git a/Content.Server/Chemistry/Components/FoamSolutionAreaEffectComponent.cs b/Content.Server/Chemistry/Components/FoamSolutionAreaEffectComponent.cs index 4d8fe07202..94a7aac416 100644 --- a/Content.Server/Chemistry/Components/FoamSolutionAreaEffectComponent.cs +++ b/Content.Server/Chemistry/Components/FoamSolutionAreaEffectComponent.cs @@ -12,7 +12,7 @@ namespace Content.Server.Chemistry.Components { [RegisterComponent] [ComponentReference(typeof(SolutionAreaEffectComponent))] - public class FoamSolutionAreaEffectComponent : SolutionAreaEffectComponent + public sealed class FoamSolutionAreaEffectComponent : SolutionAreaEffectComponent { [Dependency] private readonly IEntityManager _entMan = default!; diff --git a/Content.Server/Chemistry/Components/InjectorComponent.cs b/Content.Server/Chemistry/Components/InjectorComponent.cs index 79ac277de2..f314a01436 100644 --- a/Content.Server/Chemistry/Components/InjectorComponent.cs +++ b/Content.Server/Chemistry/Components/InjectorComponent.cs @@ -34,7 +34,7 @@ namespace Content.Server.Chemistry.Components /// containers, and can directly inject into a mobs bloodstream. /// [RegisterComponent] - public class InjectorComponent : SharedInjectorComponent + public sealed class InjectorComponent : SharedInjectorComponent { public const string SolutionName = "injector"; diff --git a/Content.Server/Chemistry/Components/MeleeChemicalInjectorComponent.cs b/Content.Server/Chemistry/Components/MeleeChemicalInjectorComponent.cs index a21dae985f..83d4711e0d 100644 --- a/Content.Server/Chemistry/Components/MeleeChemicalInjectorComponent.cs +++ b/Content.Server/Chemistry/Components/MeleeChemicalInjectorComponent.cs @@ -8,7 +8,7 @@ using Robust.Shared.ViewVariables; namespace Content.Server.Chemistry.Components { [RegisterComponent] - public class MeleeChemicalInjectorComponent : Component + public sealed class MeleeChemicalInjectorComponent : Component { [ViewVariables(VVAccess.ReadWrite)] [DataField("transferAmount")] diff --git a/Content.Server/Chemistry/Components/ReagentDispenserComponent.cs b/Content.Server/Chemistry/Components/ReagentDispenserComponent.cs index bb1538cd6e..022019a1ca 100644 --- a/Content.Server/Chemistry/Components/ReagentDispenserComponent.cs +++ b/Content.Server/Chemistry/Components/ReagentDispenserComponent.cs @@ -37,7 +37,7 @@ namespace Content.Server.Chemistry.Components [RegisterComponent] [ComponentReference(typeof(IActivate))] [ComponentReference(typeof(SharedReagentDispenserComponent))] - public class ReagentDispenserComponent : SharedReagentDispenserComponent, IActivate + public sealed class ReagentDispenserComponent : SharedReagentDispenserComponent, IActivate { private static ReagentInventoryComparer _comparer = new(); public static string SolutionName = "reagent"; @@ -302,7 +302,7 @@ namespace Content.Server.Chemistry.Components SoundSystem.Play(Filter.Pvs(Owner), _clickSound.GetSound(), Owner, AudioParams.Default.WithVolume(-2f)); } - private class ReagentInventoryComparer : Comparer + private sealed class ReagentInventoryComparer : Comparer { public override int Compare(ReagentDispenserInventoryEntry x, ReagentDispenserInventoryEntry y) { diff --git a/Content.Server/Chemistry/Components/ReagentTankComponent.cs b/Content.Server/Chemistry/Components/ReagentTankComponent.cs index b232beb936..ad4092fe36 100644 --- a/Content.Server/Chemistry/Components/ReagentTankComponent.cs +++ b/Content.Server/Chemistry/Components/ReagentTankComponent.cs @@ -8,7 +8,7 @@ using Robust.Shared.ViewVariables; namespace Content.Server.Chemistry.Components { [RegisterComponent] - public class ReagentTankComponent : Component + public sealed class ReagentTankComponent : Component { [DataField("transferAmount")] [ViewVariables(VVAccess.ReadWrite)] diff --git a/Content.Server/Chemistry/Components/RehydratableComponent.cs b/Content.Server/Chemistry/Components/RehydratableComponent.cs index e31d03ec46..b0cd7a3af9 100644 --- a/Content.Server/Chemistry/Components/RehydratableComponent.cs +++ b/Content.Server/Chemistry/Components/RehydratableComponent.cs @@ -9,7 +9,7 @@ namespace Content.Server.Chemistry.Components /// But specifically, this component deletes the entity and spawns in a new entity when the entity is exposed to a given reagent. /// [RegisterComponent] - public class RehydratableComponent : Component + public sealed class RehydratableComponent : Component { [ViewVariables] [DataField("catalyst")] diff --git a/Content.Server/Chemistry/Components/SmokeSolutionAreaEffectComponent.cs b/Content.Server/Chemistry/Components/SmokeSolutionAreaEffectComponent.cs index 787ef5ed4c..a59ec45b0b 100644 --- a/Content.Server/Chemistry/Components/SmokeSolutionAreaEffectComponent.cs +++ b/Content.Server/Chemistry/Components/SmokeSolutionAreaEffectComponent.cs @@ -12,7 +12,7 @@ namespace Content.Server.Chemistry.Components { [RegisterComponent] [ComponentReference(typeof(SolutionAreaEffectComponent))] - public class SmokeSolutionAreaEffectComponent : SolutionAreaEffectComponent + public sealed class SmokeSolutionAreaEffectComponent : SolutionAreaEffectComponent { [Dependency] private readonly IEntityManager _entMan = default!; diff --git a/Content.Server/Chemistry/Components/SolutionAreaEffectInceptionComponent.cs b/Content.Server/Chemistry/Components/SolutionAreaEffectInceptionComponent.cs index 44b5e7bd35..d1f85b74bf 100644 --- a/Content.Server/Chemistry/Components/SolutionAreaEffectInceptionComponent.cs +++ b/Content.Server/Chemistry/Components/SolutionAreaEffectInceptionComponent.cs @@ -11,7 +11,7 @@ namespace Content.Server.Chemistry.Components /// /// It should only be manually added to an entity by the and not with a prototype. [RegisterComponent] - public class SolutionAreaEffectInceptionComponent : Component + public sealed class SolutionAreaEffectInceptionComponent : Component { private const float ReactionDelay = 1.5f; diff --git a/Content.Server/Chemistry/Components/SolutionManager/DrainableSolutionComponent.cs b/Content.Server/Chemistry/Components/SolutionManager/DrainableSolutionComponent.cs index 4651c18e01..9b0648276a 100644 --- a/Content.Server/Chemistry/Components/SolutionManager/DrainableSolutionComponent.cs +++ b/Content.Server/Chemistry/Components/SolutionManager/DrainableSolutionComponent.cs @@ -9,7 +9,7 @@ namespace Content.Server.Chemistry.Components.SolutionManager /// Think pouring this or draining from a water tank. /// [RegisterComponent] - public class DrainableSolutionComponent : Component + public sealed class DrainableSolutionComponent : Component { /// /// Solution name that can be drained. diff --git a/Content.Server/Chemistry/Components/SolutionManager/DrawableSolutionComponent.cs b/Content.Server/Chemistry/Components/SolutionManager/DrawableSolutionComponent.cs index 89fda4a361..6787b1da44 100644 --- a/Content.Server/Chemistry/Components/SolutionManager/DrawableSolutionComponent.cs +++ b/Content.Server/Chemistry/Components/SolutionManager/DrawableSolutionComponent.cs @@ -8,7 +8,7 @@ namespace Content.Server.Chemistry.Components.SolutionManager /// Denotes the solution that can removed be with syringes. /// [RegisterComponent] - public class DrawableSolutionComponent : Component + public sealed class DrawableSolutionComponent : Component { /// /// Solution name that can be removed with syringes. diff --git a/Content.Server/Chemistry/Components/SolutionManager/ExaminableSolutionComponent.cs b/Content.Server/Chemistry/Components/SolutionManager/ExaminableSolutionComponent.cs index c443e6ccbc..edf4047d78 100644 --- a/Content.Server/Chemistry/Components/SolutionManager/ExaminableSolutionComponent.cs +++ b/Content.Server/Chemistry/Components/SolutionManager/ExaminableSolutionComponent.cs @@ -5,7 +5,7 @@ using Robust.Shared.ViewVariables; namespace Content.Server.Chemistry.Components.SolutionManager { [RegisterComponent] - public class ExaminableSolutionComponent: Component + public sealed class ExaminableSolutionComponent: Component { [ViewVariables(VVAccess.ReadWrite)] [DataField("solution")] diff --git a/Content.Server/Chemistry/Components/SolutionManager/InjectableSolutionComponent.cs b/Content.Server/Chemistry/Components/SolutionManager/InjectableSolutionComponent.cs index 6f451fe3b6..a711da4548 100644 --- a/Content.Server/Chemistry/Components/SolutionManager/InjectableSolutionComponent.cs +++ b/Content.Server/Chemistry/Components/SolutionManager/InjectableSolutionComponent.cs @@ -8,7 +8,7 @@ namespace Content.Server.Chemistry.Components.SolutionManager /// Denotes a solution which can be added with syringes. /// [RegisterComponent] - public class InjectableSolutionComponent : Component + public sealed class InjectableSolutionComponent : Component { /// diff --git a/Content.Server/Chemistry/Components/SolutionManager/RefillableSolutionComponent.cs b/Content.Server/Chemistry/Components/SolutionManager/RefillableSolutionComponent.cs index 7cbef8728c..5c5a5efc07 100644 --- a/Content.Server/Chemistry/Components/SolutionManager/RefillableSolutionComponent.cs +++ b/Content.Server/Chemistry/Components/SolutionManager/RefillableSolutionComponent.cs @@ -11,7 +11,7 @@ namespace Content.Server.Chemistry.Components.SolutionManager /// tank of a car. /// [RegisterComponent] - public class RefillableSolutionComponent : Component + public sealed class RefillableSolutionComponent : Component { /// /// Solution name that can added to easily. diff --git a/Content.Server/Chemistry/Components/SolutionManager/SolutionContainerManagerComponent.cs b/Content.Server/Chemistry/Components/SolutionManager/SolutionContainerManagerComponent.cs index 2e971b3612..5e1b0fde34 100644 --- a/Content.Server/Chemistry/Components/SolutionManager/SolutionContainerManagerComponent.cs +++ b/Content.Server/Chemistry/Components/SolutionManager/SolutionContainerManagerComponent.cs @@ -11,7 +11,7 @@ namespace Content.Server.Chemistry.Components.SolutionManager { [RegisterComponent] [Friend(typeof(SolutionContainerSystem))] - public class SolutionContainerManagerComponent : Component + public sealed class SolutionContainerManagerComponent : Component { [ViewVariables] [DataField("solutions")] diff --git a/Content.Server/Chemistry/Components/TransformableContainerComponent.cs b/Content.Server/Chemistry/Components/TransformableContainerComponent.cs index d19770cc15..fa7731d759 100644 --- a/Content.Server/Chemistry/Components/TransformableContainerComponent.cs +++ b/Content.Server/Chemistry/Components/TransformableContainerComponent.cs @@ -9,7 +9,7 @@ using Robust.Shared.Utility; namespace Content.Server.Chemistry.Components { [RegisterComponent] - public class TransformableContainerComponent : Component + public sealed class TransformableContainerComponent : Component { [Dependency] private readonly IEntityManager _entMan = default!; diff --git a/Content.Server/Chemistry/EntitySystems/ChemicalReactionSystem.cs b/Content.Server/Chemistry/EntitySystems/ChemicalReactionSystem.cs index a959d262c3..02930e24e3 100644 --- a/Content.Server/Chemistry/EntitySystems/ChemicalReactionSystem.cs +++ b/Content.Server/Chemistry/EntitySystems/ChemicalReactionSystem.cs @@ -9,7 +9,7 @@ using Robust.Shared.Player; namespace Content.Server.Chemistry.EntitySystems { - public class ChemicalReactionSystem : SharedChemicalReactionSystem + public sealed class ChemicalReactionSystem : SharedChemicalReactionSystem { protected override void OnReaction(Solution solution, ReactionPrototype reaction, ReagentPrototype randomReagent, EntityUid owner, FixedPoint2 unitReactions) { diff --git a/Content.Server/Chemistry/EntitySystems/RehydratableSystem.cs b/Content.Server/Chemistry/EntitySystems/RehydratableSystem.cs index 3ff87ae2b9..b2073cc375 100644 --- a/Content.Server/Chemistry/EntitySystems/RehydratableSystem.cs +++ b/Content.Server/Chemistry/EntitySystems/RehydratableSystem.cs @@ -9,7 +9,7 @@ using Robust.Shared.Localization; namespace Content.Server.Chemistry.EntitySystems { [UsedImplicitly] - public class RehydratableSystem : EntitySystem + public sealed class RehydratableSystem : EntitySystem { [Dependency] private readonly SolutionContainerSystem _solutionsSystem = default!; public override void Initialize() diff --git a/Content.Server/Chemistry/EntitySystems/SolutionAreaEffectSystem.cs b/Content.Server/Chemistry/EntitySystems/SolutionAreaEffectSystem.cs index 114589309d..2c16787623 100644 --- a/Content.Server/Chemistry/EntitySystems/SolutionAreaEffectSystem.cs +++ b/Content.Server/Chemistry/EntitySystems/SolutionAreaEffectSystem.cs @@ -6,7 +6,7 @@ using Robust.Shared.GameObjects; namespace Content.Server.Chemistry.EntitySystems { [UsedImplicitly] - public class SolutionAreaEffectSystem : EntitySystem + public sealed class SolutionAreaEffectSystem : EntitySystem { public override void Update(float frameTime) { diff --git a/Content.Server/Chemistry/EntitySystems/SolutionContainerSystem.Capabilities.cs b/Content.Server/Chemistry/EntitySystems/SolutionContainerSystem.Capabilities.cs index 21b5a9d158..04f6e9570c 100644 --- a/Content.Server/Chemistry/EntitySystems/SolutionContainerSystem.Capabilities.cs +++ b/Content.Server/Chemistry/EntitySystems/SolutionContainerSystem.Capabilities.cs @@ -9,7 +9,7 @@ using Robust.Shared.GameObjects; namespace Content.Server.Chemistry.EntitySystems { - public partial class SolutionContainerSystem + public sealed partial class SolutionContainerSystem { public void Refill(EntityUid targetUid, Solution targetSolution, Solution addedSolution, RefillableSolutionComponent? refillableSolution = null) diff --git a/Content.Server/Chemistry/EntitySystems/SolutionContainerSystem.cs b/Content.Server/Chemistry/EntitySystems/SolutionContainerSystem.cs index b43cbe39ff..d0b96e947d 100644 --- a/Content.Server/Chemistry/EntitySystems/SolutionContainerSystem.cs +++ b/Content.Server/Chemistry/EntitySystems/SolutionContainerSystem.cs @@ -22,7 +22,7 @@ namespace Content.Server.Chemistry.EntitySystems /// /// This event alerts system that the solution was changed /// - public class SolutionChangedEvent : EntityEventArgs + public sealed class SolutionChangedEvent : EntityEventArgs { } @@ -30,7 +30,7 @@ namespace Content.Server.Chemistry.EntitySystems /// Part of Chemistry system deal with SolutionContainers /// [UsedImplicitly] - public partial class SolutionContainerSystem : EntitySystem + public sealed partial class SolutionContainerSystem : EntitySystem { [Dependency] private readonly SharedChemicalReactionSystem _chemistrySystem = default!; diff --git a/Content.Server/Chemistry/EntitySystems/SolutionTransferSystem.cs b/Content.Server/Chemistry/EntitySystems/SolutionTransferSystem.cs index c287637a8e..d46bea667d 100644 --- a/Content.Server/Chemistry/EntitySystems/SolutionTransferSystem.cs +++ b/Content.Server/Chemistry/EntitySystems/SolutionTransferSystem.cs @@ -13,7 +13,7 @@ using Robust.Shared.IoC; namespace Content.Server.Chemistry.EntitySystems { [UsedImplicitly] - public class SolutionTransferSystem : EntitySystem + public sealed class SolutionTransferSystem : EntitySystem { /// /// Default transfer amounts for the set-transfer verb. diff --git a/Content.Server/Chemistry/EntitySystems/TransformableContainerSystem.cs b/Content.Server/Chemistry/EntitySystems/TransformableContainerSystem.cs index ff3905dc31..1f73e86f07 100644 --- a/Content.Server/Chemistry/EntitySystems/TransformableContainerSystem.cs +++ b/Content.Server/Chemistry/EntitySystems/TransformableContainerSystem.cs @@ -10,7 +10,7 @@ using Robust.Shared.Utility; namespace Content.Server.Chemistry.EntitySystems { [UsedImplicitly] - public class TransformableContainerSystem : EntitySystem + public sealed class TransformableContainerSystem : EntitySystem { [Dependency] private readonly IPrototypeManager _prototypeManager = default!; [Dependency] private readonly SolutionContainerSystem _solutionsSystem = default!; diff --git a/Content.Server/Chemistry/ReactionEffects/CreateEntityReactionEffect.cs b/Content.Server/Chemistry/ReactionEffects/CreateEntityReactionEffect.cs index 774df45c64..81af8d3477 100644 --- a/Content.Server/Chemistry/ReactionEffects/CreateEntityReactionEffect.cs +++ b/Content.Server/Chemistry/ReactionEffects/CreateEntityReactionEffect.cs @@ -7,7 +7,7 @@ using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototy namespace Content.Server.Chemistry.ReactionEffects; [DataDefinition] -public class CreateEntityReactionEffect : ReagentEffect +public sealed class CreateEntityReactionEffect : ReagentEffect { /// /// What entity to create. diff --git a/Content.Server/Chemistry/ReactionEffects/ExplosionReactionEffect.cs b/Content.Server/Chemistry/ReactionEffects/ExplosionReactionEffect.cs index e09cb7eb4b..4416f74dfc 100644 --- a/Content.Server/Chemistry/ReactionEffects/ExplosionReactionEffect.cs +++ b/Content.Server/Chemistry/ReactionEffects/ExplosionReactionEffect.cs @@ -11,7 +11,7 @@ using Robust.Shared.Serialization.Manager.Attributes; namespace Content.Server.Chemistry.ReactionEffects { [DataDefinition] - public class ExplosionReactionEffect : ReagentEffect + public sealed class ExplosionReactionEffect : ReagentEffect { [DataField("devastationRange")] [JsonIgnore] @@ -24,7 +24,7 @@ namespace Content.Server.Chemistry.ReactionEffects [DataField("lightImpactRange")] [JsonIgnore] private float _lightImpactRange = 3; - + [DataField("flashRange")] [JsonIgnore] private float _flashRange; diff --git a/Content.Server/Chemistry/ReactionEffects/FoamAreaReactionEffect.cs b/Content.Server/Chemistry/ReactionEffects/FoamAreaReactionEffect.cs index df7d4f59c1..75087c94b8 100644 --- a/Content.Server/Chemistry/ReactionEffects/FoamAreaReactionEffect.cs +++ b/Content.Server/Chemistry/ReactionEffects/FoamAreaReactionEffect.cs @@ -8,7 +8,7 @@ namespace Content.Server.Chemistry.ReactionEffects { [UsedImplicitly] [DataDefinition] - public class FoamAreaReactionEffect : AreaReactionEffect + public sealed class FoamAreaReactionEffect : AreaReactionEffect { protected override SolutionAreaEffectComponent? GetAreaEffectComponent(EntityUid entity) { diff --git a/Content.Server/Chemistry/ReactionEffects/SmokeAreaReactionEffect.cs b/Content.Server/Chemistry/ReactionEffects/SmokeAreaReactionEffect.cs index 917f38dbb7..f14c701f13 100644 --- a/Content.Server/Chemistry/ReactionEffects/SmokeAreaReactionEffect.cs +++ b/Content.Server/Chemistry/ReactionEffects/SmokeAreaReactionEffect.cs @@ -8,7 +8,7 @@ namespace Content.Server.Chemistry.ReactionEffects { [UsedImplicitly] [DataDefinition] - public class SmokeAreaReactionEffect : AreaReactionEffect + public sealed class SmokeAreaReactionEffect : AreaReactionEffect { protected override SolutionAreaEffectComponent? GetAreaEffectComponent(EntityUid entity) { diff --git a/Content.Server/Chemistry/ReactionEffects/SolutionTemperatureEffects.cs b/Content.Server/Chemistry/ReactionEffects/SolutionTemperatureEffects.cs index b4bae814b7..c375ef2d24 100644 --- a/Content.Server/Chemistry/ReactionEffects/SolutionTemperatureEffects.cs +++ b/Content.Server/Chemistry/ReactionEffects/SolutionTemperatureEffects.cs @@ -9,7 +9,7 @@ namespace Content.Server.Chemistry.ReactionEffects /// Sets the temperature of the solution involved with the reaction to a new value. /// [DataDefinition] - public class SetSolutionTemperatureEffect : ReagentEffect + public sealed class SetSolutionTemperatureEffect : ReagentEffect { /// /// The temperature to set the solution to. @@ -30,6 +30,7 @@ namespace Content.Server.Chemistry.ReactionEffects /// Adjusts the temperature of the solution involved in the reaction. /// [DataDefinition] + [Virtual] public class AdjustSolutionTemperatureEffect : ReagentEffect { /// @@ -53,7 +54,7 @@ namespace Content.Server.Chemistry.ReactionEffects [DataField("scaled")] private bool _scaled; /// - /// + /// /// /// /// @@ -83,7 +84,7 @@ namespace Content.Server.Chemistry.ReactionEffects /// /// Adjusts the thermal energy of the solution involved in the reaction. /// - public class AdjustSolutionThermalEnergyEffect : AdjustSolutionTemperatureEffect + public sealed class AdjustSolutionThermalEnergyEffect : AdjustSolutionTemperatureEffect { protected override float GetDeltaT(Solution solution) { diff --git a/Content.Server/Chemistry/ReagentEffectConditions/BodyTemperature.cs b/Content.Server/Chemistry/ReagentEffectConditions/BodyTemperature.cs index 2111af713e..2280d1526d 100644 --- a/Content.Server/Chemistry/ReagentEffectConditions/BodyTemperature.cs +++ b/Content.Server/Chemistry/ReagentEffectConditions/BodyTemperature.cs @@ -8,7 +8,7 @@ namespace Content.Server.Chemistry.ReagentEffectConditions /// Requires the solution entity to be above or below a certain temperature. /// Used for things like cryoxadone and pyroxadone. /// - public class Temperature : ReagentEffectCondition + public sealed class Temperature : ReagentEffectCondition { [DataField("min")] public float Min = 0; diff --git a/Content.Server/Chemistry/ReagentEffectConditions/HasTagCondition.cs b/Content.Server/Chemistry/ReagentEffectConditions/HasTagCondition.cs index fc45b64958..9b4debe98c 100644 --- a/Content.Server/Chemistry/ReagentEffectConditions/HasTagCondition.cs +++ b/Content.Server/Chemistry/ReagentEffectConditions/HasTagCondition.cs @@ -7,7 +7,7 @@ using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototy namespace Content.Server.Chemistry.ReagentEffectConditions; [UsedImplicitly] -public class HasTag : ReagentEffectCondition +public sealed class HasTag : ReagentEffectCondition { [DataField("tag", customTypeSerializer: typeof(PrototypeIdSerializer))] public string Tag = default!; diff --git a/Content.Server/Chemistry/ReagentEffectConditions/OrganType.cs b/Content.Server/Chemistry/ReagentEffectConditions/OrganType.cs index 6bcf9cf191..18934c19c4 100644 --- a/Content.Server/Chemistry/ReagentEffectConditions/OrganType.cs +++ b/Content.Server/Chemistry/ReagentEffectConditions/OrganType.cs @@ -11,7 +11,7 @@ namespace Content.Server.Chemistry.ReagentEffectConditions /// /// Requires that the metabolizing organ is or is not tagged with a certain MetabolizerType /// - public class OrganType : ReagentEffectCondition + public sealed class OrganType : ReagentEffectCondition { [DataField("type", required: true, customTypeSerializer: typeof(PrototypeIdSerializer))] public string Type = default!; diff --git a/Content.Server/Chemistry/ReagentEffectConditions/ReagentThreshold.cs b/Content.Server/Chemistry/ReagentEffectConditions/ReagentThreshold.cs index dd22fbd231..daded76956 100644 --- a/Content.Server/Chemistry/ReagentEffectConditions/ReagentThreshold.cs +++ b/Content.Server/Chemistry/ReagentEffectConditions/ReagentThreshold.cs @@ -13,7 +13,7 @@ namespace Content.Server.Chemistry.ReagentEffectConditions /// This can also trigger on -other- reagents, not just the one metabolizing. By default, it uses the /// one being metabolized. /// - public class ReagentThreshold : ReagentEffectCondition + public sealed class ReagentThreshold : ReagentEffectCondition { [DataField("min")] public FixedPoint2 Min = FixedPoint2.Zero; diff --git a/Content.Server/Chemistry/ReagentEffectConditions/SolutionTemperature.cs b/Content.Server/Chemistry/ReagentEffectConditions/SolutionTemperature.cs index 82c778b1f0..a778ade0cb 100644 --- a/Content.Server/Chemistry/ReagentEffectConditions/SolutionTemperature.cs +++ b/Content.Server/Chemistry/ReagentEffectConditions/SolutionTemperature.cs @@ -8,7 +8,7 @@ namespace Content.Server.Chemistry.ReagentEffectConditions /// Requires the solution to be above or below a certain temperature. /// Used for things like explosives. /// - public class SolutionTemperature : ReagentEffectCondition + public sealed class SolutionTemperature : ReagentEffectCondition { [DataField("min")] public float Min = 0.0f; diff --git a/Content.Server/Chemistry/ReagentEffectConditions/SolutionThermalEnergy.cs b/Content.Server/Chemistry/ReagentEffectConditions/SolutionThermalEnergy.cs index 17dcf01aeb..b8c7521055 100644 --- a/Content.Server/Chemistry/ReagentEffectConditions/SolutionThermalEnergy.cs +++ b/Content.Server/Chemistry/ReagentEffectConditions/SolutionThermalEnergy.cs @@ -8,7 +8,7 @@ namespace Content.Server.Chemistry.ReagentEffectConditions /// Requires the solution to be above or below a certain thermal energy. /// Used for things like explosives. /// - public class SolutionThermalEnergy : ReagentEffectCondition + public sealed class SolutionThermalEnergy : ReagentEffectCondition { [DataField("min")] public float Min = 0.0f; diff --git a/Content.Server/Chemistry/ReagentEffectConditions/TotalDamage.cs b/Content.Server/Chemistry/ReagentEffectConditions/TotalDamage.cs index 57737d6fba..1f96026f2d 100644 --- a/Content.Server/Chemistry/ReagentEffectConditions/TotalDamage.cs +++ b/Content.Server/Chemistry/ReagentEffectConditions/TotalDamage.cs @@ -5,7 +5,7 @@ using Robust.Shared.Serialization.Manager.Attributes; namespace Content.Server.Chemistry.ReagentEffectConditions { - public class TotalDamage : ReagentEffectCondition + public sealed class TotalDamage : ReagentEffectCondition { [DataField("max")] public FixedPoint2 Max = FixedPoint2.MaxValue; diff --git a/Content.Server/Chemistry/ReagentEffects/AddToSolutionReaction.cs b/Content.Server/Chemistry/ReagentEffects/AddToSolutionReaction.cs index d92ddf16d5..6f176d2256 100644 --- a/Content.Server/Chemistry/ReagentEffects/AddToSolutionReaction.cs +++ b/Content.Server/Chemistry/ReagentEffects/AddToSolutionReaction.cs @@ -11,7 +11,7 @@ using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototy namespace Content.Server.Chemistry.ReagentEffects { [UsedImplicitly] - public class AddToSolutionReaction : ReagentEffect + public sealed class AddToSolutionReaction : ReagentEffect { [DataField("solution")] private string _solution = "reagents"; diff --git a/Content.Server/Chemistry/ReagentEffects/AdjustAlert.cs b/Content.Server/Chemistry/ReagentEffects/AdjustAlert.cs index 841d760f89..6960c32293 100644 --- a/Content.Server/Chemistry/ReagentEffects/AdjustAlert.cs +++ b/Content.Server/Chemistry/ReagentEffects/AdjustAlert.cs @@ -8,7 +8,7 @@ using Robust.Shared.Timing; namespace Content.Server.Chemistry.ReagentEffects; -public class AdjustAlert : ReagentEffect +public sealed class AdjustAlert : ReagentEffect { [DataField("alertType", required: true)] public AlertType Type; diff --git a/Content.Server/Chemistry/ReagentEffects/AdjustReagent.cs b/Content.Server/Chemistry/ReagentEffects/AdjustReagent.cs index fcb0a44c80..1d5cf60b0a 100644 --- a/Content.Server/Chemistry/ReagentEffects/AdjustReagent.cs +++ b/Content.Server/Chemistry/ReagentEffects/AdjustReagent.cs @@ -11,7 +11,7 @@ using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototy namespace Content.Server.Chemistry.ReagentEffects { [UsedImplicitly] - public class AdjustReagent : ReagentEffect + public sealed class AdjustReagent : ReagentEffect { /// /// The reagent ID to remove. Only one of this and should be active. diff --git a/Content.Server/Chemistry/ReagentEffects/AdjustTemperature.cs b/Content.Server/Chemistry/ReagentEffects/AdjustTemperature.cs index bc1154d9c8..33d9ff50eb 100644 --- a/Content.Server/Chemistry/ReagentEffects/AdjustTemperature.cs +++ b/Content.Server/Chemistry/ReagentEffects/AdjustTemperature.cs @@ -5,7 +5,7 @@ using Robust.Shared.Serialization.Manager.Attributes; namespace Content.Server.Chemistry.ReagentEffects { - public class AdjustTemperature : ReagentEffect + public sealed class AdjustTemperature : ReagentEffect { [DataField("amount")] public float Amount; diff --git a/Content.Server/Chemistry/ReagentEffects/CreateGas.cs b/Content.Server/Chemistry/ReagentEffects/CreateGas.cs index 2cd8fd0347..6d43e0ec7f 100644 --- a/Content.Server/Chemistry/ReagentEffects/CreateGas.cs +++ b/Content.Server/Chemistry/ReagentEffects/CreateGas.cs @@ -7,7 +7,7 @@ using Robust.Shared.Serialization.Manager.Attributes; namespace Content.Server.Chemistry.ReagentEffects; -public class CreateGas : ReagentEffect +public sealed class CreateGas : ReagentEffect { [DataField("gas", required: true)] public Gas Gas = default!; diff --git a/Content.Server/Chemistry/ReagentEffects/DoAction.cs b/Content.Server/Chemistry/ReagentEffects/DoAction.cs index 9e83cb30f4..12f8b3c509 100644 --- a/Content.Server/Chemistry/ReagentEffects/DoAction.cs +++ b/Content.Server/Chemistry/ReagentEffects/DoAction.cs @@ -12,7 +12,7 @@ namespace Content.Server.Chemistry.ReagentEffects; /// /// Forces someone to do a certain action, if they have it. /// -public class DoAction : ReagentEffect +public sealed class DoAction : ReagentEffect { [DataField("action", required: true, customTypeSerializer:typeof(PrototypeIdSerializer))] public string Action = default!; diff --git a/Content.Server/Chemistry/ReagentEffects/Electrocute.cs b/Content.Server/Chemistry/ReagentEffects/Electrocute.cs index 95574d36ca..56bf042679 100644 --- a/Content.Server/Chemistry/ReagentEffects/Electrocute.cs +++ b/Content.Server/Chemistry/ReagentEffects/Electrocute.cs @@ -9,7 +9,7 @@ using Robust.Shared.Serialization.Manager.Attributes; namespace Content.Server.Chemistry.ReagentEffects; -public class Electrocute : ReagentEffect +public sealed class Electrocute : ReagentEffect { [DataField("electrocuteTime")] public int ElectrocuteTime = 2; diff --git a/Content.Server/Chemistry/ReagentEffects/ExtinguishReaction.cs b/Content.Server/Chemistry/ReagentEffects/ExtinguishReaction.cs index 05e11ecfcc..99a96e06a1 100644 --- a/Content.Server/Chemistry/ReagentEffects/ExtinguishReaction.cs +++ b/Content.Server/Chemistry/ReagentEffects/ExtinguishReaction.cs @@ -12,7 +12,7 @@ using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototy namespace Content.Server.Chemistry.ReagentEffects { [UsedImplicitly] - public class ExtinguishReaction : ReagentEffect + public sealed class ExtinguishReaction : ReagentEffect { public override void Effect(ReagentEffectArgs args) { diff --git a/Content.Server/Chemistry/ReagentEffects/FlammableReaction.cs b/Content.Server/Chemistry/ReagentEffects/FlammableReaction.cs index e72a8d5a29..c46d5805cc 100644 --- a/Content.Server/Chemistry/ReagentEffects/FlammableReaction.cs +++ b/Content.Server/Chemistry/ReagentEffects/FlammableReaction.cs @@ -14,11 +14,11 @@ using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototy namespace Content.Server.Chemistry.ReagentEffects { [UsedImplicitly] - public class FlammableReaction : ReagentEffect + public sealed class FlammableReaction : ReagentEffect { [DataField("multiplier")] public float Multiplier = 0.05f; - + public override bool ShouldLog => true; public override LogImpact LogImpact => LogImpact.Medium; diff --git a/Content.Server/Chemistry/ReagentEffects/HealthChange.cs b/Content.Server/Chemistry/ReagentEffects/HealthChange.cs index 1316d7b9c9..593bd1e1b0 100644 --- a/Content.Server/Chemistry/ReagentEffects/HealthChange.cs +++ b/Content.Server/Chemistry/ReagentEffects/HealthChange.cs @@ -12,7 +12,7 @@ namespace Content.Server.Chemistry.ReagentEffects /// Default metabolism for medicine reagents. /// [UsedImplicitly] - public class HealthChange : ReagentEffect + public sealed class HealthChange : ReagentEffect { /// /// Damage to apply every metabolism cycle. Damage Ignores resistances. diff --git a/Content.Server/Chemistry/ReagentEffects/Ignite.cs b/Content.Server/Chemistry/ReagentEffects/Ignite.cs index 110bcd003f..29f5ef935b 100644 --- a/Content.Server/Chemistry/ReagentEffects/Ignite.cs +++ b/Content.Server/Chemistry/ReagentEffects/Ignite.cs @@ -8,7 +8,7 @@ namespace Content.Server.Chemistry.ReagentEffects; /// /// Ignites a mob. /// -public class Ignite : ReagentEffect +public sealed class Ignite : ReagentEffect { public override bool ShouldLog => true; public override LogImpact LogImpact => LogImpact.Medium; diff --git a/Content.Server/Chemistry/ReagentEffects/ModifyLungGas.cs b/Content.Server/Chemistry/ReagentEffects/ModifyLungGas.cs index c9bbe452af..d1f8e98c99 100644 --- a/Content.Server/Chemistry/ReagentEffects/ModifyLungGas.cs +++ b/Content.Server/Chemistry/ReagentEffects/ModifyLungGas.cs @@ -6,7 +6,7 @@ using Robust.Shared.Serialization.Manager.Attributes; namespace Content.Server.Chemistry.ReagentEffects; -public class ModifyLungGas : ReagentEffect +public sealed class ModifyLungGas : ReagentEffect { [DataField("ratios", required: true)] private Dictionary _ratios = default!; diff --git a/Content.Server/Chemistry/ReagentEffects/MovespeedModifier.cs b/Content.Server/Chemistry/ReagentEffects/MovespeedModifier.cs index e04944073d..b54e90c23a 100644 --- a/Content.Server/Chemistry/ReagentEffects/MovespeedModifier.cs +++ b/Content.Server/Chemistry/ReagentEffects/MovespeedModifier.cs @@ -14,7 +14,7 @@ namespace Content.Server.Chemistry.ReagentEffects /// Default metabolism for stimulants and tranqs. Attempts to find a MovementSpeedModifier on the target, /// adding one if not there and to change the movespeed /// - public class MovespeedModifier : ReagentEffect + public sealed class MovespeedModifier : ReagentEffect { /// /// How much the entities' walk speed is multiplied by. diff --git a/Content.Server/Chemistry/ReagentEffects/Oxygenate.cs b/Content.Server/Chemistry/ReagentEffects/Oxygenate.cs index d7f7cb3771..4ff6d721fa 100644 --- a/Content.Server/Chemistry/ReagentEffects/Oxygenate.cs +++ b/Content.Server/Chemistry/ReagentEffects/Oxygenate.cs @@ -6,7 +6,7 @@ using Robust.Shared.Serialization.Manager.Attributes; namespace Content.Server.Chemistry.ReagentEffects; -public class Oxygenate : ReagentEffect +public sealed class Oxygenate : ReagentEffect { [DataField("factor")] public float Factor = 1f; diff --git a/Content.Server/Chemistry/ReagentEffects/PlantMetabolism/PlantAdjustHealth.cs b/Content.Server/Chemistry/ReagentEffects/PlantMetabolism/PlantAdjustHealth.cs index 537cc9e714..f9b5ecb95a 100644 --- a/Content.Server/Chemistry/ReagentEffects/PlantMetabolism/PlantAdjustHealth.cs +++ b/Content.Server/Chemistry/ReagentEffects/PlantMetabolism/PlantAdjustHealth.cs @@ -5,7 +5,7 @@ using Robust.Shared.GameObjects; namespace Content.Server.Chemistry.ReagentEffects.PlantMetabolism { - public class PlantAdjustHealth : PlantAdjustAttribute + public sealed class PlantAdjustHealth : PlantAdjustAttribute { public override void Effect(ReagentEffectArgs args) { diff --git a/Content.Server/Chemistry/ReagentEffects/PlantMetabolism/PlantAdjustMutationLevel.cs b/Content.Server/Chemistry/ReagentEffects/PlantMetabolism/PlantAdjustMutationLevel.cs index 6a4bde18c7..37230deda5 100644 --- a/Content.Server/Chemistry/ReagentEffects/PlantMetabolism/PlantAdjustMutationLevel.cs +++ b/Content.Server/Chemistry/ReagentEffects/PlantMetabolism/PlantAdjustMutationLevel.cs @@ -5,7 +5,7 @@ using Robust.Shared.GameObjects; namespace Content.Server.Chemistry.ReagentEffects.PlantMetabolism { - public class PlantAdjustMutationLevel : PlantAdjustAttribute + public sealed class PlantAdjustMutationLevel : PlantAdjustAttribute { public override void Effect(ReagentEffectArgs args) { diff --git a/Content.Server/Chemistry/ReagentEffects/PlantMetabolism/PlantAdjustMutationMod.cs b/Content.Server/Chemistry/ReagentEffects/PlantMetabolism/PlantAdjustMutationMod.cs index b4a62f120f..bc011b7151 100644 --- a/Content.Server/Chemistry/ReagentEffects/PlantMetabolism/PlantAdjustMutationMod.cs +++ b/Content.Server/Chemistry/ReagentEffects/PlantMetabolism/PlantAdjustMutationMod.cs @@ -6,7 +6,7 @@ using Robust.Shared.GameObjects; namespace Content.Server.Chemistry.ReagentEffects.PlantMetabolism { [UsedImplicitly] - public class PlantAdjustMutationMod : PlantAdjustAttribute + public sealed class PlantAdjustMutationMod : PlantAdjustAttribute { public override void Effect(ReagentEffectArgs args) { diff --git a/Content.Server/Chemistry/ReagentEffects/PlantMetabolism/PlantAdjustNutrition.cs b/Content.Server/Chemistry/ReagentEffects/PlantMetabolism/PlantAdjustNutrition.cs index be03685c76..77b394909e 100644 --- a/Content.Server/Chemistry/ReagentEffects/PlantMetabolism/PlantAdjustNutrition.cs +++ b/Content.Server/Chemistry/ReagentEffects/PlantMetabolism/PlantAdjustNutrition.cs @@ -6,7 +6,7 @@ using Robust.Shared.GameObjects; namespace Content.Server.Chemistry.ReagentEffects.PlantMetabolism { [UsedImplicitly] - public class PlantAdjustNutrition : PlantAdjustAttribute + public sealed class PlantAdjustNutrition : PlantAdjustAttribute { public override void Effect(ReagentEffectArgs args) { diff --git a/Content.Server/Chemistry/ReagentEffects/PlantMetabolism/PlantAdjustPests.cs b/Content.Server/Chemistry/ReagentEffects/PlantMetabolism/PlantAdjustPests.cs index 77e36374de..8aa049e0de 100644 --- a/Content.Server/Chemistry/ReagentEffects/PlantMetabolism/PlantAdjustPests.cs +++ b/Content.Server/Chemistry/ReagentEffects/PlantMetabolism/PlantAdjustPests.cs @@ -6,7 +6,7 @@ using Robust.Shared.GameObjects; namespace Content.Server.Chemistry.ReagentEffects.PlantMetabolism { [UsedImplicitly] - public class PlantAdjustPests : PlantAdjustAttribute + public sealed class PlantAdjustPests : PlantAdjustAttribute { public override void Effect(ReagentEffectArgs args) { diff --git a/Content.Server/Chemistry/ReagentEffects/PlantMetabolism/PlantAdjustToxins.cs b/Content.Server/Chemistry/ReagentEffects/PlantMetabolism/PlantAdjustToxins.cs index 6dc0e3d0b6..d94f181825 100644 --- a/Content.Server/Chemistry/ReagentEffects/PlantMetabolism/PlantAdjustToxins.cs +++ b/Content.Server/Chemistry/ReagentEffects/PlantMetabolism/PlantAdjustToxins.cs @@ -6,7 +6,7 @@ using Robust.Shared.GameObjects; namespace Content.Server.Chemistry.ReagentEffects.PlantMetabolism { [UsedImplicitly] - public class PlantAdjustToxins : PlantAdjustAttribute + public sealed class PlantAdjustToxins : PlantAdjustAttribute { public override void Effect(ReagentEffectArgs args) { diff --git a/Content.Server/Chemistry/ReagentEffects/PlantMetabolism/PlantAdjustWater.cs b/Content.Server/Chemistry/ReagentEffects/PlantMetabolism/PlantAdjustWater.cs index 282ff10825..41b4722de4 100644 --- a/Content.Server/Chemistry/ReagentEffects/PlantMetabolism/PlantAdjustWater.cs +++ b/Content.Server/Chemistry/ReagentEffects/PlantMetabolism/PlantAdjustWater.cs @@ -6,7 +6,7 @@ using Robust.Shared.GameObjects; namespace Content.Server.Chemistry.ReagentEffects.PlantMetabolism { [UsedImplicitly] - public class PlantAdjustWater : PlantAdjustAttribute + public sealed class PlantAdjustWater : PlantAdjustAttribute { public override void Effect(ReagentEffectArgs args) { diff --git a/Content.Server/Chemistry/ReagentEffects/PlantMetabolism/PlantAdjustWeeds.cs b/Content.Server/Chemistry/ReagentEffects/PlantMetabolism/PlantAdjustWeeds.cs index 67b588bc97..c26fc692a8 100644 --- a/Content.Server/Chemistry/ReagentEffects/PlantMetabolism/PlantAdjustWeeds.cs +++ b/Content.Server/Chemistry/ReagentEffects/PlantMetabolism/PlantAdjustWeeds.cs @@ -6,7 +6,7 @@ using Robust.Shared.GameObjects; namespace Content.Server.Chemistry.ReagentEffects.PlantMetabolism { [UsedImplicitly] - public class PlantAdjustWeeds : PlantAdjustAttribute + public sealed class PlantAdjustWeeds : PlantAdjustAttribute { public override void Effect(ReagentEffectArgs args) { diff --git a/Content.Server/Chemistry/ReagentEffects/PlantMetabolism/PlantAffectGrowth.cs b/Content.Server/Chemistry/ReagentEffects/PlantMetabolism/PlantAffectGrowth.cs index fd7327b4af..28c8f2de46 100644 --- a/Content.Server/Chemistry/ReagentEffects/PlantMetabolism/PlantAffectGrowth.cs +++ b/Content.Server/Chemistry/ReagentEffects/PlantMetabolism/PlantAffectGrowth.cs @@ -6,7 +6,7 @@ using Robust.Shared.GameObjects; namespace Content.Server.Chemistry.ReagentEffects.PlantMetabolism { [UsedImplicitly] - public class PlantAffectGrowth : PlantAdjustAttribute + public sealed class PlantAffectGrowth : PlantAdjustAttribute { public override void Effect(ReagentEffectArgs args) { diff --git a/Content.Server/Chemistry/ReagentEffects/PlantMetabolism/PlantClonexadone.cs b/Content.Server/Chemistry/ReagentEffects/PlantMetabolism/PlantClonexadone.cs index d19938ec73..232136e8cc 100644 --- a/Content.Server/Chemistry/ReagentEffects/PlantMetabolism/PlantClonexadone.cs +++ b/Content.Server/Chemistry/ReagentEffects/PlantMetabolism/PlantClonexadone.cs @@ -13,7 +13,7 @@ namespace Content.Server.Chemistry.ReagentEffects.PlantMetabolism { [UsedImplicitly] [DataDefinition] - public class PlantClonexadone : ReagentEffect + public sealed class PlantClonexadone : ReagentEffect { public override void Effect(ReagentEffectArgs args) { diff --git a/Content.Server/Chemistry/ReagentEffects/PlantMetabolism/PlantDiethylamine.cs b/Content.Server/Chemistry/ReagentEffects/PlantMetabolism/PlantDiethylamine.cs index 5f22685ea0..d7e2746118 100644 --- a/Content.Server/Chemistry/ReagentEffects/PlantMetabolism/PlantDiethylamine.cs +++ b/Content.Server/Chemistry/ReagentEffects/PlantMetabolism/PlantDiethylamine.cs @@ -13,7 +13,7 @@ namespace Content.Server.Chemistry.ReagentEffects.PlantMetabolism { [UsedImplicitly] [DataDefinition] - public class PlantDiethylamine : ReagentEffect + public sealed class PlantDiethylamine : ReagentEffect { public override void Effect(ReagentEffectArgs args) { diff --git a/Content.Server/Chemistry/ReagentEffects/PlantMetabolism/RobustHarvest.cs b/Content.Server/Chemistry/ReagentEffects/PlantMetabolism/RobustHarvest.cs index 8437ece9ba..d6960936d5 100644 --- a/Content.Server/Chemistry/ReagentEffects/PlantMetabolism/RobustHarvest.cs +++ b/Content.Server/Chemistry/ReagentEffects/PlantMetabolism/RobustHarvest.cs @@ -13,7 +13,7 @@ namespace Content.Server.Chemistry.ReagentEffects.PlantMetabolism { [UsedImplicitly] [DataDefinition] - public class RobustHarvest : ReagentEffect + public sealed class RobustHarvest : ReagentEffect { public override void Effect(ReagentEffectArgs args) { diff --git a/Content.Server/Chemistry/ReagentEffects/PopupMessage.cs b/Content.Server/Chemistry/ReagentEffects/PopupMessage.cs index bf448757b3..18cb3b8cc1 100644 --- a/Content.Server/Chemistry/ReagentEffects/PopupMessage.cs +++ b/Content.Server/Chemistry/ReagentEffects/PopupMessage.cs @@ -8,7 +8,7 @@ using Robust.Shared.Serialization.Manager.Attributes; namespace Content.Server.Chemistry.ReagentEffects { - public class PopupMessage : ReagentEffect + public sealed class PopupMessage : ReagentEffect { [DataField("messages", required: true)] public string[] Messages = default!; diff --git a/Content.Server/Chemistry/ReagentEffects/SatiateHunger.cs b/Content.Server/Chemistry/ReagentEffects/SatiateHunger.cs index 466bf8ff3e..35077da0b1 100644 --- a/Content.Server/Chemistry/ReagentEffects/SatiateHunger.cs +++ b/Content.Server/Chemistry/ReagentEffects/SatiateHunger.cs @@ -10,7 +10,7 @@ namespace Content.Server.Chemistry.ReagentEffects /// Attempts to find a HungerComponent on the target, /// and to update it's hunger values. /// - public class SatiateHunger : ReagentEffect + public sealed class SatiateHunger : ReagentEffect { /// /// How much hunger is satiated when 1u of the reagent is metabolized diff --git a/Content.Server/Chemistry/ReagentEffects/SatiateThirst.cs b/Content.Server/Chemistry/ReagentEffects/SatiateThirst.cs index 21c8d7884c..52b43d9fba 100644 --- a/Content.Server/Chemistry/ReagentEffects/SatiateThirst.cs +++ b/Content.Server/Chemistry/ReagentEffects/SatiateThirst.cs @@ -10,7 +10,7 @@ namespace Content.Server.Chemistry.ReagentEffects /// Default metabolism for drink reagents. Attempts to find a ThirstComponent on the target, /// and to update it's thirst values. /// - public class SatiateThirst : ReagentEffect + public sealed class SatiateThirst : ReagentEffect { /// How much thirst is satiated each metabolism tick. Not currently tied to /// rate or anything. diff --git a/Content.Server/Chemistry/ReagentEffects/StatusEffects/GenericStatusEffect.cs b/Content.Server/Chemistry/ReagentEffects/StatusEffects/GenericStatusEffect.cs index 6c3dfe9014..cf20294b76 100644 --- a/Content.Server/Chemistry/ReagentEffects/StatusEffects/GenericStatusEffect.cs +++ b/Content.Server/Chemistry/ReagentEffects/StatusEffects/GenericStatusEffect.cs @@ -19,7 +19,7 @@ namespace Content.Server.Chemistry.ReagentEffects.StatusEffects /// Can be used for things like adding accents or something. I don't know. Go wild. /// [UsedImplicitly] - public class GenericStatusEffect : ReagentEffect + public sealed class GenericStatusEffect : ReagentEffect { [DataField("key", required: true)] public string Key = default!; diff --git a/Content.Server/Chemistry/ReagentEffects/StatusEffects/Jitter.cs b/Content.Server/Chemistry/ReagentEffects/StatusEffects/Jitter.cs index c5cf34d0a6..2e5aa51af0 100644 --- a/Content.Server/Chemistry/ReagentEffects/StatusEffects/Jitter.cs +++ b/Content.Server/Chemistry/ReagentEffects/StatusEffects/Jitter.cs @@ -12,7 +12,7 @@ namespace Content.Server.Chemistry.ReagentEffects.StatusEffects /// This doesn't use generic status effects because it needs to /// take in some parameters that JitterSystem needs. /// - public class Jitter : ReagentEffect + public sealed class Jitter : ReagentEffect { [DataField("amplitude")] public float Amplitude = 10.0f; diff --git a/Content.Server/Chemistry/ReagentEffects/WashCreamPieReaction.cs b/Content.Server/Chemistry/ReagentEffects/WashCreamPieReaction.cs index d3ba9545d8..8ea992db0a 100644 --- a/Content.Server/Chemistry/ReagentEffects/WashCreamPieReaction.cs +++ b/Content.Server/Chemistry/ReagentEffects/WashCreamPieReaction.cs @@ -12,7 +12,7 @@ using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototy namespace Content.Server.Chemistry.ReagentEffects { [UsedImplicitly] - public class WashCreamPieReaction : ReagentEffect + public sealed class WashCreamPieReaction : ReagentEffect { public override void Effect(ReagentEffectArgs args) { diff --git a/Content.Server/Chemistry/TileReactions/CleanTileReaction.cs b/Content.Server/Chemistry/TileReactions/CleanTileReaction.cs index aa1b01e917..c5ec9ad92e 100644 --- a/Content.Server/Chemistry/TileReactions/CleanTileReaction.cs +++ b/Content.Server/Chemistry/TileReactions/CleanTileReaction.cs @@ -14,7 +14,7 @@ using Robust.Shared.Serialization.Manager.Attributes; namespace Content.Server.Chemistry.TileReactions { [DataDefinition] - public class CleanTileReaction : ITileReaction + public sealed class CleanTileReaction : ITileReaction { /// /// Multiplier used in CleanTileReaction. diff --git a/Content.Server/Chemistry/TileReactions/CreateEntityTileReaction.cs b/Content.Server/Chemistry/TileReactions/CreateEntityTileReaction.cs index 37690a585f..a48e98a114 100644 --- a/Content.Server/Chemistry/TileReactions/CreateEntityTileReaction.cs +++ b/Content.Server/Chemistry/TileReactions/CreateEntityTileReaction.cs @@ -16,7 +16,7 @@ using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototy namespace Content.Server.Chemistry.TileReactions; [DataDefinition] -public class CreateEntityTileReaction : ITileReaction +public sealed class CreateEntityTileReaction : ITileReaction { [DataField("entity", required: true, customTypeSerializer:typeof(PrototypeIdSerializer))] public string Entity = default!; diff --git a/Content.Server/Chemistry/TileReactions/ExtinguishTileReaction.cs b/Content.Server/Chemistry/TileReactions/ExtinguishTileReaction.cs index 7ccbb5fb94..3299f382b3 100644 --- a/Content.Server/Chemistry/TileReactions/ExtinguishTileReaction.cs +++ b/Content.Server/Chemistry/TileReactions/ExtinguishTileReaction.cs @@ -16,7 +16,7 @@ namespace Content.Server.Chemistry.TileReactions { [UsedImplicitly] [DataDefinition] - public class ExtinguishTileReaction : ITileReaction + public sealed class ExtinguishTileReaction : ITileReaction { [DataField("coolingTemperature")] private float _coolingTemperature = 2f; diff --git a/Content.Server/Chemistry/TileReactions/FlammableTileReaction.cs b/Content.Server/Chemistry/TileReactions/FlammableTileReaction.cs index d953a6f42e..18ceb4851a 100644 --- a/Content.Server/Chemistry/TileReactions/FlammableTileReaction.cs +++ b/Content.Server/Chemistry/TileReactions/FlammableTileReaction.cs @@ -15,7 +15,7 @@ namespace Content.Server.Chemistry.TileReactions { [UsedImplicitly] [DataDefinition] - public class FlammableTileReaction : ITileReaction + public sealed class FlammableTileReaction : ITileReaction { [DataField("temperatureMultiplier")] private float _temperatureMultiplier = 1.15f; diff --git a/Content.Server/Chemistry/TileReactions/PryTileReaction.cs b/Content.Server/Chemistry/TileReactions/PryTileReaction.cs index efbaec151c..72f304edcb 100644 --- a/Content.Server/Chemistry/TileReactions/PryTileReaction.cs +++ b/Content.Server/Chemistry/TileReactions/PryTileReaction.cs @@ -10,7 +10,7 @@ namespace Content.Server.Chemistry.TileReactions; [UsedImplicitly] [DataDefinition] -public class PryTileReaction : ITileReaction +public sealed class PryTileReaction : ITileReaction { public FixedPoint2 TileReact(TileRef tile, ReagentPrototype reagent, FixedPoint2 reactVolume) { diff --git a/Content.Server/Chemistry/TileReactions/SpillIfPuddlePresentTileReaction.cs b/Content.Server/Chemistry/TileReactions/SpillIfPuddlePresentTileReaction.cs index 95daf37beb..2cbf52d5e1 100644 --- a/Content.Server/Chemistry/TileReactions/SpillIfPuddlePresentTileReaction.cs +++ b/Content.Server/Chemistry/TileReactions/SpillIfPuddlePresentTileReaction.cs @@ -12,7 +12,7 @@ namespace Content.Server.Chemistry.TileReactions { [UsedImplicitly] [DataDefinition] - public class SpillIfPuddlePresentTileReaction : ITileReaction + public sealed class SpillIfPuddlePresentTileReaction : ITileReaction { public FixedPoint2 TileReact(TileRef tile, ReagentPrototype reagent, FixedPoint2 reactVolume) { diff --git a/Content.Server/Chemistry/TileReactions/SpillTileReaction.cs b/Content.Server/Chemistry/TileReactions/SpillTileReaction.cs index 2123a76722..ed8a889bab 100644 --- a/Content.Server/Chemistry/TileReactions/SpillTileReaction.cs +++ b/Content.Server/Chemistry/TileReactions/SpillTileReaction.cs @@ -15,7 +15,7 @@ namespace Content.Server.Chemistry.TileReactions { [UsedImplicitly] [DataDefinition] - public class SpillTileReaction : ITileReaction + public sealed class SpillTileReaction : ITileReaction { [DataField("launchForwardsMultiplier")] private float _launchForwardsMultiplier = 1; [DataField("requiredSlipSpeed")] private float _requiredSlipSpeed = 6; diff --git a/Content.Server/Cleanable/CleanableComponent.cs b/Content.Server/Cleanable/CleanableComponent.cs index aa9ea264b5..d91a6e0474 100644 --- a/Content.Server/Cleanable/CleanableComponent.cs +++ b/Content.Server/Cleanable/CleanableComponent.cs @@ -7,7 +7,7 @@ using Robust.Shared.ViewVariables; namespace Content.Server.Cleanable { [RegisterComponent] - public class CleanableComponent : Component + public sealed class CleanableComponent : Component { [DataField("cleanAmount")] private FixedPoint2 _cleanAmount = FixedPoint2.Zero; diff --git a/Content.Server/Climbing/Components/ClimbableComponent.cs b/Content.Server/Climbing/Components/ClimbableComponent.cs index a5a6f6397a..4f7b2c7526 100644 --- a/Content.Server/Climbing/Components/ClimbableComponent.cs +++ b/Content.Server/Climbing/Components/ClimbableComponent.cs @@ -22,7 +22,7 @@ namespace Content.Server.Climbing.Components { [RegisterComponent] [ComponentReference(typeof(IClimbable))] - public class ClimbableComponent : SharedClimbableComponent + public sealed class ClimbableComponent : SharedClimbableComponent { [Dependency] private readonly IEntityManager _entities = default!; @@ -260,7 +260,7 @@ namespace Content.Server.Climbing.Components /// /// Raised on an entity when it is climbed on. /// -public class ClimbedOnEvent : EntityEventArgs +public sealed class ClimbedOnEvent : EntityEventArgs { public EntityUid Climber; @@ -273,7 +273,7 @@ public class ClimbedOnEvent : EntityEventArgs /// /// Raised on an entity when it successfully climbs on something. /// -public class StartClimbEvent : EntityEventArgs +public sealed class StartClimbEvent : EntityEventArgs { public EntityUid Climbable; diff --git a/Content.Server/Climbing/Components/ClimbingComponent.cs b/Content.Server/Climbing/Components/ClimbingComponent.cs index 11df5a8053..6c9a45fa72 100644 --- a/Content.Server/Climbing/Components/ClimbingComponent.cs +++ b/Content.Server/Climbing/Components/ClimbingComponent.cs @@ -11,7 +11,7 @@ namespace Content.Server.Climbing.Components { [RegisterComponent] [ComponentReference(typeof(SharedClimbingComponent))] - public class ClimbingComponent : SharedClimbingComponent + public sealed class ClimbingComponent : SharedClimbingComponent { [Dependency] private readonly IGameTiming _gameTiming = default!; [Dependency] private readonly IEntityManager _entityManager = default!; diff --git a/Content.Server/Climbing/Components/GlassTableComponent.cs b/Content.Server/Climbing/Components/GlassTableComponent.cs index c32cc61ab8..a61c81ca1e 100644 --- a/Content.Server/Climbing/Components/GlassTableComponent.cs +++ b/Content.Server/Climbing/Components/GlassTableComponent.cs @@ -11,7 +11,7 @@ namespace Content.Server.Climbing.Components; /// not very generalized with regards to naming. /// [RegisterComponent, Friend(typeof(ClimbSystem))] -public class GlassTableComponent : Component +public sealed class GlassTableComponent : Component { /// /// How much damage should be given to the climber? diff --git a/Content.Server/Cloning/AcceptCloningEui.cs b/Content.Server/Cloning/AcceptCloningEui.cs index c39fbf9021..c63909168b 100644 --- a/Content.Server/Cloning/AcceptCloningEui.cs +++ b/Content.Server/Cloning/AcceptCloningEui.cs @@ -5,7 +5,7 @@ using Robust.Shared.GameObjects; namespace Content.Server.Cloning { - public class AcceptCloningEui : BaseEui + public sealed class AcceptCloningEui : BaseEui { private readonly Mind.Mind _mind; diff --git a/Content.Server/Cloning/Components/BeingClonedComponent.cs b/Content.Server/Cloning/Components/BeingClonedComponent.cs index 92d4a986a3..f02b65eaa2 100644 --- a/Content.Server/Cloning/Components/BeingClonedComponent.cs +++ b/Content.Server/Cloning/Components/BeingClonedComponent.cs @@ -4,7 +4,7 @@ using Robust.Shared.ViewVariables; namespace Content.Server.Cloning.Components { [RegisterComponent] - public class BeingClonedComponent : Component + public sealed class BeingClonedComponent : Component { [ViewVariables] public Mind.Mind? Mind = default; diff --git a/Content.Server/Cloning/Components/CloningPodComponent.cs b/Content.Server/Cloning/Components/CloningPodComponent.cs index 0e1484f7c2..51fed47cbb 100644 --- a/Content.Server/Cloning/Components/CloningPodComponent.cs +++ b/Content.Server/Cloning/Components/CloningPodComponent.cs @@ -22,7 +22,7 @@ using Robust.Shared.ViewVariables; namespace Content.Server.Cloning.Components { [RegisterComponent] - public class CloningPodComponent : SharedCloningPodComponent + public sealed class CloningPodComponent : SharedCloningPodComponent { [Dependency] private readonly IPlayerManager _playerManager = null!; [Dependency] private readonly IEntityManager _entities = default!; diff --git a/Content.Server/Clothing/Components/ClothingComponent.cs b/Content.Server/Clothing/Components/ClothingComponent.cs index 0b3fabff34..70568a95b4 100644 --- a/Content.Server/Clothing/Components/ClothingComponent.cs +++ b/Content.Server/Clothing/Components/ClothingComponent.cs @@ -14,12 +14,13 @@ namespace Content.Server.Clothing.Components { [RegisterComponent] [ComponentReference(typeof(SharedItemComponent))] + [Virtual] public class ItemComponent : SharedItemComponent{} [RegisterComponent] [NetworkedComponent] [ComponentReference(typeof(SharedItemComponent))] - public class ClothingComponent : ItemComponent, IUse + public sealed class ClothingComponent : ItemComponent, IUse { [Dependency] private readonly IEntityManager _entities = default!; [Dependency] private readonly IPrototypeManager _prototype = default!; diff --git a/Content.Server/Communications/CommunicationsConsoleComponent.cs b/Content.Server/Communications/CommunicationsConsoleComponent.cs index 8a0104ea32..c445a3bd59 100644 --- a/Content.Server/Communications/CommunicationsConsoleComponent.cs +++ b/Content.Server/Communications/CommunicationsConsoleComponent.cs @@ -17,7 +17,7 @@ using Timer = Robust.Shared.Timing.Timer; namespace Content.Server.Communications { [RegisterComponent] - public class CommunicationsConsoleComponent : SharedCommunicationsConsoleComponent, IEntityEventSubscriber + public sealed class CommunicationsConsoleComponent : SharedCommunicationsConsoleComponent, IEntityEventSubscriber { [Dependency] private readonly IGameTiming _gameTiming = default!; [Dependency] private readonly IChatManager _chatManager = default!; diff --git a/Content.Server/Configurable/ConfigurationComponent.cs b/Content.Server/Configurable/ConfigurationComponent.cs index 0071690a62..e905674906 100644 --- a/Content.Server/Configurable/ConfigurationComponent.cs +++ b/Content.Server/Configurable/ConfigurationComponent.cs @@ -22,7 +22,7 @@ namespace Content.Server.Configurable { [RegisterComponent] [ComponentReference(typeof(SharedConfigurationComponent))] - public class ConfigurationComponent : SharedConfigurationComponent, IInteractUsing, ISerializationHooks + public sealed class ConfigurationComponent : SharedConfigurationComponent, IInteractUsing, ISerializationHooks { [Dependency] private readonly IEntityManager _entMan = default!; diff --git a/Content.Server/Construction/AnchorableSystem.cs b/Content.Server/Construction/AnchorableSystem.cs index fddf896dcb..d824235e0d 100644 --- a/Content.Server/Construction/AnchorableSystem.cs +++ b/Content.Server/Construction/AnchorableSystem.cs @@ -12,7 +12,7 @@ using Robust.Shared.IoC; namespace Content.Server.Construction { - public class AnchorableSystem : EntitySystem + public sealed class AnchorableSystem : EntitySystem { [Dependency] private readonly ToolSystem _toolSystem = default!; [Dependency] private readonly PullingSystem _pullingSystem = default!; diff --git a/Content.Server/Construction/Commands/FixRotationsCommand.cs b/Content.Server/Construction/Commands/FixRotationsCommand.cs index 84ed05c623..5b28f7ecab 100644 --- a/Content.Server/Construction/Commands/FixRotationsCommand.cs +++ b/Content.Server/Construction/Commands/FixRotationsCommand.cs @@ -13,7 +13,7 @@ using Robust.Shared.Maths; namespace Content.Server.Construction.Commands { [AdminCommand(AdminFlags.Mapping)] - class FixRotationsCommand : IConsoleCommand + sealed class FixRotationsCommand : IConsoleCommand { // ReSharper disable once StringLiteralTypo public string Command => "fixrotations"; diff --git a/Content.Server/Construction/Commands/TileWallsCommand.cs b/Content.Server/Construction/Commands/TileWallsCommand.cs index bb245acf3b..5497d22639 100644 --- a/Content.Server/Construction/Commands/TileWallsCommand.cs +++ b/Content.Server/Construction/Commands/TileWallsCommand.cs @@ -11,7 +11,7 @@ using Robust.Shared.Prototypes; namespace Content.Server.Construction.Commands { [AdminCommand(AdminFlags.Mapping)] - class TileWallsCommand : IConsoleCommand + sealed class TileWallsCommand : IConsoleCommand { // ReSharper disable once StringLiteralTypo public string Command => "tilewalls"; diff --git a/Content.Server/Construction/Completions/AddContainer.cs b/Content.Server/Construction/Completions/AddContainer.cs index a3236b0901..cc6179f2cc 100644 --- a/Content.Server/Construction/Completions/AddContainer.cs +++ b/Content.Server/Construction/Completions/AddContainer.cs @@ -9,7 +9,7 @@ namespace Content.Server.Construction.Completions { [UsedImplicitly] [DataDefinition] - public class AddContainer : IGraphAction + public sealed class AddContainer : IGraphAction { [DataField("container")] public string? Container { get; private set; } = null; diff --git a/Content.Server/Construction/Completions/AttemptElectrocute.cs b/Content.Server/Construction/Completions/AttemptElectrocute.cs index b8999907e8..39e3221018 100644 --- a/Content.Server/Construction/Completions/AttemptElectrocute.cs +++ b/Content.Server/Construction/Completions/AttemptElectrocute.cs @@ -6,7 +6,7 @@ using Robust.Shared.Serialization.Manager.Attributes; namespace Content.Server.Construction.Completions { [DataDefinition] - public class AttemptElectrocute : IGraphAction + public sealed class AttemptElectrocute : IGraphAction { public void PerformAction(EntityUid uid, EntityUid? userUid, IEntityManager entityManager) { diff --git a/Content.Server/Construction/Completions/BuildComputer.cs b/Content.Server/Construction/Completions/BuildComputer.cs index f5618e10a1..ac6353c323 100644 --- a/Content.Server/Construction/Completions/BuildComputer.cs +++ b/Content.Server/Construction/Completions/BuildComputer.cs @@ -13,7 +13,7 @@ namespace Content.Server.Construction.Completions { [UsedImplicitly] [DataDefinition] - public class BuildComputer : IGraphAction + public sealed class BuildComputer : IGraphAction { [DataField("container")] public string Container { get; private set; } = string.Empty; diff --git a/Content.Server/Construction/Completions/BuildMachine.cs b/Content.Server/Construction/Completions/BuildMachine.cs index 01707ab551..769ebf7f08 100644 --- a/Content.Server/Construction/Completions/BuildMachine.cs +++ b/Content.Server/Construction/Completions/BuildMachine.cs @@ -11,7 +11,7 @@ namespace Content.Server.Construction.Completions { [UsedImplicitly] [DataDefinition] - public class BuildMachine : IGraphAction + public sealed class BuildMachine : IGraphAction { public void PerformAction(EntityUid uid, EntityUid? userUid, IEntityManager entityManager) { diff --git a/Content.Server/Construction/Completions/ConditionalAction.cs b/Content.Server/Construction/Completions/ConditionalAction.cs index 6fbfe0ef0b..d27d7a8580 100644 --- a/Content.Server/Construction/Completions/ConditionalAction.cs +++ b/Content.Server/Construction/Completions/ConditionalAction.cs @@ -8,7 +8,7 @@ namespace Content.Server.Construction.Completions { [UsedImplicitly] [DataDefinition] - public class ConditionalAction : IGraphAction + public sealed class ConditionalAction : IGraphAction { [DataField("passUser")] public bool PassUser { get; } = false; diff --git a/Content.Server/Construction/Completions/DeleteEntitiesInContainer.cs b/Content.Server/Construction/Completions/DeleteEntitiesInContainer.cs index db0d71c58a..32ea487fbd 100644 --- a/Content.Server/Construction/Completions/DeleteEntitiesInContainer.cs +++ b/Content.Server/Construction/Completions/DeleteEntitiesInContainer.cs @@ -8,7 +8,7 @@ using Robust.Shared.Serialization.Manager.Attributes; namespace Content.Server.Construction.Completions { [DataDefinition] - public class DeleteEntitiesInContainer : IGraphAction + public sealed class DeleteEntitiesInContainer : IGraphAction { [DataField("container")] public string Container { get; } = string.Empty; diff --git a/Content.Server/Construction/Completions/DeleteEntity.cs b/Content.Server/Construction/Completions/DeleteEntity.cs index 7515a31088..61c0856b18 100644 --- a/Content.Server/Construction/Completions/DeleteEntity.cs +++ b/Content.Server/Construction/Completions/DeleteEntity.cs @@ -8,7 +8,7 @@ namespace Content.Server.Construction.Completions { [UsedImplicitly] [DataDefinition] - public class DeleteEntity : IGraphAction + public sealed class DeleteEntity : IGraphAction { public void PerformAction(EntityUid uid, EntityUid? userUid, IEntityManager entityManager) { diff --git a/Content.Server/Construction/Completions/DestroyEntity.cs b/Content.Server/Construction/Completions/DestroyEntity.cs index a0a17cdfda..fdde0279f3 100644 --- a/Content.Server/Construction/Completions/DestroyEntity.cs +++ b/Content.Server/Construction/Completions/DestroyEntity.cs @@ -10,7 +10,7 @@ namespace Content.Server.Construction.Completions { [UsedImplicitly] [DataDefinition] - public class DestroyEntity : IGraphAction + public sealed class DestroyEntity : IGraphAction { public void PerformAction(EntityUid uid, EntityUid? userUid, IEntityManager entityManager) { diff --git a/Content.Server/Construction/Completions/EmptyAllContainers.cs b/Content.Server/Construction/Completions/EmptyAllContainers.cs index 502fd42cac..9cec7df6be 100644 --- a/Content.Server/Construction/Completions/EmptyAllContainers.cs +++ b/Content.Server/Construction/Completions/EmptyAllContainers.cs @@ -9,7 +9,7 @@ namespace Content.Server.Construction.Completions { [UsedImplicitly] [DataDefinition] - public class EmptyAllContainers : IGraphAction + public sealed class EmptyAllContainers : IGraphAction { public void PerformAction(EntityUid uid, EntityUid? userUid, IEntityManager entityManager) { diff --git a/Content.Server/Construction/Completions/EmptyContainer.cs b/Content.Server/Construction/Completions/EmptyContainer.cs index a1e866a5d5..1fa1231868 100644 --- a/Content.Server/Construction/Completions/EmptyContainer.cs +++ b/Content.Server/Construction/Completions/EmptyContainer.cs @@ -11,7 +11,7 @@ namespace Content.Server.Construction.Completions { [UsedImplicitly] [DataDefinition] - public class EmptyContainer : IGraphAction + public sealed class EmptyContainer : IGraphAction { [DataField("container")] public string Container { get; private set; } = string.Empty; diff --git a/Content.Server/Construction/Completions/MachineFrameRegenerateProgress.cs b/Content.Server/Construction/Completions/MachineFrameRegenerateProgress.cs index 4249308063..6f169a2965 100644 --- a/Content.Server/Construction/Completions/MachineFrameRegenerateProgress.cs +++ b/Content.Server/Construction/Completions/MachineFrameRegenerateProgress.cs @@ -9,7 +9,7 @@ namespace Content.Server.Construction.Completions { [UsedImplicitly] [DataDefinition] - public class MachineFrameRegenerateProgress : IGraphAction + public sealed class MachineFrameRegenerateProgress : IGraphAction { public void PerformAction(EntityUid uid, EntityUid? userUid, IEntityManager entityManager) { diff --git a/Content.Server/Construction/Completions/MoveContainer.cs b/Content.Server/Construction/Completions/MoveContainer.cs index 2444de2a52..70cc81c931 100644 --- a/Content.Server/Construction/Completions/MoveContainer.cs +++ b/Content.Server/Construction/Completions/MoveContainer.cs @@ -11,7 +11,7 @@ namespace Content.Server.Construction.Completions { [UsedImplicitly] [DataDefinition] - public class MoveContainer : IGraphAction + public sealed class MoveContainer : IGraphAction { [DataField("from")] public string? FromContainer { get; } = null; [DataField("to")] public string? ToContainer { get; } = null; diff --git a/Content.Server/Construction/Completions/PlaySound.cs b/Content.Server/Construction/Completions/PlaySound.cs index 0324b1e385..955da59ee9 100644 --- a/Content.Server/Construction/Completions/PlaySound.cs +++ b/Content.Server/Construction/Completions/PlaySound.cs @@ -12,7 +12,7 @@ namespace Content.Server.Construction.Completions { [UsedImplicitly] [DataDefinition] - public class PlaySound : IGraphAction + public sealed class PlaySound : IGraphAction { [DataField("sound", required: true)] public SoundSpecifier Sound { get; private set; } = default!; diff --git a/Content.Server/Construction/Completions/PopupEveryone.cs b/Content.Server/Construction/Completions/PopupEveryone.cs index 900d3fa276..9bbbdf8598 100644 --- a/Content.Server/Construction/Completions/PopupEveryone.cs +++ b/Content.Server/Construction/Completions/PopupEveryone.cs @@ -9,7 +9,7 @@ using Robust.Shared.Serialization.Manager.Attributes; namespace Content.Server.Construction.Completions { [DataDefinition] - public class PopupEveryone : IGraphAction + public sealed class PopupEveryone : IGraphAction { [DataField("text")] public string Text { get; } = string.Empty; diff --git a/Content.Server/Construction/Completions/PopupUser.cs b/Content.Server/Construction/Completions/PopupUser.cs index 0f48f07fbf..d63ece9ed5 100644 --- a/Content.Server/Construction/Completions/PopupUser.cs +++ b/Content.Server/Construction/Completions/PopupUser.cs @@ -12,7 +12,7 @@ namespace Content.Server.Construction.Completions { [UsedImplicitly] [DataDefinition] - public class PopupUser : IGraphAction + public sealed class PopupUser : IGraphAction { [DataField("cursor")] public bool Cursor { get; } = false; [DataField("text")] public string Text { get; } = string.Empty; diff --git a/Content.Server/Construction/Completions/RaiseEvent.cs b/Content.Server/Construction/Completions/RaiseEvent.cs index f4a5f962f6..4b5a0c1ac0 100644 --- a/Content.Server/Construction/Completions/RaiseEvent.cs +++ b/Content.Server/Construction/Completions/RaiseEvent.cs @@ -6,7 +6,7 @@ using Robust.Shared.Serialization.Manager.Attributes; namespace Content.Server.Construction.Completions { [UsedImplicitly] - public class RaiseEvent : IGraphAction + public sealed class RaiseEvent : IGraphAction { [DataField("event", required:true)] public EntityEventArgs? Event { get; } = null; diff --git a/Content.Server/Construction/Completions/SetAnchor.cs b/Content.Server/Construction/Completions/SetAnchor.cs index 64b1a5b8ff..a6fe6d3e29 100644 --- a/Content.Server/Construction/Completions/SetAnchor.cs +++ b/Content.Server/Construction/Completions/SetAnchor.cs @@ -10,7 +10,7 @@ namespace Content.Server.Construction.Completions { [UsedImplicitly] [DataDefinition] - public class SetAnchor : IGraphAction + public sealed class SetAnchor : IGraphAction { [DataField("value")] public bool Value { get; private set; } = true; diff --git a/Content.Server/Construction/Completions/SetStackCount.cs b/Content.Server/Construction/Completions/SetStackCount.cs index 0c3cbd59bf..9f65b2fab8 100644 --- a/Content.Server/Construction/Completions/SetStackCount.cs +++ b/Content.Server/Construction/Completions/SetStackCount.cs @@ -9,7 +9,7 @@ namespace Content.Server.Construction.Completions { [UsedImplicitly] [DataDefinition] - public class SetStackCount : IGraphAction + public sealed class SetStackCount : IGraphAction { [DataField("amount")] public int Amount { get; } = 1; diff --git a/Content.Server/Construction/Completions/SnapToGrid.cs b/Content.Server/Construction/Completions/SnapToGrid.cs index 7f0224144c..9d5d38f42e 100644 --- a/Content.Server/Construction/Completions/SnapToGrid.cs +++ b/Content.Server/Construction/Completions/SnapToGrid.cs @@ -10,7 +10,7 @@ namespace Content.Server.Construction.Completions { [UsedImplicitly] [DataDefinition] - public class SnapToGrid : IGraphAction + public sealed class SnapToGrid : IGraphAction { [DataField("southRotation")] public bool SouthRotation { get; private set; } = false; diff --git a/Content.Server/Construction/Completions/SpawnPrototype.cs b/Content.Server/Construction/Completions/SpawnPrototype.cs index d64e2c7b01..e737a29d4a 100644 --- a/Content.Server/Construction/Completions/SpawnPrototype.cs +++ b/Content.Server/Construction/Completions/SpawnPrototype.cs @@ -13,7 +13,7 @@ namespace Content.Server.Construction.Completions { [UsedImplicitly] [DataDefinition] - public class SpawnPrototype : IGraphAction + public sealed class SpawnPrototype : IGraphAction { [DataField("prototype", customTypeSerializer:typeof(PrototypeIdSerializer))] public string Prototype { get; private set; } = string.Empty; diff --git a/Content.Server/Construction/Completions/SpawnPrototypeAtContainer.cs b/Content.Server/Construction/Completions/SpawnPrototypeAtContainer.cs index 7db6fc7969..1767318680 100644 --- a/Content.Server/Construction/Completions/SpawnPrototypeAtContainer.cs +++ b/Content.Server/Construction/Completions/SpawnPrototypeAtContainer.cs @@ -10,7 +10,7 @@ namespace Content.Server.Construction.Completions { [UsedImplicitly] [DataDefinition] - public class SpawnPrototypeAtContainer : IGraphAction + public sealed class SpawnPrototypeAtContainer : IGraphAction { [DataField("prototype")] public string Prototype { get; } = string.Empty; [DataField("container")] public string Container { get; } = string.Empty; diff --git a/Content.Server/Construction/Completions/SpriteChange.cs b/Content.Server/Construction/Completions/SpriteChange.cs index 5813d158d2..cf1a0cac0d 100644 --- a/Content.Server/Construction/Completions/SpriteChange.cs +++ b/Content.Server/Construction/Completions/SpriteChange.cs @@ -10,7 +10,7 @@ namespace Content.Server.Construction.Completions { [UsedImplicitly] [DataDefinition] - public class SpriteChange : IGraphAction + public sealed class SpriteChange : IGraphAction { [DataField("layer")] public int Layer { get; private set; } = 0; [DataField("specifier")] public SpriteSpecifier? SpriteSpecifier { get; private set; } = SpriteSpecifier.Invalid; diff --git a/Content.Server/Construction/Completions/SpriteStateChange.cs b/Content.Server/Construction/Completions/SpriteStateChange.cs index e7cc7bb757..5fc6971b30 100644 --- a/Content.Server/Construction/Completions/SpriteStateChange.cs +++ b/Content.Server/Construction/Completions/SpriteStateChange.cs @@ -9,7 +9,7 @@ namespace Content.Server.Construction.Completions { [UsedImplicitly] [DataDefinition] - public class SpriteStateChange : IGraphAction + public sealed class SpriteStateChange : IGraphAction { [DataField("layer")] public int Layer { get; private set; } = 0; [DataField("state")] public string? State { get; private set; } = string.Empty; diff --git a/Content.Server/Construction/Completions/VisualizerDataInt.cs b/Content.Server/Construction/Completions/VisualizerDataInt.cs index b8228f53d5..ac19f7b08a 100644 --- a/Content.Server/Construction/Completions/VisualizerDataInt.cs +++ b/Content.Server/Construction/Completions/VisualizerDataInt.cs @@ -11,7 +11,7 @@ namespace Content.Server.Construction.Completions { [UsedImplicitly] [DataDefinition] - public class VisualizerDataInt : IGraphAction, ISerializationHooks + public sealed class VisualizerDataInt : IGraphAction, ISerializationHooks { [DataField("key")] public string Key { get; private set; } = string.Empty; [DataField("data")] public int Data { get; private set; } = 0; diff --git a/Content.Server/Construction/Components/AnchorableComponent.cs b/Content.Server/Construction/Components/AnchorableComponent.cs index 2b174529a1..ac6474f6f5 100644 --- a/Content.Server/Construction/Components/AnchorableComponent.cs +++ b/Content.Server/Construction/Components/AnchorableComponent.cs @@ -8,7 +8,7 @@ using Robust.Shared.ViewVariables; namespace Content.Server.Construction.Components { [RegisterComponent, Friend(typeof(AnchorableSystem))] - public class AnchorableComponent : Component + public sealed class AnchorableComponent : Component { [DataField("tool", customTypeSerializer:typeof(PrototypeIdSerializer))] public string Tool { get; private set; } = "Anchoring"; @@ -44,12 +44,12 @@ namespace Content.Server.Construction.Components } } - public class AnchorAttemptEvent : BaseAnchoredAttemptEvent + public sealed class AnchorAttemptEvent : BaseAnchoredAttemptEvent { public AnchorAttemptEvent(EntityUid user, EntityUid tool) : base(user, tool) { } } - public class UnanchorAttemptEvent : BaseAnchoredAttemptEvent + public sealed class UnanchorAttemptEvent : BaseAnchoredAttemptEvent { public UnanchorAttemptEvent(EntityUid user, EntityUid tool) : base(user, tool) { } } @@ -69,7 +69,7 @@ namespace Content.Server.Construction.Components /// /// Raised just before the entity's body type is changed. /// - public class BeforeAnchoredEvent : BaseAnchoredEvent + public sealed class BeforeAnchoredEvent : BaseAnchoredEvent { public BeforeAnchoredEvent(EntityUid user, EntityUid tool) : base(user, tool) { } } @@ -79,7 +79,7 @@ namespace Content.Server.Construction.Components /// general . This event has the benefit of having user & tool information, /// as a result of interactions mediated by the . /// - public class UserAnchoredEvent : BaseAnchoredEvent + public sealed class UserAnchoredEvent : BaseAnchoredEvent { public UserAnchoredEvent(EntityUid user, EntityUid tool) : base(user, tool) { } } @@ -87,7 +87,7 @@ namespace Content.Server.Construction.Components /// /// Raised just before the entity's body type is changed. /// - public class BeforeUnanchoredEvent : BaseAnchoredEvent + public sealed class BeforeUnanchoredEvent : BaseAnchoredEvent { public BeforeUnanchoredEvent(EntityUid user, EntityUid tool) : base(user, tool) { } } @@ -98,7 +98,7 @@ namespace Content.Server.Construction.Components /// event has the benefit of having user & tool information, whereas the more general event may be due to /// explosions or grid-destruction or other interactions not mediated by the . /// - public class UserUnanchoredEvent : BaseAnchoredEvent + public sealed class UserUnanchoredEvent : BaseAnchoredEvent { public UserUnanchoredEvent(EntityUid user, EntityUid tool) : base(user, tool) { } } diff --git a/Content.Server/Construction/Components/ComputerBoardComponent.cs b/Content.Server/Construction/Components/ComputerBoardComponent.cs index 62cf07c09d..636d91a6df 100644 --- a/Content.Server/Construction/Components/ComputerBoardComponent.cs +++ b/Content.Server/Construction/Components/ComputerBoardComponent.cs @@ -5,7 +5,7 @@ using Robust.Shared.ViewVariables; namespace Content.Server.Construction.Components { [RegisterComponent] - public class ComputerBoardComponent : Component + public sealed class ComputerBoardComponent : Component { [ViewVariables] [DataField("prototype")] diff --git a/Content.Server/Construction/Components/ConstructionComponent.cs b/Content.Server/Construction/Components/ConstructionComponent.cs index 69d54070a1..bc746e4fc5 100644 --- a/Content.Server/Construction/Components/ConstructionComponent.cs +++ b/Content.Server/Construction/Components/ConstructionComponent.cs @@ -9,7 +9,7 @@ using Robust.Shared.ViewVariables; namespace Content.Server.Construction.Components { [RegisterComponent, Friend(typeof(ConstructionSystem))] - public class ConstructionComponent : Component + public sealed class ConstructionComponent : Component { [DataField("graph", required:true, customTypeSerializer:typeof(PrototypeIdSerializer))] public string Graph { get; set; } = string.Empty; diff --git a/Content.Server/Construction/Components/MachineBoardComponent.cs b/Content.Server/Construction/Components/MachineBoardComponent.cs index 73ea5f8201..2e0aa7e9a0 100644 --- a/Content.Server/Construction/Components/MachineBoardComponent.cs +++ b/Content.Server/Construction/Components/MachineBoardComponent.cs @@ -14,7 +14,7 @@ namespace Content.Server.Construction.Components { [RegisterComponent] #pragma warning disable 618 - public class MachineBoardComponent : Component, IExamine + public sealed class MachineBoardComponent : Component, IExamine #pragma warning restore 618 { [Dependency] private readonly IPrototypeManager _prototypeManager = default!; diff --git a/Content.Server/Construction/Components/MachineFrameComponent.cs b/Content.Server/Construction/Components/MachineFrameComponent.cs index 2f9d6c806b..e935a8a69f 100644 --- a/Content.Server/Construction/Components/MachineFrameComponent.cs +++ b/Content.Server/Construction/Components/MachineFrameComponent.cs @@ -8,7 +8,7 @@ using Robust.Shared.Containers; namespace Content.Server.Construction.Components { [RegisterComponent] - public class MachineFrameComponent : Component, IInteractUsing + public sealed class MachineFrameComponent : Component, IInteractUsing { [Dependency] private readonly IEntityManager _entMan = default!; [Dependency] private readonly IComponentFactory _componentFactory = default!; @@ -357,7 +357,7 @@ namespace Content.Server.Construction.Components } [DataDefinition] - public class MachineDeconstructedEvent : EntityEventArgs + public sealed class MachineDeconstructedEvent : EntityEventArgs { } } diff --git a/Content.Server/Construction/Components/MachinePartComponent.cs b/Content.Server/Construction/Components/MachinePartComponent.cs index c4d89b7d13..de2a21c7c9 100644 --- a/Content.Server/Construction/Components/MachinePartComponent.cs +++ b/Content.Server/Construction/Components/MachinePartComponent.cs @@ -10,7 +10,7 @@ namespace Content.Server.Construction.Components { [RegisterComponent] #pragma warning disable 618 - public class MachinePartComponent : Component, IExamine + public sealed class MachinePartComponent : Component, IExamine #pragma warning restore 618 { // I'm so sorry for hard-coding this. But trust me, it should make things less painful. diff --git a/Content.Server/Construction/Components/WelderRefinableComponent.cs b/Content.Server/Construction/Components/WelderRefinableComponent.cs index c4d0ba1f4b..7994d7a65c 100644 --- a/Content.Server/Construction/Components/WelderRefinableComponent.cs +++ b/Content.Server/Construction/Components/WelderRefinableComponent.cs @@ -17,7 +17,7 @@ namespace Content.Server.Construction.Components /// For example, glass shard can be refined to glass sheet. /// [RegisterComponent] - public class WelderRefinableComponent : Component, IInteractUsing + public sealed class WelderRefinableComponent : Component, IInteractUsing { [Dependency] private readonly IEntityManager _entMan = default!; diff --git a/Content.Server/Construction/Conditions/AirlockBolted.cs b/Content.Server/Construction/Conditions/AirlockBolted.cs index 8b83ff9b51..76770b5d7d 100644 --- a/Content.Server/Construction/Conditions/AirlockBolted.cs +++ b/Content.Server/Construction/Conditions/AirlockBolted.cs @@ -14,7 +14,7 @@ namespace Content.Server.Construction.Conditions { [UsedImplicitly] [DataDefinition] - public class AirlockBolted : IGraphCondition + public sealed class AirlockBolted : IGraphCondition { [DataField("value")] public bool Value { get; private set; } = true; diff --git a/Content.Server/Construction/Conditions/AllConditions.cs b/Content.Server/Construction/Conditions/AllConditions.cs index 5f785a9442..0f93c43937 100644 --- a/Content.Server/Construction/Conditions/AllConditions.cs +++ b/Content.Server/Construction/Conditions/AllConditions.cs @@ -11,7 +11,7 @@ namespace Content.Server.Construction.Conditions { [UsedImplicitly] [DataDefinition] - public class AllConditions : IGraphCondition + public sealed class AllConditions : IGraphCondition { [DataField("conditions")] public IGraphCondition[] Conditions { get; } = Array.Empty(); diff --git a/Content.Server/Construction/Conditions/AllWiresCut.cs b/Content.Server/Construction/Conditions/AllWiresCut.cs index b07a8e3e05..e49e7677cc 100644 --- a/Content.Server/Construction/Conditions/AllWiresCut.cs +++ b/Content.Server/Construction/Conditions/AllWiresCut.cs @@ -15,7 +15,7 @@ namespace Content.Server.Construction.Conditions /// [UsedImplicitly] [DataDefinition] - public class AllWiresCut : IGraphCondition + public sealed class AllWiresCut : IGraphCondition { [DataField("value")] public bool Value { get; private set; } = true; diff --git a/Content.Server/Construction/Conditions/AnyConditions.cs b/Content.Server/Construction/Conditions/AnyConditions.cs index c1430eab99..323f6cbdee 100644 --- a/Content.Server/Construction/Conditions/AnyConditions.cs +++ b/Content.Server/Construction/Conditions/AnyConditions.cs @@ -11,7 +11,7 @@ namespace Content.Server.Construction.Conditions { [UsedImplicitly] [DataDefinition] - public class AnyConditions : IGraphCondition + public sealed class AnyConditions : IGraphCondition { [DataField("conditions")] public IGraphCondition[] Conditions { get; } = Array.Empty(); diff --git a/Content.Server/Construction/Conditions/ComponentInTile.cs b/Content.Server/Construction/Conditions/ComponentInTile.cs index 5cea711ce6..d3ca7736e8 100644 --- a/Content.Server/Construction/Conditions/ComponentInTile.cs +++ b/Content.Server/Construction/Conditions/ComponentInTile.cs @@ -20,7 +20,7 @@ namespace Content.Server.Construction.Conditions /// [UsedImplicitly] [DataDefinition] - public class ComponentInTile : IGraphCondition + public sealed class ComponentInTile : IGraphCondition { /// /// If true, any entity on the tile must have the component. diff --git a/Content.Server/Construction/Conditions/ContainerEmpty.cs b/Content.Server/Construction/Conditions/ContainerEmpty.cs index be149bb975..ee34adda63 100644 --- a/Content.Server/Construction/Conditions/ContainerEmpty.cs +++ b/Content.Server/Construction/Conditions/ContainerEmpty.cs @@ -15,7 +15,7 @@ namespace Content.Server.Construction.Conditions { [UsedImplicitly] [DataDefinition] - public class ContainerEmpty : IGraphCondition + public sealed class ContainerEmpty : IGraphCondition { [DataField("container")] public string Container { get; } = string.Empty; diff --git a/Content.Server/Construction/Conditions/ContainerNotEmpty.cs b/Content.Server/Construction/Conditions/ContainerNotEmpty.cs index 5daa7b61f0..9ba0792f74 100644 --- a/Content.Server/Construction/Conditions/ContainerNotEmpty.cs +++ b/Content.Server/Construction/Conditions/ContainerNotEmpty.cs @@ -15,7 +15,7 @@ namespace Content.Server.Construction.Conditions { [UsedImplicitly] [DataDefinition] - public class ContainerNotEmpty : IGraphCondition + public sealed class ContainerNotEmpty : IGraphCondition { [DataField("container")] public string Container { get; private set; } = string.Empty; [DataField("examineText")] public string? ExamineText { get; } diff --git a/Content.Server/Construction/Conditions/DoorWelded.cs b/Content.Server/Construction/Conditions/DoorWelded.cs index eedc58b385..afd80f6e04 100644 --- a/Content.Server/Construction/Conditions/DoorWelded.cs +++ b/Content.Server/Construction/Conditions/DoorWelded.cs @@ -12,7 +12,7 @@ namespace Content.Server.Construction.Conditions { [UsedImplicitly] [DataDefinition] - public class DoorWelded : IGraphCondition + public sealed class DoorWelded : IGraphCondition { [DataField("welded")] public bool Welded { get; private set; } = true; diff --git a/Content.Server/Construction/Conditions/EntityAnchored.cs b/Content.Server/Construction/Conditions/EntityAnchored.cs index 9c89e89aa4..7678e124a4 100644 --- a/Content.Server/Construction/Conditions/EntityAnchored.cs +++ b/Content.Server/Construction/Conditions/EntityAnchored.cs @@ -14,7 +14,7 @@ namespace Content.Server.Construction.Conditions { [UsedImplicitly] [DataDefinition] - public class EntityAnchored : IGraphCondition + public sealed class EntityAnchored : IGraphCondition { [DataField("anchored")] public bool Anchored { get; private set; } = true; diff --git a/Content.Server/Construction/Conditions/Locked.cs b/Content.Server/Construction/Conditions/Locked.cs index 36f6c1899d..a3cc42ae73 100644 --- a/Content.Server/Construction/Conditions/Locked.cs +++ b/Content.Server/Construction/Conditions/Locked.cs @@ -14,7 +14,7 @@ namespace Content.Server.Construction.Conditions { [UsedImplicitly] [DataDefinition] - public class Locked : IGraphCondition + public sealed class Locked : IGraphCondition { [DataField("locked")] public bool IsLocked { get; private set; } = true; diff --git a/Content.Server/Construction/Conditions/MachineFrameComplete.cs b/Content.Server/Construction/Conditions/MachineFrameComplete.cs index 7e4fec885a..b806faf980 100644 --- a/Content.Server/Construction/Conditions/MachineFrameComplete.cs +++ b/Content.Server/Construction/Conditions/MachineFrameComplete.cs @@ -17,7 +17,7 @@ namespace Content.Server.Construction.Conditions /// [UsedImplicitly] [DataDefinition] - public class MachineFrameComplete : IGraphCondition + public sealed class MachineFrameComplete : IGraphCondition { [DataField("guideIconBoard")] public SpriteSpecifier? GuideIconBoard { get; } diff --git a/Content.Server/Construction/Conditions/StorageWelded.cs b/Content.Server/Construction/Conditions/StorageWelded.cs index b3780821c2..db168b0ad4 100644 --- a/Content.Server/Construction/Conditions/StorageWelded.cs +++ b/Content.Server/Construction/Conditions/StorageWelded.cs @@ -12,7 +12,7 @@ namespace Content.Server.Construction.Conditions { [UsedImplicitly] [DataDefinition] - public class StorageWelded : IGraphCondition + public sealed class StorageWelded : IGraphCondition { [DataField("welded")] public bool Welded { get; private set; } = true; diff --git a/Content.Server/Construction/Conditions/ToiletLidClosed.cs b/Content.Server/Construction/Conditions/ToiletLidClosed.cs index 52aca37833..6b915214d9 100644 --- a/Content.Server/Construction/Conditions/ToiletLidClosed.cs +++ b/Content.Server/Construction/Conditions/ToiletLidClosed.cs @@ -12,7 +12,7 @@ namespace Content.Server.Construction.Conditions { [UsedImplicitly] [DataDefinition] - public class ToiletLidClosed : IGraphCondition + public sealed class ToiletLidClosed : IGraphCondition { public bool Condition(EntityUid uid, IEntityManager entityManager) { diff --git a/Content.Server/Construction/Conditions/WirePanel.cs b/Content.Server/Construction/Conditions/WirePanel.cs index 9a818ea1ae..05fa1d5e23 100644 --- a/Content.Server/Construction/Conditions/WirePanel.cs +++ b/Content.Server/Construction/Conditions/WirePanel.cs @@ -14,7 +14,7 @@ namespace Content.Server.Construction.Conditions { [UsedImplicitly] [DataDefinition] - public class WirePanel : IGraphCondition + public sealed class WirePanel : IGraphCondition { [DataField("open")] public bool Open { get; private set; } = true; diff --git a/Content.Server/Construction/ConstructionSystem.Graph.cs b/Content.Server/Construction/ConstructionSystem.Graph.cs index 109a89c445..d1467da430 100644 --- a/Content.Server/Construction/ConstructionSystem.Graph.cs +++ b/Content.Server/Construction/ConstructionSystem.Graph.cs @@ -10,7 +10,7 @@ using Robust.Shared.Prototypes; namespace Content.Server.Construction { - public partial class ConstructionSystem + public sealed partial class ConstructionSystem { [Dependency] private readonly ContainerSystem _containerSystem = default!; diff --git a/Content.Server/Construction/ConstructionSystem.Guided.cs b/Content.Server/Construction/ConstructionSystem.Guided.cs index 7c1ed4dbec..8071e8915f 100644 --- a/Content.Server/Construction/ConstructionSystem.Guided.cs +++ b/Content.Server/Construction/ConstructionSystem.Guided.cs @@ -11,7 +11,7 @@ using Robust.Shared.Localization; namespace Content.Server.Construction { - public partial class ConstructionSystem + public sealed partial class ConstructionSystem { private readonly Dictionary _guideCache = new(); diff --git a/Content.Server/Construction/ConstructionSystem.Initial.cs b/Content.Server/Construction/ConstructionSystem.Initial.cs index 00af70c522..2a8d8c9809 100644 --- a/Content.Server/Construction/ConstructionSystem.Initial.cs +++ b/Content.Server/Construction/ConstructionSystem.Initial.cs @@ -25,7 +25,7 @@ using Robust.Shared.Timing; namespace Content.Server.Construction { - public partial class ConstructionSystem + public sealed partial class ConstructionSystem { [Dependency] private readonly InventorySystem _inventorySystem = default!; diff --git a/Content.Server/Construction/ConstructionSystem.Interactions.cs b/Content.Server/Construction/ConstructionSystem.Interactions.cs index f506471150..8d5d2bbaa8 100644 --- a/Content.Server/Construction/ConstructionSystem.Interactions.cs +++ b/Content.Server/Construction/ConstructionSystem.Interactions.cs @@ -10,7 +10,7 @@ using Robust.Shared.GameObjects; namespace Content.Server.Construction { - public partial class ConstructionSystem + public sealed partial class ConstructionSystem { private readonly HashSet _constructionUpdateQueue = new(); @@ -498,7 +498,7 @@ namespace Content.Server.Construction /// This event signals that a construction interaction's DoAfter has completed successfully. /// This wraps the original event and also keeps some custom data that event handlers might need. /// - private class ConstructionDoAfterComplete : EntityEventArgs + private sealed class ConstructionDoAfterComplete : EntityEventArgs { public readonly EntityUid TargetUid; public readonly object WrappedEvent; @@ -516,7 +516,7 @@ namespace Content.Server.Construction /// This event signals that a construction interaction's DoAfter has failed or has been cancelled. /// This wraps the original event and also keeps some custom data that event handlers might need. /// - private class ConstructionDoAfterCancelled : EntityEventArgs + private sealed class ConstructionDoAfterCancelled : EntityEventArgs { public readonly EntityUid TargetUid; public readonly object WrappedEvent; diff --git a/Content.Server/Construction/ConstructionSystem.Pathfinding.cs b/Content.Server/Construction/ConstructionSystem.Pathfinding.cs index 8d5cdb9a2c..840c2778cd 100644 --- a/Content.Server/Construction/ConstructionSystem.Pathfinding.cs +++ b/Content.Server/Construction/ConstructionSystem.Pathfinding.cs @@ -6,7 +6,7 @@ using Robust.Shared.GameObjects; namespace Content.Server.Construction { - public partial class ConstructionSystem + public sealed partial class ConstructionSystem { public bool SetPathfindingTarget(EntityUid uid, string? targetNodeId, ConstructionComponent? construction = null) { diff --git a/Content.Server/Construction/ConstructionSystem.cs b/Content.Server/Construction/ConstructionSystem.cs index edd3aeee5f..116a4eee8e 100644 --- a/Content.Server/Construction/ConstructionSystem.cs +++ b/Content.Server/Construction/ConstructionSystem.cs @@ -21,7 +21,7 @@ namespace Content.Server.Construction /// The server-side implementation of the construction system, which is used for constructing entities in game. /// [UsedImplicitly] - public partial class ConstructionSystem : SharedConstructionSystem + public sealed partial class ConstructionSystem : SharedConstructionSystem { [Dependency] private readonly ILogManager _logManager = default!; [Dependency] private readonly IPrototypeManager _prototypeManager = default!; diff --git a/Content.Server/Containers/EmptyOnMachineDeconstructComponent.cs b/Content.Server/Containers/EmptyOnMachineDeconstructComponent.cs index 7075b8323f..93e892813c 100644 --- a/Content.Server/Containers/EmptyOnMachineDeconstructComponent.cs +++ b/Content.Server/Containers/EmptyOnMachineDeconstructComponent.cs @@ -11,7 +11,7 @@ namespace Content.Server.Containers /// Empties a list of containers when the machine is deconstructed via MachineDeconstructedEvent. /// [RegisterComponent] - public class EmptyOnMachineDeconstructComponent : Component + public sealed class EmptyOnMachineDeconstructComponent : Component { [ViewVariables] [DataField("containers")] diff --git a/Content.Server/Containers/EmptyOnMachineDeconstructSystem.cs b/Content.Server/Containers/EmptyOnMachineDeconstructSystem.cs index 7e89288f47..1602d7afa6 100644 --- a/Content.Server/Containers/EmptyOnMachineDeconstructSystem.cs +++ b/Content.Server/Containers/EmptyOnMachineDeconstructSystem.cs @@ -11,7 +11,7 @@ namespace Content.Server.Containers /// Implements functionality of EmptyOnMachineDeconstructComponent. /// [UsedImplicitly] - public class EmptyOnMachineDeconstructSystem : EntitySystem + public sealed class EmptyOnMachineDeconstructSystem : EntitySystem { public override void Initialize() { diff --git a/Content.Server/Conveyor/ConveyorComponent.cs b/Content.Server/Conveyor/ConveyorComponent.cs index 9ddf992d0d..12ee830c72 100644 --- a/Content.Server/Conveyor/ConveyorComponent.cs +++ b/Content.Server/Conveyor/ConveyorComponent.cs @@ -9,7 +9,7 @@ namespace Content.Server.Conveyor { [RegisterComponent] [Friend(typeof(ConveyorSystem))] - public class ConveyorComponent : Component + public sealed class ConveyorComponent : Component { /// /// The angle to move entities by in relation to the owner's rotation. diff --git a/Content.Server/Conveyor/ConveyorSystem.cs b/Content.Server/Conveyor/ConveyorSystem.cs index f4f586fed2..a1cdf8c7b8 100644 --- a/Content.Server/Conveyor/ConveyorSystem.cs +++ b/Content.Server/Conveyor/ConveyorSystem.cs @@ -18,7 +18,7 @@ using Robust.Shared.Physics; namespace Content.Server.Conveyor { - public class ConveyorSystem : EntitySystem + public sealed class ConveyorSystem : EntitySystem { [Dependency] private StunSystem _stunSystem = default!; diff --git a/Content.Server/Cooldown/ItemCooldownSystem.cs b/Content.Server/Cooldown/ItemCooldownSystem.cs index 55a91aae7a..c966cbdd68 100644 --- a/Content.Server/Cooldown/ItemCooldownSystem.cs +++ b/Content.Server/Cooldown/ItemCooldownSystem.cs @@ -4,7 +4,7 @@ using Robust.Shared.GameObjects; namespace Content.Server.Cooldown { - public class ItemCooldownSystem : EntitySystem + public sealed class ItemCooldownSystem : EntitySystem { public override void Initialize() { @@ -20,7 +20,7 @@ namespace Content.Server.Cooldown } } - public class RefreshItemCooldownEvent : EntityEventArgs + public sealed class RefreshItemCooldownEvent : EntityEventArgs { public TimeSpan LastAttackTime { get; } public TimeSpan CooldownEnd { get; } diff --git a/Content.Server/Cuffs/Components/CuffableComponent.cs b/Content.Server/Cuffs/Components/CuffableComponent.cs index 740985ae73..c0d958701f 100644 --- a/Content.Server/Cuffs/Components/CuffableComponent.cs +++ b/Content.Server/Cuffs/Components/CuffableComponent.cs @@ -22,7 +22,7 @@ namespace Content.Server.Cuffs.Components { [RegisterComponent] [ComponentReference(typeof(SharedCuffableComponent))] - public class CuffableComponent : SharedCuffableComponent + public sealed class CuffableComponent : SharedCuffableComponent { [Dependency] private readonly IEntityManager _entMan = default!; diff --git a/Content.Server/Cuffs/Components/HandcuffComponent.cs b/Content.Server/Cuffs/Components/HandcuffComponent.cs index 51637946d6..0d4b2b5687 100644 --- a/Content.Server/Cuffs/Components/HandcuffComponent.cs +++ b/Content.Server/Cuffs/Components/HandcuffComponent.cs @@ -22,7 +22,7 @@ namespace Content.Server.Cuffs.Components { [RegisterComponent] [ComponentReference(typeof(SharedHandcuffComponent))] - public class HandcuffComponent : SharedHandcuffComponent, IAfterInteract + public sealed class HandcuffComponent : SharedHandcuffComponent, IAfterInteract { [Dependency] private readonly IEntityManager _entities = default!; diff --git a/Content.Server/Cuffs/CuffableSystem.cs b/Content.Server/Cuffs/CuffableSystem.cs index 4953e09747..6a732927a8 100644 --- a/Content.Server/Cuffs/CuffableSystem.cs +++ b/Content.Server/Cuffs/CuffableSystem.cs @@ -131,7 +131,7 @@ namespace Content.Server.Cuffs /// Event fired on the User when the User attempts to cuff the Target. /// Should generate popups on the User. /// - public class UncuffAttemptEvent : CancellableEntityEventArgs + public sealed class UncuffAttemptEvent : CancellableEntityEventArgs { public readonly EntityUid User; public readonly EntityUid Target; diff --git a/Content.Server/Damage/Commands/GodModeCommand.cs b/Content.Server/Damage/Commands/GodModeCommand.cs index 1d79d7c20c..9ec62575e6 100644 --- a/Content.Server/Damage/Commands/GodModeCommand.cs +++ b/Content.Server/Damage/Commands/GodModeCommand.cs @@ -9,7 +9,7 @@ using Robust.Shared.IoC; namespace Content.Server.Damage.Commands { [AdminCommand(AdminFlags.Admin)] - public class GodModeCommand : IConsoleCommand + public sealed class GodModeCommand : IConsoleCommand { public string Command => "godmode"; public string Description => "Makes your entity or another invulnerable to almost anything. May have irreversible changes."; diff --git a/Content.Server/Damage/Commands/HurtCommand.cs b/Content.Server/Damage/Commands/HurtCommand.cs index c5b1e28525..018c29e67d 100644 --- a/Content.Server/Damage/Commands/HurtCommand.cs +++ b/Content.Server/Damage/Commands/HurtCommand.cs @@ -14,7 +14,7 @@ using Robust.Shared.Prototypes; namespace Content.Server.Damage.Commands { [AdminCommand(AdminFlags.Fun)] - class HurtCommand : IConsoleCommand + sealed class HurtCommand : IConsoleCommand { public string Command => "hurt"; public string Description => "Ouch"; diff --git a/Content.Server/Damage/Components/DamageOnToolInteractComponent.cs b/Content.Server/Damage/Components/DamageOnToolInteractComponent.cs index 5178eb3499..ee0d4f49b5 100644 --- a/Content.Server/Damage/Components/DamageOnToolInteractComponent.cs +++ b/Content.Server/Damage/Components/DamageOnToolInteractComponent.cs @@ -9,7 +9,7 @@ using Robust.Shared.ViewVariables; namespace Content.Server.Damage.Components { [RegisterComponent] - public class DamageOnToolInteractComponent : Component + public sealed class DamageOnToolInteractComponent : Component { [DataField("tools")] public PrototypeFlags Tools { get; } = new (); diff --git a/Content.Server/Damage/Components/DamageOtherOnHitComponent.cs b/Content.Server/Damage/Components/DamageOtherOnHitComponent.cs index c1b1e652c0..82766a47d8 100644 --- a/Content.Server/Damage/Components/DamageOtherOnHitComponent.cs +++ b/Content.Server/Damage/Components/DamageOtherOnHitComponent.cs @@ -9,7 +9,7 @@ namespace Content.Server.Damage.Components { [Friend(typeof(DamageOtherOnHitSystem))] [RegisterComponent] - public class DamageOtherOnHitComponent : Component + public sealed class DamageOtherOnHitComponent : Component { [DataField("ignoreResistances")] [ViewVariables(VVAccess.ReadWrite)] diff --git a/Content.Server/Damage/Components/ExaminableDamageComponent.cs b/Content.Server/Damage/Components/ExaminableDamageComponent.cs index cdb6421c4e..0657732437 100644 --- a/Content.Server/Damage/Components/ExaminableDamageComponent.cs +++ b/Content.Server/Damage/Components/ExaminableDamageComponent.cs @@ -9,7 +9,7 @@ namespace Content.Server.Damage.Components; /// This component shows entity damage severity when it is examined by player. /// [RegisterComponent] -public class ExaminableDamageComponent : Component +public sealed class ExaminableDamageComponent : Component { [DataField("messages", required: true, customTypeSerializer:typeof(PrototypeIdSerializer))] public string? MessagesProtoId; diff --git a/Content.Server/Damage/Systems/DamageOnToolInteractSystem.cs b/Content.Server/Damage/Systems/DamageOnToolInteractSystem.cs index 002404c6ba..551c58f44c 100644 --- a/Content.Server/Damage/Systems/DamageOnToolInteractSystem.cs +++ b/Content.Server/Damage/Systems/DamageOnToolInteractSystem.cs @@ -10,7 +10,7 @@ using Robust.Shared.IoC; namespace Content.Server.Damage.Systems { - public class DamageOnToolInteractSystem : EntitySystem + public sealed class DamageOnToolInteractSystem : EntitySystem { [Dependency] private readonly DamageableSystem _damageableSystem = default!; [Dependency] private readonly AdminLogSystem _logSystem = default!; diff --git a/Content.Server/Damage/Systems/DamageOtherOnHitSystem.cs b/Content.Server/Damage/Systems/DamageOtherOnHitSystem.cs index 58b6286af4..7dbf9a0d90 100644 --- a/Content.Server/Damage/Systems/DamageOtherOnHitSystem.cs +++ b/Content.Server/Damage/Systems/DamageOtherOnHitSystem.cs @@ -7,7 +7,7 @@ using Content.Shared.Throwing; namespace Content.Server.Damage.Systems { - public class DamageOtherOnHitSystem : EntitySystem + public sealed class DamageOtherOnHitSystem : EntitySystem { [Dependency] private readonly DamageableSystem _damageableSystem = default!; [Dependency] private readonly AdminLogSystem _logSystem = default!; diff --git a/Content.Server/Damage/Systems/ExaminableDamageSystem.cs b/Content.Server/Damage/Systems/ExaminableDamageSystem.cs index 8916c12f82..d9fc0dcc06 100644 --- a/Content.Server/Damage/Systems/ExaminableDamageSystem.cs +++ b/Content.Server/Damage/Systems/ExaminableDamageSystem.cs @@ -13,7 +13,7 @@ using Robust.Shared.Prototypes; namespace Content.Server.Damage.Systems; -public class ExaminableDamageSystem : EntitySystem +public sealed class ExaminableDamageSystem : EntitySystem { [Dependency] private readonly IPrototypeManager _prototype = default!; diff --git a/Content.Server/Damage/Systems/GodmodeSystem.cs b/Content.Server/Damage/Systems/GodmodeSystem.cs index 8943b5a5ec..b0d55a59a9 100644 --- a/Content.Server/Damage/Systems/GodmodeSystem.cs +++ b/Content.Server/Damage/Systems/GodmodeSystem.cs @@ -9,7 +9,7 @@ using Robust.Shared.IoC; namespace Content.Server.Damage.Systems { [UsedImplicitly] - public class GodmodeSystem : EntitySystem + public sealed class GodmodeSystem : EntitySystem { private readonly Dictionary _entities = new(); [Dependency] private readonly DamageableSystem _damageableSystem = default!; @@ -95,7 +95,7 @@ namespace Content.Server.Damage.Systems } } - public class OldEntityInformation + public sealed class OldEntityInformation { public OldEntityInformation(EntityUid entity, IEntityManager entityManager) { diff --git a/Content.Server/Decals/Commands/EditDecalCommand.cs b/Content.Server/Decals/Commands/EditDecalCommand.cs index af01b4d79b..8488e9cfad 100644 --- a/Content.Server/Decals/Commands/EditDecalCommand.cs +++ b/Content.Server/Decals/Commands/EditDecalCommand.cs @@ -9,7 +9,7 @@ using Robust.Shared.Maths; namespace Content.Server.Decals; [AdminCommand(AdminFlags.Mapping)] -public class EditDecalCommand : IConsoleCommand +public sealed class EditDecalCommand : IConsoleCommand { public string Command => "editdecal"; public string Description => "Edits a decal."; diff --git a/Content.Server/Decals/Commands/RemoveDecalCommand.cs b/Content.Server/Decals/Commands/RemoveDecalCommand.cs index a2bf370f34..22274819a0 100644 --- a/Content.Server/Decals/Commands/RemoveDecalCommand.cs +++ b/Content.Server/Decals/Commands/RemoveDecalCommand.cs @@ -8,7 +8,7 @@ using Robust.Shared.Map; namespace Content.Server.Decals.Commands { [AdminCommand(AdminFlags.Mapping)] - public class RemoveDecalCommand : IConsoleCommand + public sealed class RemoveDecalCommand : IConsoleCommand { public string Command => "rmdecal"; public string Description => "removes a decal"; diff --git a/Content.Server/Destructible/DestructibleComponent.cs b/Content.Server/Destructible/DestructibleComponent.cs index 7e047b30b4..7630274b7f 100644 --- a/Content.Server/Destructible/DestructibleComponent.cs +++ b/Content.Server/Destructible/DestructibleComponent.cs @@ -12,7 +12,7 @@ namespace Content.Server.Destructible /// and triggers thresholds when reached. /// [RegisterComponent] - public class DestructibleComponent : Component + public sealed class DestructibleComponent : Component { [ViewVariables] [DataField("thresholds")] diff --git a/Content.Server/Destructible/DestructibleSystem.cs b/Content.Server/Destructible/DestructibleSystem.cs index 53b9da9132..e67c405d2b 100644 --- a/Content.Server/Destructible/DestructibleSystem.cs +++ b/Content.Server/Destructible/DestructibleSystem.cs @@ -12,7 +12,7 @@ using Robust.Shared.Random; namespace Content.Server.Destructible { [UsedImplicitly] - public class DestructibleSystem : EntitySystem + public sealed class DestructibleSystem : EntitySystem { [Dependency] public readonly IRobustRandom Random = default!; public new IEntityManager EntityManager => base.EntityManager; @@ -53,7 +53,7 @@ namespace Content.Server.Destructible /// /// Event raised when a is reached. /// - public class DamageThresholdReached : EntityEventArgs + public sealed class DamageThresholdReached : EntityEventArgs { public readonly DestructibleComponent Parent; diff --git a/Content.Server/Destructible/Thresholds/Behaviors/ChangeConstructionNodeBehavior.cs b/Content.Server/Destructible/Thresholds/Behaviors/ChangeConstructionNodeBehavior.cs index 65e255c8d5..01b319ee0e 100644 --- a/Content.Server/Destructible/Thresholds/Behaviors/ChangeConstructionNodeBehavior.cs +++ b/Content.Server/Destructible/Thresholds/Behaviors/ChangeConstructionNodeBehavior.cs @@ -7,7 +7,7 @@ namespace Content.Server.Destructible.Thresholds.Behaviors { [Serializable] [DataDefinition] - public class ChangeConstructionNodeBehavior : IThresholdBehavior + public sealed class ChangeConstructionNodeBehavior : IThresholdBehavior { [DataField("node")] public string Node { get; private set; } = string.Empty; diff --git a/Content.Server/Destructible/Thresholds/Behaviors/DoActsBehavior.cs b/Content.Server/Destructible/Thresholds/Behaviors/DoActsBehavior.cs index c2cf122078..3b545a3c1d 100644 --- a/Content.Server/Destructible/Thresholds/Behaviors/DoActsBehavior.cs +++ b/Content.Server/Destructible/Thresholds/Behaviors/DoActsBehavior.cs @@ -7,7 +7,7 @@ namespace Content.Server.Destructible.Thresholds.Behaviors { [Serializable] [DataDefinition] - public class DoActsBehavior : IThresholdBehavior + public sealed class DoActsBehavior : IThresholdBehavior { /// /// What acts should be triggered upon activation. diff --git a/Content.Server/Destructible/Thresholds/Behaviors/DumpCanisterBehavior.cs b/Content.Server/Destructible/Thresholds/Behaviors/DumpCanisterBehavior.cs index efceda22b3..2335722ddc 100644 --- a/Content.Server/Destructible/Thresholds/Behaviors/DumpCanisterBehavior.cs +++ b/Content.Server/Destructible/Thresholds/Behaviors/DumpCanisterBehavior.cs @@ -7,7 +7,7 @@ namespace Content.Server.Destructible.Thresholds.Behaviors { [Serializable] [DataDefinition] - public class DumpCanisterBehavior : IThresholdBehavior + public sealed class DumpCanisterBehavior : IThresholdBehavior { public void Execute(EntityUid owner, DestructibleSystem system) { diff --git a/Content.Server/Destructible/Thresholds/Behaviors/EmptyAllContainersBehaviour.cs b/Content.Server/Destructible/Thresholds/Behaviors/EmptyAllContainersBehaviour.cs index 2ed21e013c..4be2897fc0 100644 --- a/Content.Server/Destructible/Thresholds/Behaviors/EmptyAllContainersBehaviour.cs +++ b/Content.Server/Destructible/Thresholds/Behaviors/EmptyAllContainersBehaviour.cs @@ -8,7 +8,7 @@ namespace Content.Server.Destructible.Thresholds.Behaviors /// Drop all items from all containers /// [DataDefinition] - public class EmptyAllContainersBehaviour : IThresholdBehavior + public sealed class EmptyAllContainersBehaviour : IThresholdBehavior { public void Execute(EntityUid owner, DestructibleSystem system) { diff --git a/Content.Server/Destructible/Thresholds/Behaviors/ExplodeBehavior.cs b/Content.Server/Destructible/Thresholds/Behaviors/ExplodeBehavior.cs index 076da13db7..c850aebc7b 100644 --- a/Content.Server/Destructible/Thresholds/Behaviors/ExplodeBehavior.cs +++ b/Content.Server/Destructible/Thresholds/Behaviors/ExplodeBehavior.cs @@ -10,7 +10,7 @@ namespace Content.Server.Destructible.Thresholds.Behaviors /// [UsedImplicitly] [DataDefinition] - public class ExplodeBehavior : IThresholdBehavior + public sealed class ExplodeBehavior : IThresholdBehavior { public void Execute(EntityUid owner, DestructibleSystem system) { diff --git a/Content.Server/Destructible/Thresholds/Behaviors/GibBehavior.cs b/Content.Server/Destructible/Thresholds/Behaviors/GibBehavior.cs index d4fd220ada..284a39214a 100644 --- a/Content.Server/Destructible/Thresholds/Behaviors/GibBehavior.cs +++ b/Content.Server/Destructible/Thresholds/Behaviors/GibBehavior.cs @@ -7,7 +7,7 @@ namespace Content.Server.Destructible.Thresholds.Behaviors { [UsedImplicitly] [DataDefinition] - public class GibBehavior : IThresholdBehavior + public sealed class GibBehavior : IThresholdBehavior { [DataField("recursive")] private bool _recursive = true; diff --git a/Content.Server/Destructible/Thresholds/Behaviors/PlaySoundBehavior.cs b/Content.Server/Destructible/Thresholds/Behaviors/PlaySoundBehavior.cs index c1285de14c..7a12cc3b0c 100644 --- a/Content.Server/Destructible/Thresholds/Behaviors/PlaySoundBehavior.cs +++ b/Content.Server/Destructible/Thresholds/Behaviors/PlaySoundBehavior.cs @@ -10,7 +10,7 @@ namespace Content.Server.Destructible.Thresholds.Behaviors { [Serializable] [DataDefinition] - public class PlaySoundBehavior : IThresholdBehavior + public sealed class PlaySoundBehavior : IThresholdBehavior { /// /// Sound played upon destruction. diff --git a/Content.Server/Destructible/Thresholds/Behaviors/SpawnEntitiesBehavior.cs b/Content.Server/Destructible/Thresholds/Behaviors/SpawnEntitiesBehavior.cs index 1af5e80199..df0a295536 100644 --- a/Content.Server/Destructible/Thresholds/Behaviors/SpawnEntitiesBehavior.cs +++ b/Content.Server/Destructible/Thresholds/Behaviors/SpawnEntitiesBehavior.cs @@ -11,7 +11,7 @@ namespace Content.Server.Destructible.Thresholds.Behaviors { [Serializable] [DataDefinition] - public class SpawnEntitiesBehavior : IThresholdBehavior + public sealed class SpawnEntitiesBehavior : IThresholdBehavior { /// /// Entities spawned on reaching this threshold, from a min to a max. diff --git a/Content.Server/Destructible/Thresholds/Behaviors/SpillBehavior.cs b/Content.Server/Destructible/Thresholds/Behaviors/SpillBehavior.cs index b21e0f6654..68aa79ee3f 100644 --- a/Content.Server/Destructible/Thresholds/Behaviors/SpillBehavior.cs +++ b/Content.Server/Destructible/Thresholds/Behaviors/SpillBehavior.cs @@ -9,7 +9,7 @@ namespace Content.Server.Destructible.Thresholds.Behaviors { [UsedImplicitly] [DataDefinition] - public class SpillBehavior : IThresholdBehavior + public sealed class SpillBehavior : IThresholdBehavior { [DataField("solution")] public string? Solution; diff --git a/Content.Server/Destructible/Thresholds/DamageThreshold.cs b/Content.Server/Destructible/Thresholds/DamageThreshold.cs index 25ffcf26e3..8b3053d8ec 100644 --- a/Content.Server/Destructible/Thresholds/DamageThreshold.cs +++ b/Content.Server/Destructible/Thresholds/DamageThreshold.cs @@ -9,7 +9,7 @@ using Robust.Shared.ViewVariables; namespace Content.Server.Destructible.Thresholds { [DataDefinition] - public class DamageThreshold + public sealed class DamageThreshold { [DataField("behaviors")] private List _behaviors = new(); diff --git a/Content.Server/Destructible/Thresholds/Triggers/AndTrigger.cs b/Content.Server/Destructible/Thresholds/Triggers/AndTrigger.cs index 13113d2448..1b1c05faa0 100644 --- a/Content.Server/Destructible/Thresholds/Triggers/AndTrigger.cs +++ b/Content.Server/Destructible/Thresholds/Triggers/AndTrigger.cs @@ -10,7 +10,7 @@ namespace Content.Server.Destructible.Thresholds.Triggers /// [Serializable] [DataDefinition] - public class AndTrigger : IThresholdTrigger + public sealed class AndTrigger : IThresholdTrigger { [DataField("triggers")] public List Triggers { get; set; } = new(); diff --git a/Content.Server/Destructible/Thresholds/Triggers/DamageGroupTrigger.cs b/Content.Server/Destructible/Thresholds/Triggers/DamageGroupTrigger.cs index f8a46179cf..b693cae4fe 100644 --- a/Content.Server/Destructible/Thresholds/Triggers/DamageGroupTrigger.cs +++ b/Content.Server/Destructible/Thresholds/Triggers/DamageGroupTrigger.cs @@ -12,7 +12,7 @@ namespace Content.Server.Destructible.Thresholds.Triggers /// [Serializable] [DataDefinition] - public class DamageGroupTrigger : IThresholdTrigger + public sealed class DamageGroupTrigger : IThresholdTrigger { [DataField("damageGroup", required: true, customTypeSerializer: typeof(PrototypeIdSerializer))] public string DamageGroup { get; set; } = default!; diff --git a/Content.Server/Destructible/Thresholds/Triggers/DamageTrigger.cs b/Content.Server/Destructible/Thresholds/Triggers/DamageTrigger.cs index 257743ee05..b95721b4ee 100644 --- a/Content.Server/Destructible/Thresholds/Triggers/DamageTrigger.cs +++ b/Content.Server/Destructible/Thresholds/Triggers/DamageTrigger.cs @@ -10,7 +10,7 @@ namespace Content.Server.Destructible.Thresholds.Triggers /// [Serializable] [DataDefinition] - public class DamageTrigger : IThresholdTrigger + public sealed class DamageTrigger : IThresholdTrigger { /// /// The amount of damage at which this threshold will trigger. diff --git a/Content.Server/Destructible/Thresholds/Triggers/DamageTypeTrigger.cs b/Content.Server/Destructible/Thresholds/Triggers/DamageTypeTrigger.cs index 20de7224cd..1d6843fad2 100644 --- a/Content.Server/Destructible/Thresholds/Triggers/DamageTypeTrigger.cs +++ b/Content.Server/Destructible/Thresholds/Triggers/DamageTypeTrigger.cs @@ -12,7 +12,7 @@ namespace Content.Server.Destructible.Thresholds.Triggers /// [Serializable] [DataDefinition] - public class DamageTypeTrigger : IThresholdTrigger + public sealed class DamageTypeTrigger : IThresholdTrigger { [DataField("damageType", required:true, customTypeSerializer: typeof(PrototypeIdSerializer))] public string DamageType { get; set; } = default!; diff --git a/Content.Server/Destructible/Thresholds/Triggers/OrTrigger.cs b/Content.Server/Destructible/Thresholds/Triggers/OrTrigger.cs index 39cf195083..3ae4fead5e 100644 --- a/Content.Server/Destructible/Thresholds/Triggers/OrTrigger.cs +++ b/Content.Server/Destructible/Thresholds/Triggers/OrTrigger.cs @@ -10,7 +10,7 @@ namespace Content.Server.Destructible.Thresholds.Triggers /// [Serializable] [DataDefinition] - public class OrTrigger : IThresholdTrigger + public sealed class OrTrigger : IThresholdTrigger { [DataField("triggers")] public List Triggers { get; } = new(); diff --git a/Content.Server/DeviceNetwork/Components/ApcNetworkComponent.cs b/Content.Server/DeviceNetwork/Components/ApcNetworkComponent.cs index 68ffcc69a9..3813d6016a 100644 --- a/Content.Server/DeviceNetwork/Components/ApcNetworkComponent.cs +++ b/Content.Server/DeviceNetwork/Components/ApcNetworkComponent.cs @@ -9,7 +9,7 @@ namespace Content.Server.DeviceNetwork.Components [RegisterComponent] [Friend(typeof(ApcNetworkSystem))] [ComponentProtoName("ApcNetworkConnection")] - public class ApcNetworkComponent : Component + public sealed class ApcNetworkComponent : Component { /// /// The node Group the ApcNetworkConnection is connected to diff --git a/Content.Server/DeviceNetwork/Components/DeviceNetworkComponent.cs b/Content.Server/DeviceNetwork/Components/DeviceNetworkComponent.cs index 6d3bb8df4f..9e8f6f0f07 100644 --- a/Content.Server/DeviceNetwork/Components/DeviceNetworkComponent.cs +++ b/Content.Server/DeviceNetwork/Components/DeviceNetworkComponent.cs @@ -7,7 +7,7 @@ namespace Content.Server.DeviceNetwork.Components { [RegisterComponent] [ComponentProtoName("DeviceNetworkComponent")] - public class DeviceNetworkComponent : Component + public sealed class DeviceNetworkComponent : Component { /// /// Valid device network NetIDs. diff --git a/Content.Server/DeviceNetwork/Components/Devices/ApcNetSwitchComponent.cs b/Content.Server/DeviceNetwork/Components/Devices/ApcNetSwitchComponent.cs index 417a1c46f9..5d368f5eff 100644 --- a/Content.Server/DeviceNetwork/Components/Devices/ApcNetSwitchComponent.cs +++ b/Content.Server/DeviceNetwork/Components/Devices/ApcNetSwitchComponent.cs @@ -7,7 +7,7 @@ namespace Content.Server.DeviceNetwork.Components.Devices { [RegisterComponent] [Friend(typeof(ApcNetSwitchSystem))] - public class ApcNetSwitchComponent : Component + public sealed class ApcNetSwitchComponent : Component { [ViewVariables] public bool State; } diff --git a/Content.Server/DeviceNetwork/Components/WiredNetworkComponent.cs b/Content.Server/DeviceNetwork/Components/WiredNetworkComponent.cs index 833968ab92..bf355a596f 100644 --- a/Content.Server/DeviceNetwork/Components/WiredNetworkComponent.cs +++ b/Content.Server/DeviceNetwork/Components/WiredNetworkComponent.cs @@ -4,7 +4,7 @@ namespace Content.Server.DeviceNetwork.Components { [RegisterComponent] [ComponentProtoName("WiredNetworkConnection")] - public class WiredNetworkComponent : Component + public sealed class WiredNetworkComponent : Component { } } diff --git a/Content.Server/DeviceNetwork/Components/WirelessNetworkComponent.cs b/Content.Server/DeviceNetwork/Components/WirelessNetworkComponent.cs index 35860fb261..3d29d511ae 100644 --- a/Content.Server/DeviceNetwork/Components/WirelessNetworkComponent.cs +++ b/Content.Server/DeviceNetwork/Components/WirelessNetworkComponent.cs @@ -8,7 +8,7 @@ namespace Content.Server.DeviceNetwork.Components /// [RegisterComponent] [ComponentProtoName("WirelessNetworkConnection")] - public class WirelessNetworkComponent : Component + public sealed class WirelessNetworkComponent : Component { [DataField("range")] public int Range { get; set; } diff --git a/Content.Server/DeviceNetwork/NetworkPayload.cs b/Content.Server/DeviceNetwork/NetworkPayload.cs index 79084935c7..2251d91750 100644 --- a/Content.Server/DeviceNetwork/NetworkPayload.cs +++ b/Content.Server/DeviceNetwork/NetworkPayload.cs @@ -5,7 +5,7 @@ using System.Diagnostics.CodeAnalysis; namespace Content.Server.DeviceNetwork { - public class NetworkPayload : Dictionary + public sealed class NetworkPayload : Dictionary { /// /// Tries to get a value from the payload and checks if that value is of type T. diff --git a/Content.Server/DeviceNetwork/Systems/ApcNetworkSystem.cs b/Content.Server/DeviceNetwork/Systems/ApcNetworkSystem.cs index ee8278fbe1..edb184d5cf 100644 --- a/Content.Server/DeviceNetwork/Systems/ApcNetworkSystem.cs +++ b/Content.Server/DeviceNetwork/Systems/ApcNetworkSystem.cs @@ -9,7 +9,7 @@ using Robust.Shared.IoC; namespace Content.Server.DeviceNetwork.Systems { [UsedImplicitly] - public class ApcNetworkSystem : EntitySystem + public sealed class ApcNetworkSystem : EntitySystem { public override void Initialize() { diff --git a/Content.Server/DeviceNetwork/Systems/DeviceNetworkSystem.cs b/Content.Server/DeviceNetwork/Systems/DeviceNetworkSystem.cs index 3826029ad6..7d09c57a91 100644 --- a/Content.Server/DeviceNetwork/Systems/DeviceNetworkSystem.cs +++ b/Content.Server/DeviceNetwork/Systems/DeviceNetworkSystem.cs @@ -13,7 +13,7 @@ namespace Content.Server.DeviceNetwork.Systems /// Device networking allows machines and devices to communicate with each other while adhering to restrictions like range or being connected to the same powernet. /// [UsedImplicitly] - public class DeviceNetworkSystem : EntitySystem + public sealed class DeviceNetworkSystem : EntitySystem { [Dependency] private readonly IRobustRandom _random = default!; @@ -236,7 +236,7 @@ namespace Content.Server.DeviceNetwork.Systems /// Event raised before a device network packet is send. /// Subscribed to by other systems to prevent the packet from being sent. /// - public class BeforePacketSentEvent : CancellableEntityEventArgs + public sealed class BeforePacketSentEvent : CancellableEntityEventArgs { /// /// The EntityUid of the entity the packet was sent from. @@ -252,7 +252,7 @@ namespace Content.Server.DeviceNetwork.Systems /// /// Event raised when a device network packet gets sent. /// - public class PacketSentEvent : EntityEventArgs + public sealed class PacketSentEvent : EntityEventArgs { /// /// The frequency the packet is sent on. diff --git a/Content.Server/DeviceNetwork/Systems/WiredNetworkSystem.cs b/Content.Server/DeviceNetwork/Systems/WiredNetworkSystem.cs index 6c34bafb39..5f9a75c766 100644 --- a/Content.Server/DeviceNetwork/Systems/WiredNetworkSystem.cs +++ b/Content.Server/DeviceNetwork/Systems/WiredNetworkSystem.cs @@ -5,7 +5,7 @@ using Robust.Shared.GameObjects; namespace Content.Server.DeviceNetwork.Systems { [UsedImplicitly] - public class WiredNetworkSystem : EntitySystem + public sealed class WiredNetworkSystem : EntitySystem { public override void Initialize() { diff --git a/Content.Server/DeviceNetwork/Systems/WirelessNetworkSystem.cs b/Content.Server/DeviceNetwork/Systems/WirelessNetworkSystem.cs index d85bff0736..5f1f52e9fc 100644 --- a/Content.Server/DeviceNetwork/Systems/WirelessNetworkSystem.cs +++ b/Content.Server/DeviceNetwork/Systems/WirelessNetworkSystem.cs @@ -5,7 +5,7 @@ using Robust.Shared.GameObjects; namespace Content.Server.DeviceNetwork.Systems { [UsedImplicitly] - public class WirelessNetworkSystem : EntitySystem + public sealed class WirelessNetworkSystem : EntitySystem { public override void Initialize() { diff --git a/Content.Server/Dice/DiceComponent.cs b/Content.Server/Dice/DiceComponent.cs index aa06ea2769..20cbdd5ea5 100644 --- a/Content.Server/Dice/DiceComponent.cs +++ b/Content.Server/Dice/DiceComponent.cs @@ -7,7 +7,7 @@ using Robust.Shared.ViewVariables; namespace Content.Server.Dice { [RegisterComponent, Friend(typeof(DiceSystem))] - public class DiceComponent : Component + public sealed class DiceComponent : Component { [ViewVariables] [DataField("sound")] diff --git a/Content.Server/Dice/DiceSystem.cs b/Content.Server/Dice/DiceSystem.cs index f1df0bd4a5..e373c4f6fc 100644 --- a/Content.Server/Dice/DiceSystem.cs +++ b/Content.Server/Dice/DiceSystem.cs @@ -16,7 +16,7 @@ using Robust.Shared.Random; namespace Content.Server.Dice { [UsedImplicitly] - public class DiceSystem : EntitySystem + public sealed class DiceSystem : EntitySystem { [Dependency] private readonly IRobustRandom _random = default!; diff --git a/Content.Server/Disposal/Tube/Components/DisposalBendComponent.cs b/Content.Server/Disposal/Tube/Components/DisposalBendComponent.cs index 83f677b533..cf76000381 100644 --- a/Content.Server/Disposal/Tube/Components/DisposalBendComponent.cs +++ b/Content.Server/Disposal/Tube/Components/DisposalBendComponent.cs @@ -8,7 +8,7 @@ namespace Content.Server.Disposal.Tube.Components { [RegisterComponent] [ComponentReference(typeof(IDisposalTubeComponent))] - public class DisposalBendComponent : DisposalTubeComponent + public sealed class DisposalBendComponent : DisposalTubeComponent { [DataField("sideDegrees")] private int _sideDegrees = -90; diff --git a/Content.Server/Disposal/Tube/Components/DisposalEntryComponent.cs b/Content.Server/Disposal/Tube/Components/DisposalEntryComponent.cs index 75090f0f98..f5be6eaa95 100644 --- a/Content.Server/Disposal/Tube/Components/DisposalEntryComponent.cs +++ b/Content.Server/Disposal/Tube/Components/DisposalEntryComponent.cs @@ -13,7 +13,7 @@ namespace Content.Server.Disposal.Tube.Components { [RegisterComponent] [ComponentReference(typeof(IDisposalTubeComponent))] - public class DisposalEntryComponent : DisposalTubeComponent + public sealed class DisposalEntryComponent : DisposalTubeComponent { [Dependency] private readonly IEntityManager _entMan = default!; diff --git a/Content.Server/Disposal/Tube/Components/DisposalJunctionComponent.cs b/Content.Server/Disposal/Tube/Components/DisposalJunctionComponent.cs index 8663d7721e..d5bef6524a 100644 --- a/Content.Server/Disposal/Tube/Components/DisposalJunctionComponent.cs +++ b/Content.Server/Disposal/Tube/Components/DisposalJunctionComponent.cs @@ -10,6 +10,7 @@ using Robust.Shared.ViewVariables; namespace Content.Server.Disposal.Tube.Components { + [Virtual] [RegisterComponent] [ComponentReference(typeof(IDisposalTubeComponent))] public class DisposalJunctionComponent : DisposalTubeComponent diff --git a/Content.Server/Disposal/Tube/Components/DisposalRouterComponent.cs b/Content.Server/Disposal/Tube/Components/DisposalRouterComponent.cs index 5fc44224d7..285e38c617 100644 --- a/Content.Server/Disposal/Tube/Components/DisposalRouterComponent.cs +++ b/Content.Server/Disposal/Tube/Components/DisposalRouterComponent.cs @@ -27,7 +27,7 @@ namespace Content.Server.Disposal.Tube.Components [RegisterComponent] [ComponentReference(typeof(IActivate))] [ComponentReference(typeof(IDisposalTubeComponent))] - public class DisposalRouterComponent : DisposalJunctionComponent, IActivate + public sealed class DisposalRouterComponent : DisposalJunctionComponent, IActivate { [Dependency] private readonly IEntityManager _entMan = default!; diff --git a/Content.Server/Disposal/Tube/Components/DisposalTaggerComponent.cs b/Content.Server/Disposal/Tube/Components/DisposalTaggerComponent.cs index 8f616217a3..3f4b60aea0 100644 --- a/Content.Server/Disposal/Tube/Components/DisposalTaggerComponent.cs +++ b/Content.Server/Disposal/Tube/Components/DisposalTaggerComponent.cs @@ -24,7 +24,7 @@ namespace Content.Server.Disposal.Tube.Components [RegisterComponent] [ComponentReference(typeof(IActivate))] [ComponentReference(typeof(IDisposalTubeComponent))] - public class DisposalTaggerComponent : DisposalTransitComponent, IActivate + public sealed class DisposalTaggerComponent : DisposalTransitComponent, IActivate { [Dependency] private readonly IEntityManager _entMan = default!; diff --git a/Content.Server/Disposal/Tube/Components/DisposalTransitComponent.cs b/Content.Server/Disposal/Tube/Components/DisposalTransitComponent.cs index 9e8cdc6a1b..f725dd0600 100644 --- a/Content.Server/Disposal/Tube/Components/DisposalTransitComponent.cs +++ b/Content.Server/Disposal/Tube/Components/DisposalTransitComponent.cs @@ -9,6 +9,7 @@ namespace Content.Server.Disposal.Tube.Components // TODO: Different types of tubes eject in random direction with no exit point [RegisterComponent] [ComponentReference(typeof(IDisposalTubeComponent))] + [Virtual] public class DisposalTransitComponent : DisposalTubeComponent { protected override Direction[] ConnectableDirections() diff --git a/Content.Server/Disposal/TubeConnectionsCommand.cs b/Content.Server/Disposal/TubeConnectionsCommand.cs index 0a7d023c36..5679799293 100644 --- a/Content.Server/Disposal/TubeConnectionsCommand.cs +++ b/Content.Server/Disposal/TubeConnectionsCommand.cs @@ -10,7 +10,7 @@ using Robust.Shared.Localization; namespace Content.Server.Disposal { [AdminCommand(AdminFlags.Debug)] - public class TubeConnectionsCommand : IConsoleCommand + public sealed class TubeConnectionsCommand : IConsoleCommand { public string Command => "tubeconnections"; public string Description => Loc.GetString("tube-connections-command-description"); diff --git a/Content.Server/Disposal/Unit/Components/DisposalHolderComponent.cs b/Content.Server/Disposal/Unit/Components/DisposalHolderComponent.cs index cdfcbbd6c2..c9257aef0e 100644 --- a/Content.Server/Disposal/Unit/Components/DisposalHolderComponent.cs +++ b/Content.Server/Disposal/Unit/Components/DisposalHolderComponent.cs @@ -16,7 +16,7 @@ namespace Content.Server.Disposal.Unit.Components { // TODO: Add gas [RegisterComponent] - public class DisposalHolderComponent : Component, IGasMixtureHolder + public sealed class DisposalHolderComponent : Component, IGasMixtureHolder { [Dependency] private readonly IEntityManager _entMan = default!; diff --git a/Content.Server/Disposal/Unit/Components/DisposalUnitComponent.cs b/Content.Server/Disposal/Unit/Components/DisposalUnitComponent.cs index cb94b72041..4fffab058d 100644 --- a/Content.Server/Disposal/Unit/Components/DisposalUnitComponent.cs +++ b/Content.Server/Disposal/Unit/Components/DisposalUnitComponent.cs @@ -15,7 +15,7 @@ namespace Content.Server.Disposal.Unit.Components { [RegisterComponent] [ComponentReference(typeof(SharedDisposalUnitComponent))] - public class DisposalUnitComponent : SharedDisposalUnitComponent, IGasMixtureHolder + public sealed class DisposalUnitComponent : SharedDisposalUnitComponent, IGasMixtureHolder { /// /// Last time that an entity tried to exit this disposal unit. diff --git a/Content.Server/Doors/Components/FirelockComponent.cs b/Content.Server/Doors/Components/FirelockComponent.cs index d739831c8c..62765853ae 100644 --- a/Content.Server/Doors/Components/FirelockComponent.cs +++ b/Content.Server/Doors/Components/FirelockComponent.cs @@ -13,7 +13,7 @@ namespace Content.Server.Doors.Components /// and not being openable on open-hand click. /// [RegisterComponent] - public class FirelockComponent : Component + public sealed class FirelockComponent : Component { [Dependency] private readonly IEntityManager _entMan = default!; diff --git a/Content.Server/Doors/Components/ToggleDoorOnTriggerComponent.cs b/Content.Server/Doors/Components/ToggleDoorOnTriggerComponent.cs index 8d48ca243f..456958dfe1 100644 --- a/Content.Server/Doors/Components/ToggleDoorOnTriggerComponent.cs +++ b/Content.Server/Doors/Components/ToggleDoorOnTriggerComponent.cs @@ -3,7 +3,7 @@ namespace Content.Server.Doors.Components { [RegisterComponent] - public class ToggleDoorOnTriggerComponent : Component + public sealed class ToggleDoorOnTriggerComponent : Component { } } diff --git a/Content.Server/Doors/Systems/DoorSystem.cs b/Content.Server/Doors/Systems/DoorSystem.cs index 2f56cd2655..379e3dfe22 100644 --- a/Content.Server/Doors/Systems/DoorSystem.cs +++ b/Content.Server/Doors/Systems/DoorSystem.cs @@ -153,7 +153,7 @@ public sealed class DoorSystem : SharedDoorSystem if (canEv.Cancelled) // mark handled, as airlock component will cancel after generating a pop-up & you don't want to pry a tile // under a windoor. - return true; + return true; var modEv = new DoorGetPryTimeModifierEvent(); RaiseLocalEvent(target, modEv, false); @@ -305,7 +305,7 @@ public sealed class DoorSystem : SharedDoorSystem } } -public class PryFinishedEvent : EntityEventArgs { } -public class PryCancelledEvent : EntityEventArgs { } -public class WeldFinishedEvent : EntityEventArgs { } -public class WeldCancelledEvent : EntityEventArgs { } +public sealed class PryFinishedEvent : EntityEventArgs { } +public sealed class PryCancelledEvent : EntityEventArgs { } +public sealed class WeldFinishedEvent : EntityEventArgs { } +public sealed class WeldCancelledEvent : EntityEventArgs { } diff --git a/Content.Server/Doors/Systems/FirelockSystem.cs b/Content.Server/Doors/Systems/FirelockSystem.cs index 0ce2a09992..8ac6f6840e 100644 --- a/Content.Server/Doors/Systems/FirelockSystem.cs +++ b/Content.Server/Doors/Systems/FirelockSystem.cs @@ -12,7 +12,7 @@ using Robust.Shared.Localization; namespace Content.Server.Doors.Systems { - public class FirelockSystem : EntitySystem + public sealed class FirelockSystem : EntitySystem { [Dependency] private readonly SharedDoorSystem _doorSystem = default!; diff --git a/Content.Server/Electrocution/Components/ElectrifiedComponent.cs b/Content.Server/Electrocution/Components/ElectrifiedComponent.cs index 63d8f4cb23..588b6101c7 100644 --- a/Content.Server/Electrocution/Components/ElectrifiedComponent.cs +++ b/Content.Server/Electrocution/Components/ElectrifiedComponent.cs @@ -7,7 +7,7 @@ namespace Content.Server.Electrocution /// Component for things that shock users on touch. /// [RegisterComponent] - public class ElectrifiedComponent : Component + public sealed class ElectrifiedComponent : Component { [DataField("enabled")] public bool Enabled { get; set; } = true; diff --git a/Content.Server/Electrocution/ElectrocuteCommand.cs b/Content.Server/Electrocution/ElectrocuteCommand.cs index 3b753da297..bc2a24375b 100644 --- a/Content.Server/Electrocution/ElectrocuteCommand.cs +++ b/Content.Server/Electrocution/ElectrocuteCommand.cs @@ -10,7 +10,7 @@ using Robust.Shared.Localization; namespace Content.Server.Electrocution { [AdminCommand(AdminFlags.Fun)] - public class ElectrocuteCommand : IConsoleCommand + public sealed class ElectrocuteCommand : IConsoleCommand { public string Command => "electrocute"; public string Description => Loc.GetString("electrocute-command-description"); diff --git a/Content.Server/Electrocution/RandomInsulationComponent.cs b/Content.Server/Electrocution/RandomInsulationComponent.cs index 80132c8411..faedae651b 100644 --- a/Content.Server/Electrocution/RandomInsulationComponent.cs +++ b/Content.Server/Electrocution/RandomInsulationComponent.cs @@ -4,7 +4,7 @@ using Robust.Shared.Serialization.Manager.Attributes; namespace Content.Server.Electrocution { [RegisterComponent] - public class RandomInsulationComponent : Component + public sealed class RandomInsulationComponent : Component { [DataField("list")] public readonly float[] List = { 0f }; diff --git a/Content.Server/Engineering/Components/DisassembleOnAltVerbComponent.cs b/Content.Server/Engineering/Components/DisassembleOnAltVerbComponent.cs index 24150c5741..bfaa39dc42 100644 --- a/Content.Server/Engineering/Components/DisassembleOnAltVerbComponent.cs +++ b/Content.Server/Engineering/Components/DisassembleOnAltVerbComponent.cs @@ -8,7 +8,7 @@ using Robust.Shared.ViewVariables; namespace Content.Server.Engineering.Components { [RegisterComponent] - public class DisassembleOnAltVerbComponent : Component + public sealed class DisassembleOnAltVerbComponent : Component { [ViewVariables] [DataField("prototype", customTypeSerializer: typeof(PrototypeIdSerializer))] diff --git a/Content.Server/Engineering/Components/SpawnAfterInteractComponent.cs b/Content.Server/Engineering/Components/SpawnAfterInteractComponent.cs index dcaf3ba44c..1ee553ccb8 100644 --- a/Content.Server/Engineering/Components/SpawnAfterInteractComponent.cs +++ b/Content.Server/Engineering/Components/SpawnAfterInteractComponent.cs @@ -7,7 +7,7 @@ using Robust.Shared.ViewVariables; namespace Content.Server.Engineering.Components { [RegisterComponent] - public class SpawnAfterInteractComponent : Component + public sealed class SpawnAfterInteractComponent : Component { [ViewVariables] [DataField("prototype", customTypeSerializer: typeof(PrototypeIdSerializer))] diff --git a/Content.Server/Engineering/EntitySystems/SpawnAfterInteractSystem.cs b/Content.Server/Engineering/EntitySystems/SpawnAfterInteractSystem.cs index b7f4037eaf..ee0dc17e10 100644 --- a/Content.Server/Engineering/EntitySystems/SpawnAfterInteractSystem.cs +++ b/Content.Server/Engineering/EntitySystems/SpawnAfterInteractSystem.cs @@ -13,7 +13,7 @@ using Robust.Shared.Map; namespace Content.Server.Engineering.EntitySystems { [UsedImplicitly] - public class SpawnAfterInteractSystem : EntitySystem + public sealed class SpawnAfterInteractSystem : EntitySystem { [Dependency] private readonly IMapManager _mapManager = default!; [Dependency] private readonly DoAfterSystem _doAfterSystem = default!; diff --git a/Content.Server/EntityList/SpawnEntityListCommand.cs b/Content.Server/EntityList/SpawnEntityListCommand.cs index 966b206a13..26879be5fc 100644 --- a/Content.Server/EntityList/SpawnEntityListCommand.cs +++ b/Content.Server/EntityList/SpawnEntityListCommand.cs @@ -10,7 +10,7 @@ using Robust.Shared.Prototypes; namespace Content.Server.EntityList { [AdminCommand(AdminFlags.Spawn)] - public class SpawnEntityListCommand : IConsoleCommand + public sealed class SpawnEntityListCommand : IConsoleCommand { public string Command => "spawnentitylist"; public string Description => "Spawns a list of entities around you"; diff --git a/Content.Server/Entry/EntryPoint.cs b/Content.Server/Entry/EntryPoint.cs index 75dad2ddfa..716a9870c3 100644 --- a/Content.Server/Entry/EntryPoint.cs +++ b/Content.Server/Entry/EntryPoint.cs @@ -36,7 +36,7 @@ using Robust.Shared.Utility; namespace Content.Server.Entry { - public class EntryPoint : GameServer + public sealed class EntryPoint : GameServer { private EuiManager _euiManager = default!; private IVoteManager _voteManager = default!; diff --git a/Content.Server/Examine/ExamineSystem.cs b/Content.Server/Examine/ExamineSystem.cs index c51c61ac8a..13f6bc332f 100644 --- a/Content.Server/Examine/ExamineSystem.cs +++ b/Content.Server/Examine/ExamineSystem.cs @@ -9,7 +9,7 @@ using Robust.Shared.Utility; namespace Content.Server.Examine { [UsedImplicitly] - public class ExamineSystem : ExamineSystemShared + public sealed class ExamineSystem : ExamineSystemShared { private static readonly FormattedMessage _entityNotFoundMessage; diff --git a/Content.Server/Explosion/Components/DeleteOnTriggerComponent.cs b/Content.Server/Explosion/Components/DeleteOnTriggerComponent.cs index 7ac3a1bc39..39ebdd367c 100644 --- a/Content.Server/Explosion/Components/DeleteOnTriggerComponent.cs +++ b/Content.Server/Explosion/Components/DeleteOnTriggerComponent.cs @@ -7,7 +7,7 @@ namespace Content.Server.Explosion.Components /// Will delete the attached entity upon a . /// [RegisterComponent] - public class DeleteOnTriggerComponent : Component + public sealed class DeleteOnTriggerComponent : Component { } } diff --git a/Content.Server/Explosion/Components/ExplodeOnTriggerComponent.cs b/Content.Server/Explosion/Components/ExplodeOnTriggerComponent.cs index 9523df93e3..6aff3c3f37 100644 --- a/Content.Server/Explosion/Components/ExplodeOnTriggerComponent.cs +++ b/Content.Server/Explosion/Components/ExplodeOnTriggerComponent.cs @@ -6,7 +6,7 @@ namespace Content.Server.Explosion.Components /// Explode using the entity's if Triggered. /// [RegisterComponent] - public class ExplodeOnTriggerComponent : Component + public sealed class ExplodeOnTriggerComponent : Component { } } diff --git a/Content.Server/Explosion/Components/ExplosionLaunchedComponent.cs b/Content.Server/Explosion/Components/ExplosionLaunchedComponent.cs index 2c991f816a..b760ce1341 100644 --- a/Content.Server/Explosion/Components/ExplosionLaunchedComponent.cs +++ b/Content.Server/Explosion/Components/ExplosionLaunchedComponent.cs @@ -7,7 +7,7 @@ using Robust.Shared.Maths; namespace Content.Server.Explosion.Components { [RegisterComponent] - public class ExplosionLaunchedComponent : Component, IExAct + public sealed class ExplosionLaunchedComponent : Component, IExAct { [Dependency] private readonly IEntityManager _entMan = default!; void IExAct.OnExplosion(ExplosionEventArgs eventArgs) diff --git a/Content.Server/Explosion/Components/ExplosiveComponent.cs b/Content.Server/Explosion/Components/ExplosiveComponent.cs index f2243e51d5..a8f98ff685 100644 --- a/Content.Server/Explosion/Components/ExplosiveComponent.cs +++ b/Content.Server/Explosion/Components/ExplosiveComponent.cs @@ -18,7 +18,7 @@ namespace Content.Server.Explosion.Components /// /// [RegisterComponent] - public class ExplosiveComponent : Component + public sealed class ExplosiveComponent : Component { [DataField("devastationRange")] public int DevastationRange; diff --git a/Content.Server/Explosion/Components/OnUseTimerTriggerComponent.cs b/Content.Server/Explosion/Components/OnUseTimerTriggerComponent.cs index 47912dfdb4..fdc928e91d 100644 --- a/Content.Server/Explosion/Components/OnUseTimerTriggerComponent.cs +++ b/Content.Server/Explosion/Components/OnUseTimerTriggerComponent.cs @@ -4,7 +4,7 @@ using Robust.Shared.Serialization.Manager.Attributes; namespace Content.Server.Explosion.Components { [RegisterComponent] - public class OnUseTimerTriggerComponent : Component + public sealed class OnUseTimerTriggerComponent : Component { [DataField("delay")] public float Delay = 0f; } diff --git a/Content.Server/Explosion/Components/TriggerOnCollideComponent.cs b/Content.Server/Explosion/Components/TriggerOnCollideComponent.cs index 87463675ee..eaae0cd036 100644 --- a/Content.Server/Explosion/Components/TriggerOnCollideComponent.cs +++ b/Content.Server/Explosion/Components/TriggerOnCollideComponent.cs @@ -3,7 +3,7 @@ using Robust.Shared.GameObjects; namespace Content.Server.Explosion.Components { [RegisterComponent] - public class TriggerOnCollideComponent : Component + public sealed class TriggerOnCollideComponent : Component { } } diff --git a/Content.Server/Explosion/EntitySystems/ExplosionSystem.cs b/Content.Server/Explosion/EntitySystems/ExplosionSystem.cs index 096d3a6e02..a37725516c 100644 --- a/Content.Server/Explosion/EntitySystems/ExplosionSystem.cs +++ b/Content.Server/Explosion/EntitySystems/ExplosionSystem.cs @@ -25,7 +25,7 @@ using Robust.Shared.Timing; namespace Content.Server.Explosion.EntitySystems { - public class ExplosionSystem : EntitySystem + public sealed class ExplosionSystem : EntitySystem { /// /// Distance used for camera shake when distance from explosion is (0.0, 0.0). diff --git a/Content.Server/Extinguisher/FireExtinguisherComponent.cs b/Content.Server/Extinguisher/FireExtinguisherComponent.cs index 4422e1ed52..449f56d334 100644 --- a/Content.Server/Extinguisher/FireExtinguisherComponent.cs +++ b/Content.Server/Extinguisher/FireExtinguisherComponent.cs @@ -7,7 +7,7 @@ namespace Content.Server.Extinguisher; [RegisterComponent] [Friend(typeof(FireExtinguisherSystem))] -public class FireExtinguisherComponent : Component +public sealed class FireExtinguisherComponent : Component { [DataField("refillSound")] public SoundSpecifier RefillSound = new SoundPathSpecifier("/Audio/Effects/refill.ogg"); diff --git a/Content.Server/Extinguisher/FireExtinguisherSystem.cs b/Content.Server/Extinguisher/FireExtinguisherSystem.cs index f3c463daad..a40df29234 100644 --- a/Content.Server/Extinguisher/FireExtinguisherSystem.cs +++ b/Content.Server/Extinguisher/FireExtinguisherSystem.cs @@ -17,7 +17,7 @@ using Robust.Shared.Player; namespace Content.Server.Extinguisher; -public class FireExtinguisherSystem : EntitySystem +public sealed class FireExtinguisherSystem : EntitySystem { [Dependency] private readonly SolutionContainerSystem _solutionContainerSystem = default!; [Dependency] private readonly PopupSystem _popupSystem = default!; diff --git a/Content.Server/Flash/Components/FlashComponent.cs b/Content.Server/Flash/Components/FlashComponent.cs index a4e73b3ed9..bd076e84ee 100644 --- a/Content.Server/Flash/Components/FlashComponent.cs +++ b/Content.Server/Flash/Components/FlashComponent.cs @@ -7,7 +7,7 @@ using Robust.Shared.ViewVariables; namespace Content.Server.Flash.Components { [RegisterComponent, Friend(typeof(FlashSystem))] - public class FlashComponent : Component + public sealed class FlashComponent : Component { [DataField("duration")] [ViewVariables(VVAccess.ReadWrite)] diff --git a/Content.Server/Flash/Components/FlashImmunityComponent.cs b/Content.Server/Flash/Components/FlashImmunityComponent.cs index 9ab80f3a50..e4f1afa7cb 100644 --- a/Content.Server/Flash/Components/FlashImmunityComponent.cs +++ b/Content.Server/Flash/Components/FlashImmunityComponent.cs @@ -6,7 +6,7 @@ using Robust.Shared.ViewVariables; namespace Content.Server.Flash.Components { [RegisterComponent, Friend(typeof(FlashSystem))] - public class FlashImmunityComponent : Component + public sealed class FlashImmunityComponent : Component { [ViewVariables(VVAccess.ReadWrite)] [DataField("enabled")] diff --git a/Content.Server/Flash/FlashSystem.cs b/Content.Server/Flash/FlashSystem.cs index 63af4e152c..53bf9c0c77 100644 --- a/Content.Server/Flash/FlashSystem.cs +++ b/Content.Server/Flash/FlashSystem.cs @@ -198,7 +198,7 @@ namespace Content.Server.Flash } } - public class FlashAttemptEvent : CancellableEntityEventArgs + public sealed class FlashAttemptEvent : CancellableEntityEventArgs { public readonly EntityUid Target; public readonly EntityUid? User; diff --git a/Content.Server/Fluids/Components/BucketComponent.cs b/Content.Server/Fluids/Components/BucketComponent.cs index 3337349c6c..72979e46de 100644 --- a/Content.Server/Fluids/Components/BucketComponent.cs +++ b/Content.Server/Fluids/Components/BucketComponent.cs @@ -22,7 +22,7 @@ namespace Content.Server.Fluids.Components /// Can a mop click on this entity and dump its fluids /// [RegisterComponent] - public class BucketComponent : Component, IInteractUsing + public sealed class BucketComponent : Component, IInteractUsing { [Dependency] private readonly IEntityManager _entMan = default!; diff --git a/Content.Server/Fluids/Components/MopComponent.cs b/Content.Server/Fluids/Components/MopComponent.cs index d601aa60ac..cce1e87219 100644 --- a/Content.Server/Fluids/Components/MopComponent.cs +++ b/Content.Server/Fluids/Components/MopComponent.cs @@ -22,12 +22,12 @@ namespace Content.Server.Fluids.Components /// For cleaning up puddles /// [RegisterComponent] - public class MopComponent : Component, IAfterInteract + public sealed class MopComponent : Component, IAfterInteract { [Dependency] private readonly IEntityManager _entities = default!; public const string SolutionName = "mop"; - + /// /// Used to prevent do_after spam if we're currently mopping. /// @@ -169,7 +169,7 @@ namespace Content.Server.Fluids.Components // Transfers solution from the puddle to the mop solutionSystem.TryAddSolution(Owner, contents, solutionSystem.SplitSolution(target, puddleSolution, transferAmount)); - + SoundSystem.Play(Filter.Pvs(Owner), _pickupSound.GetSound(), Owner); // if the mop became full after that puddle, let the player know. diff --git a/Content.Server/Fluids/Components/SpillableComponent.cs b/Content.Server/Fluids/Components/SpillableComponent.cs index 311c8e5816..34d59a0a83 100644 --- a/Content.Server/Fluids/Components/SpillableComponent.cs +++ b/Content.Server/Fluids/Components/SpillableComponent.cs @@ -6,7 +6,7 @@ using Robust.Shared.Serialization.Manager.Attributes; namespace Content.Server.Fluids.Components; [RegisterComponent] -public class SpillableComponent : Component +public sealed class SpillableComponent : Component { [DataField("solution")] public string SolutionName = "puddle"; diff --git a/Content.Server/Fluids/EntitySystems/SpraySystem.cs b/Content.Server/Fluids/EntitySystems/SpraySystem.cs index da74c9b200..98e1d81056 100644 --- a/Content.Server/Fluids/EntitySystems/SpraySystem.cs +++ b/Content.Server/Fluids/EntitySystems/SpraySystem.cs @@ -125,7 +125,7 @@ public sealed class SpraySystem : EntitySystem } } -public class SprayAttemptEvent : CancellableEntityEventArgs +public sealed class SprayAttemptEvent : CancellableEntityEventArgs { public EntityUid User; diff --git a/Content.Server/GameTicking/Commands/DelayStartCommand.cs b/Content.Server/GameTicking/Commands/DelayStartCommand.cs index b679f2eb7f..206ece995f 100644 --- a/Content.Server/GameTicking/Commands/DelayStartCommand.cs +++ b/Content.Server/GameTicking/Commands/DelayStartCommand.cs @@ -8,7 +8,7 @@ using Robust.Shared.IoC; namespace Content.Server.GameTicking.Commands { [AdminCommand(AdminFlags.Round)] - class DelayStartCommand : IConsoleCommand + sealed class DelayStartCommand : IConsoleCommand { public string Command => "delaystart"; public string Description => "Delays the round start."; diff --git a/Content.Server/GameTicking/Commands/EndRoundCommand.cs b/Content.Server/GameTicking/Commands/EndRoundCommand.cs index fa66c8e44a..b4dbb94b4c 100644 --- a/Content.Server/GameTicking/Commands/EndRoundCommand.cs +++ b/Content.Server/GameTicking/Commands/EndRoundCommand.cs @@ -8,7 +8,7 @@ using Robust.Shared.IoC; namespace Content.Server.GameTicking.Commands { [AdminCommand(AdminFlags.Round)] - class EndRoundCommand : IConsoleCommand + sealed class EndRoundCommand : IConsoleCommand { public string Command => "endround"; public string Description => "Ends the round and moves the server to PostRound."; diff --git a/Content.Server/GameTicking/Commands/ForceMapCommand.cs b/Content.Server/GameTicking/Commands/ForceMapCommand.cs index e3f94a257b..33b414eb5c 100644 --- a/Content.Server/GameTicking/Commands/ForceMapCommand.cs +++ b/Content.Server/GameTicking/Commands/ForceMapCommand.cs @@ -11,7 +11,7 @@ using Robust.Shared.Localization; namespace Content.Server.GameTicking.Commands { [AdminCommand(AdminFlags.Round)] - class ForceMapCommand : IConsoleCommand + sealed class ForceMapCommand : IConsoleCommand { public string Command => "forcemap"; public string Description => "forcemap-command-description"; diff --git a/Content.Server/GameTicking/Commands/ForcePresetCommand.cs b/Content.Server/GameTicking/Commands/ForcePresetCommand.cs index 8c17235781..23da792921 100644 --- a/Content.Server/GameTicking/Commands/ForcePresetCommand.cs +++ b/Content.Server/GameTicking/Commands/ForcePresetCommand.cs @@ -8,7 +8,7 @@ using Robust.Shared.IoC; namespace Content.Server.GameTicking.Commands { [AdminCommand(AdminFlags.Round)] - class ForcePresetCommand : IConsoleCommand + sealed class ForcePresetCommand : IConsoleCommand { public string Command => "forcepreset"; public string Description => "Forces a specific game preset to start for the current lobby."; diff --git a/Content.Server/GameTicking/Commands/GoLobbyCommand.cs b/Content.Server/GameTicking/Commands/GoLobbyCommand.cs index adaaff11e1..80d8cea620 100644 --- a/Content.Server/GameTicking/Commands/GoLobbyCommand.cs +++ b/Content.Server/GameTicking/Commands/GoLobbyCommand.cs @@ -12,7 +12,7 @@ using Robust.Shared.IoC; namespace Content.Server.GameTicking.Commands { [AdminCommand(AdminFlags.Round)] - public class GoLobbyCommand : IConsoleCommand + public sealed class GoLobbyCommand : IConsoleCommand { public string Command => "golobby"; public string Description => "Enables the lobby and restarts the round."; diff --git a/Content.Server/GameTicking/Commands/JoinGameCommand.cs b/Content.Server/GameTicking/Commands/JoinGameCommand.cs index 4e24403b8b..0fcc87a433 100644 --- a/Content.Server/GameTicking/Commands/JoinGameCommand.cs +++ b/Content.Server/GameTicking/Commands/JoinGameCommand.cs @@ -15,7 +15,7 @@ using Robust.Shared.Prototypes; namespace Content.Server.GameTicking.Commands { [AnyCommand] - class JoinGameCommand : IConsoleCommand + sealed class JoinGameCommand : IConsoleCommand { [Dependency] private readonly IPrototypeManager _prototypeManager = default!; diff --git a/Content.Server/GameTicking/Commands/MappingCommand.cs b/Content.Server/GameTicking/Commands/MappingCommand.cs index 1c3a5d6444..d284b6dfa5 100644 --- a/Content.Server/GameTicking/Commands/MappingCommand.cs +++ b/Content.Server/GameTicking/Commands/MappingCommand.cs @@ -16,7 +16,7 @@ using Robust.Shared.Utility; namespace Content.Server.GameTicking.Commands { [AdminCommand(AdminFlags.Server | AdminFlags.Mapping)] - class MappingCommand : IConsoleCommand + sealed class MappingCommand : IConsoleCommand { [Dependency] private readonly IEntityManager _entities = default!; diff --git a/Content.Server/GameTicking/Commands/ObserveCommand.cs b/Content.Server/GameTicking/Commands/ObserveCommand.cs index 7220de1d79..ec5b74a7a4 100644 --- a/Content.Server/GameTicking/Commands/ObserveCommand.cs +++ b/Content.Server/GameTicking/Commands/ObserveCommand.cs @@ -8,7 +8,7 @@ using Robust.Shared.IoC; namespace Content.Server.GameTicking.Commands { [AnyCommand] - class ObserveCommand : IConsoleCommand + sealed class ObserveCommand : IConsoleCommand { public string Command => "observe"; public string Description => ""; diff --git a/Content.Server/GameTicking/Commands/RespawnCommand.cs b/Content.Server/GameTicking/Commands/RespawnCommand.cs index c8d828f6a0..8941e041f2 100644 --- a/Content.Server/GameTicking/Commands/RespawnCommand.cs +++ b/Content.Server/GameTicking/Commands/RespawnCommand.cs @@ -7,7 +7,7 @@ using Robust.Shared.Network; namespace Content.Server.GameTicking.Commands { - class RespawnCommand : IConsoleCommand + sealed class RespawnCommand : IConsoleCommand { public string Command => "respawn"; public string Description => "Respawns a player, kicking them back to the lobby."; diff --git a/Content.Server/GameTicking/Commands/RestartRoundCommand.cs b/Content.Server/GameTicking/Commands/RestartRoundCommand.cs index 4341c0ed07..eedfa83c39 100644 --- a/Content.Server/GameTicking/Commands/RestartRoundCommand.cs +++ b/Content.Server/GameTicking/Commands/RestartRoundCommand.cs @@ -8,7 +8,7 @@ using Robust.Shared.GameObjects; namespace Content.Server.GameTicking.Commands { [AdminCommand(AdminFlags.Round)] - public class RestartRoundCommand : IConsoleCommand + public sealed class RestartRoundCommand : IConsoleCommand { public string Command => "restartround"; public string Description => "Ends the current round and starts the countdown for the next lobby."; @@ -29,7 +29,7 @@ namespace Content.Server.GameTicking.Commands } [AdminCommand(AdminFlags.Round)] - public class RestartRoundNowCommand : IConsoleCommand + public sealed class RestartRoundNowCommand : IConsoleCommand { public string Command => "restartroundnow"; public string Description => "Moves the server from PostRound to a new PreRoundLobby."; diff --git a/Content.Server/GameTicking/Commands/SetGamePresetCommand.cs b/Content.Server/GameTicking/Commands/SetGamePresetCommand.cs index 3c9c15e7f0..0c84102846 100644 --- a/Content.Server/GameTicking/Commands/SetGamePresetCommand.cs +++ b/Content.Server/GameTicking/Commands/SetGamePresetCommand.cs @@ -7,7 +7,7 @@ using Robust.Shared.IoC; namespace Content.Server.GameTicking.Commands { [AdminCommand(AdminFlags.Round)] - class SetGamePresetCommand : IConsoleCommand + sealed class SetGamePresetCommand : IConsoleCommand { public string Command => "setgamepreset"; public string Description => ""; diff --git a/Content.Server/GameTicking/Commands/StartRoundCommand.cs b/Content.Server/GameTicking/Commands/StartRoundCommand.cs index 7e436608e7..8b5de7b3ed 100644 --- a/Content.Server/GameTicking/Commands/StartRoundCommand.cs +++ b/Content.Server/GameTicking/Commands/StartRoundCommand.cs @@ -8,7 +8,7 @@ using Robust.Shared.IoC; namespace Content.Server.GameTicking.Commands { [AdminCommand(AdminFlags.Round)] - class StartRoundCommand : IConsoleCommand + sealed class StartRoundCommand : IConsoleCommand { public string Command => "startround"; public string Description => "Ends PreRoundLobby state and starts the round."; diff --git a/Content.Server/GameTicking/Commands/ToggleDisallowLateJoinCommand.cs b/Content.Server/GameTicking/Commands/ToggleDisallowLateJoinCommand.cs index 2695fa6a8a..fa918152ec 100644 --- a/Content.Server/GameTicking/Commands/ToggleDisallowLateJoinCommand.cs +++ b/Content.Server/GameTicking/Commands/ToggleDisallowLateJoinCommand.cs @@ -9,7 +9,7 @@ using Robust.Shared.IoC; namespace Content.Server.GameTicking.Commands { [AdminCommand(AdminFlags.Round)] - class ToggleDisallowLateJoinCommand : IConsoleCommand + sealed class ToggleDisallowLateJoinCommand : IConsoleCommand { public string Command => "toggledisallowlatejoin"; public string Description => "Allows or disallows latejoining during mid-game."; diff --git a/Content.Server/GameTicking/Commands/ToggleReadyCommand.cs b/Content.Server/GameTicking/Commands/ToggleReadyCommand.cs index 8084b55465..caa6216328 100644 --- a/Content.Server/GameTicking/Commands/ToggleReadyCommand.cs +++ b/Content.Server/GameTicking/Commands/ToggleReadyCommand.cs @@ -8,7 +8,7 @@ using Robust.Shared.IoC; namespace Content.Server.GameTicking.Commands { [AnyCommand] - class ToggleReadyCommand : IConsoleCommand + sealed class ToggleReadyCommand : IConsoleCommand { public string Command => "toggleready"; public string Description => ""; diff --git a/Content.Server/GameTicking/Events/RoundStartingEvent.cs b/Content.Server/GameTicking/Events/RoundStartingEvent.cs index 4edf1371a3..c56c0bb1d9 100644 --- a/Content.Server/GameTicking/Events/RoundStartingEvent.cs +++ b/Content.Server/GameTicking/Events/RoundStartingEvent.cs @@ -5,6 +5,6 @@ namespace Content.Server.GameTicking.Events; /// /// Raised at the start of , after round id has been incremented /// -public class RoundStartingEvent : EntityEventArgs +public sealed class RoundStartingEvent : EntityEventArgs { } diff --git a/Content.Server/GameTicking/GameTicker.CVars.cs b/Content.Server/GameTicking/GameTicker.CVars.cs index 94e081cfe5..5c86dc53bd 100644 --- a/Content.Server/GameTicking/GameTicker.CVars.cs +++ b/Content.Server/GameTicking/GameTicker.CVars.cs @@ -4,7 +4,7 @@ using Robust.Shared.ViewVariables; namespace Content.Server.GameTicking { - public partial class GameTicker + public sealed partial class GameTicker { [ViewVariables] public bool LobbyEnabled { get; private set; } = false; diff --git a/Content.Server/GameTicking/GameTicker.GamePreset.cs b/Content.Server/GameTicking/GameTicker.GamePreset.cs index 5ad06d1c4b..4087f9afb5 100644 --- a/Content.Server/GameTicking/GameTicker.GamePreset.cs +++ b/Content.Server/GameTicking/GameTicker.GamePreset.cs @@ -12,7 +12,7 @@ using Robust.Shared.IoC; namespace Content.Server.GameTicking { - public partial class GameTicker + public sealed partial class GameTicker { public const float PresetFailedCooldownIncrease = 30f; @@ -168,7 +168,7 @@ namespace Content.Server.GameTicking } } - public class GhostAttemptHandleEvent : HandledEntityEventArgs + public sealed class GhostAttemptHandleEvent : HandledEntityEventArgs { public Mind.Mind Mind { get; } public bool CanReturnGlobal { get; } diff --git a/Content.Server/GameTicking/GameTicker.GameRule.cs b/Content.Server/GameTicking/GameTicker.GameRule.cs index 993a84b5d4..84ceac547d 100644 --- a/Content.Server/GameTicking/GameTicker.GameRule.cs +++ b/Content.Server/GameTicking/GameTicker.GameRule.cs @@ -5,7 +5,7 @@ using Robust.Shared.ViewVariables; namespace Content.Server.GameTicking { - public partial class GameTicker + public sealed partial class GameTicker { // No duplicates. [ViewVariables] private readonly HashSet _addedGameRules = new(); diff --git a/Content.Server/GameTicking/GameTicker.JobController.cs b/Content.Server/GameTicking/GameTicker.JobController.cs index 025e13c455..45e5c95070 100644 --- a/Content.Server/GameTicking/GameTicker.JobController.cs +++ b/Content.Server/GameTicking/GameTicker.JobController.cs @@ -17,7 +17,7 @@ using Robust.Shared.ViewVariables; namespace Content.Server.GameTicking { // This code is responsible for the assigning & picking of jobs. - public partial class GameTicker + public sealed partial class GameTicker { [ViewVariables] private readonly List _manifest = new(); diff --git a/Content.Server/GameTicking/GameTicker.Lobby.cs b/Content.Server/GameTicking/GameTicker.Lobby.cs index d1344c4c9c..6b1af86b3e 100644 --- a/Content.Server/GameTicking/GameTicker.Lobby.cs +++ b/Content.Server/GameTicking/GameTicker.Lobby.cs @@ -11,7 +11,7 @@ using Robust.Shared.ViewVariables; namespace Content.Server.GameTicking { - public partial class GameTicker + public sealed partial class GameTicker { [ViewVariables] private readonly Dictionary _playersInLobby = new(); diff --git a/Content.Server/GameTicking/GameTicker.LobbyMusic.cs b/Content.Server/GameTicking/GameTicker.LobbyMusic.cs index f9f5be9d8d..5e8f0f09b6 100644 --- a/Content.Server/GameTicking/GameTicker.LobbyMusic.cs +++ b/Content.Server/GameTicking/GameTicker.LobbyMusic.cs @@ -5,7 +5,7 @@ using Robust.Shared.ViewVariables; namespace Content.Server.GameTicking { - public partial class GameTicker + public sealed partial class GameTicker { private const string LobbyMusicCollection = "LobbyMusic"; diff --git a/Content.Server/GameTicking/GameTicker.Player.cs b/Content.Server/GameTicking/GameTicker.Player.cs index 3fcfcb2648..caba79931f 100644 --- a/Content.Server/GameTicking/GameTicker.Player.cs +++ b/Content.Server/GameTicking/GameTicker.Player.cs @@ -17,7 +17,7 @@ using Robust.Shared.Utility; namespace Content.Server.GameTicking { [UsedImplicitly] - public partial class GameTicker + public sealed partial class GameTicker { [Dependency] private readonly IPlayerManager _playerManager = default!; diff --git a/Content.Server/GameTicking/GameTicker.RoundFlow.cs b/Content.Server/GameTicking/GameTicker.RoundFlow.cs index fcd27ce8bf..ccd0f1c25c 100644 --- a/Content.Server/GameTicking/GameTicker.RoundFlow.cs +++ b/Content.Server/GameTicking/GameTicker.RoundFlow.cs @@ -29,7 +29,7 @@ using Robust.Shared.ViewVariables; namespace Content.Server.GameTicking { - public partial class GameTicker + public sealed partial class GameTicker { private static readonly Counter RoundNumberMetric = Metrics.CreateCounter( "ss14_round_number", @@ -572,7 +572,7 @@ namespace Content.Server.GameTicking PostRound = 2 } - public class GameRunLevelChangedEvent + public sealed class GameRunLevelChangedEvent { public GameRunLevel Old { get; } public GameRunLevel New { get; } @@ -589,7 +589,7 @@ namespace Content.Server.GameTicking /// Contains a list of game map prototypes to load; modify it if you want to load different maps, /// for example as part of a game rule. /// - public class LoadingMapsEvent : EntityEventArgs + public sealed class LoadingMapsEvent : EntityEventArgs { public List Maps; @@ -603,7 +603,7 @@ namespace Content.Server.GameTicking /// Event raised to refresh the late join status. /// If you want to disallow late joins, listen to this and call Disallow. /// - public class RefreshLateJoinAllowedEvent + public sealed class RefreshLateJoinAllowedEvent { public bool DisallowLateJoin { get; private set; } = false; @@ -617,7 +617,7 @@ namespace Content.Server.GameTicking /// Attempt event raised on round start. /// This can be listened to by GameRule systems to cancel round start if some condition is not met, like player count. /// - public class RoundStartAttemptEvent : CancellableEntityEventArgs + public sealed class RoundStartAttemptEvent : CancellableEntityEventArgs { public IPlayerSession[] Players { get; } public bool Forced { get; } @@ -634,7 +634,7 @@ namespace Content.Server.GameTicking /// You can use this to spawn people off-station, like in the case of nuke ops or wizard. /// Remove the players you spawned from the PlayerPool and call on them. /// - public class RulePlayerSpawningEvent + public sealed class RulePlayerSpawningEvent { /// /// Pool of players to be spawned. @@ -657,7 +657,7 @@ namespace Content.Server.GameTicking /// Event raised after players were assigned jobs by the GameTicker. /// You can give on-station people special roles by listening to this event. /// - public class RulePlayerJobsAssignedEvent + public sealed class RulePlayerJobsAssignedEvent { public IPlayerSession[] Players { get; } public IReadOnlyDictionary Profiles { get; } @@ -674,7 +674,7 @@ namespace Content.Server.GameTicking /// /// Event raised to allow subscribers to add text to the round end summary screen. /// - public class RoundEndTextAppendEvent + public sealed class RoundEndTextAppendEvent { private bool _doNewLine; diff --git a/Content.Server/GameTicking/GameTicker.Spawning.cs b/Content.Server/GameTicking/GameTicker.Spawning.cs index 449b99dd56..3100c67b71 100644 --- a/Content.Server/GameTicking/GameTicker.Spawning.cs +++ b/Content.Server/GameTicking/GameTicker.Spawning.cs @@ -32,7 +32,7 @@ using Robust.Shared.ViewVariables; namespace Content.Server.GameTicking { - public partial class GameTicker + public sealed partial class GameTicker { private const string ObserverPrototypeName = "MobObserver"; @@ -366,7 +366,7 @@ namespace Content.Server.GameTicking /// You can use this event to spawn a player off-station on late-join but also at round start. /// When this event is handled, the GameTicker will not perform its own player-spawning logic. /// - public class PlayerBeforeSpawnEvent : HandledEntityEventArgs + public sealed class PlayerBeforeSpawnEvent : HandledEntityEventArgs { public IPlayerSession Player { get; } public HumanoidCharacterProfile Profile { get; } @@ -389,7 +389,7 @@ namespace Content.Server.GameTicking /// You can use this to handle people late-joining, or to handle people being spawned at round start. /// Can be used to give random players a role, modify their equipment, etc. /// - public class PlayerSpawnCompleteEvent : EntityEventArgs + public sealed class PlayerSpawnCompleteEvent : EntityEventArgs { public EntityUid Mob { get; } public IPlayerSession Player { get; } diff --git a/Content.Server/GameTicking/GameTicker.StatusShell.cs b/Content.Server/GameTicking/GameTicker.StatusShell.cs index 48fffcbcc0..9f5270eaf0 100644 --- a/Content.Server/GameTicking/GameTicker.StatusShell.cs +++ b/Content.Server/GameTicking/GameTicker.StatusShell.cs @@ -6,7 +6,7 @@ using Robust.Shared.ViewVariables; namespace Content.Server.GameTicking { - public partial class GameTicker + public sealed partial class GameTicker { /// /// Used for thread safety, given is called from another thread. diff --git a/Content.Server/GameTicking/GameTicker.Updates.cs b/Content.Server/GameTicking/GameTicker.Updates.cs index 2c67e686a1..22f0dda3f5 100644 --- a/Content.Server/GameTicking/GameTicker.Updates.cs +++ b/Content.Server/GameTicking/GameTicker.Updates.cs @@ -8,7 +8,7 @@ using Timer = Robust.Shared.Timing.Timer; namespace Content.Server.GameTicking { - public partial class GameTicker + public sealed partial class GameTicker { private static readonly TimeSpan UpdateRestartDelay = TimeSpan.FromSeconds(20); diff --git a/Content.Server/GameTicking/GameTicker.cs b/Content.Server/GameTicking/GameTicker.cs index 5e254d1c7b..08d9221bbf 100644 --- a/Content.Server/GameTicking/GameTicker.cs +++ b/Content.Server/GameTicking/GameTicker.cs @@ -27,7 +27,7 @@ using Robust.Shared.ViewVariables; namespace Content.Server.GameTicking { - public partial class GameTicker : SharedGameTicker + public sealed partial class GameTicker : SharedGameTicker { [ViewVariables] private bool _initialized; [ViewVariables] private bool _postInitialized; diff --git a/Content.Server/GameTicking/Presets/GamePresetPrototype.cs b/Content.Server/GameTicking/Presets/GamePresetPrototype.cs index f511535780..f1fa1a1919 100644 --- a/Content.Server/GameTicking/Presets/GamePresetPrototype.cs +++ b/Content.Server/GameTicking/Presets/GamePresetPrototype.cs @@ -11,7 +11,7 @@ namespace Content.Server.GameTicking.Presets /// A round-start setup preset, such as which antagonists to spawn. /// [Prototype("gamePreset")] - public class GamePresetPrototype : IPrototype + public sealed class GamePresetPrototype : IPrototype { [DataField("id", required:true)] public string ID { get; } = default!; diff --git a/Content.Server/GameTicking/Rules/GameRulePrototype.cs b/Content.Server/GameTicking/Rules/GameRulePrototype.cs index 57edcbe5dc..7d6de84836 100644 --- a/Content.Server/GameTicking/Rules/GameRulePrototype.cs +++ b/Content.Server/GameTicking/Rules/GameRulePrototype.cs @@ -4,7 +4,7 @@ using Robust.Shared.Serialization.Manager.Attributes; namespace Content.Server.GameTicking.Rules; [Prototype("gameRule")] -public class GameRulePrototype : IPrototype +public sealed class GameRulePrototype : IPrototype { [DataField("id", required:true)] public string ID { get; } = default!; diff --git a/Content.Server/GameTicking/Rules/InactivityTimeRestartRuleSystem.cs b/Content.Server/GameTicking/Rules/InactivityTimeRestartRuleSystem.cs index 2859847417..56fa714b0b 100644 --- a/Content.Server/GameTicking/Rules/InactivityTimeRestartRuleSystem.cs +++ b/Content.Server/GameTicking/Rules/InactivityTimeRestartRuleSystem.cs @@ -9,7 +9,7 @@ using Timer = Robust.Shared.Timing.Timer; namespace Content.Server.GameTicking.Rules; -public class InactivityTimeRestartRuleSystem : GameRuleSystem +public sealed class InactivityTimeRestartRuleSystem : GameRuleSystem { [Dependency] private readonly IChatManager _chatManager = default!; [Dependency] private readonly IPlayerManager _playerManager = default!; diff --git a/Content.Server/GameTicking/Rules/SandboxRuleSystem.cs b/Content.Server/GameTicking/Rules/SandboxRuleSystem.cs index 0863fc1b61..64aa8a9773 100644 --- a/Content.Server/GameTicking/Rules/SandboxRuleSystem.cs +++ b/Content.Server/GameTicking/Rules/SandboxRuleSystem.cs @@ -3,7 +3,7 @@ using Robust.Shared.IoC; namespace Content.Server.GameTicking.Rules; -public class SandboxRuleSystem : GameRuleSystem +public sealed class SandboxRuleSystem : GameRuleSystem { [Dependency] private readonly ISandboxManager _sandbox = default!; diff --git a/Content.Server/GameTicking/Rules/TraitorDeathMatchRuleSystem.cs b/Content.Server/GameTicking/Rules/TraitorDeathMatchRuleSystem.cs index 86ac08df94..e1c36968c5 100644 --- a/Content.Server/GameTicking/Rules/TraitorDeathMatchRuleSystem.cs +++ b/Content.Server/GameTicking/Rules/TraitorDeathMatchRuleSystem.cs @@ -32,7 +32,7 @@ using Robust.Shared.Random; namespace Content.Server.GameTicking.Rules; -public class TraitorDeathMatchRuleSystem : GameRuleSystem +public sealed class TraitorDeathMatchRuleSystem : GameRuleSystem { [Dependency] private readonly IConfigurationManager _cfg = default!; [Dependency] private readonly IPlayerManager _playerManager = default!; diff --git a/Content.Server/GameTicking/Rules/TraitorRuleSystem.cs b/Content.Server/GameTicking/Rules/TraitorRuleSystem.cs index 30b185fa63..442abdcde0 100644 --- a/Content.Server/GameTicking/Rules/TraitorRuleSystem.cs +++ b/Content.Server/GameTicking/Rules/TraitorRuleSystem.cs @@ -27,7 +27,7 @@ using Robust.Shared.Utility; namespace Content.Server.GameTicking.Rules; -public class TraitorRuleSystem : GameRuleSystem +public sealed class TraitorRuleSystem : GameRuleSystem { [Dependency] private readonly IPrototypeManager _prototypeManager = default!; [Dependency] private readonly IRobustRandom _random = default!; @@ -41,7 +41,7 @@ public class TraitorRuleSystem : GameRuleSystem private readonly List _traitors = new (); private const string TraitorPrototypeID = "Traitor"; - + public int TotalTraitors => _traitors.Count; public override void Initialize() @@ -188,7 +188,7 @@ public class TraitorRuleSystem : GameRuleSystem if (traitor.Mind.TryAddObjective(objective)) difficulty += objective.Difficulty; } - + //give traitors their codewords to keep in their character info menu traitor.Mind.Briefing = Loc.GetString("traitor-role-codewords", ("codewords", string.Join(", ",codewords))); } diff --git a/Content.Server/Ghost/Components/GhostOnMoveComponent.cs b/Content.Server/Ghost/Components/GhostOnMoveComponent.cs index 4852ee5b66..f76da835f3 100644 --- a/Content.Server/Ghost/Components/GhostOnMoveComponent.cs +++ b/Content.Server/Ghost/Components/GhostOnMoveComponent.cs @@ -9,7 +9,7 @@ using Robust.Shared.Serialization.Manager.Attributes; namespace Content.Server.Ghost.Components { [RegisterComponent] - public class GhostOnMoveComponent : Component + public sealed class GhostOnMoveComponent : Component { [DataField("canReturn")] public bool CanReturn { get; set; } = true; diff --git a/Content.Server/Ghost/Components/GhostRadioComponent.cs b/Content.Server/Ghost/Components/GhostRadioComponent.cs index 8fa7d8fb57..65b3cdd1c6 100644 --- a/Content.Server/Ghost/Components/GhostRadioComponent.cs +++ b/Content.Server/Ghost/Components/GhostRadioComponent.cs @@ -12,7 +12,7 @@ namespace Content.Server.Ghost.Components { [RegisterComponent] [ComponentReference(typeof(IRadio))] - public class GhostRadioComponent : Component, IRadio + public sealed class GhostRadioComponent : Component, IRadio { [Dependency] private readonly IServerNetManager _netManager = default!; [Dependency] private readonly IEntityManager _entMan = default!; diff --git a/Content.Server/Ghost/Ghost.cs b/Content.Server/Ghost/Ghost.cs index 65a591cd7d..ddcfd18a8c 100644 --- a/Content.Server/Ghost/Ghost.cs +++ b/Content.Server/Ghost/Ghost.cs @@ -10,7 +10,7 @@ using Robust.Shared.IoC; namespace Content.Server.Ghost { [AnyCommand] - public class Ghost : IConsoleCommand + public sealed class Ghost : IConsoleCommand { public string Command => "ghost"; public string Description => "Give up on life and become a ghost."; diff --git a/Content.Server/Ghost/GhostBooEvent.cs b/Content.Server/Ghost/GhostBooEvent.cs index 17ee1e7803..a7927268d9 100644 --- a/Content.Server/Ghost/GhostBooEvent.cs +++ b/Content.Server/Ghost/GhostBooEvent.cs @@ -2,7 +2,7 @@ using Robust.Shared.GameObjects; namespace Content.Server.Ghost { - public class GhostBooEvent : HandledEntityEventArgs + public sealed class GhostBooEvent : HandledEntityEventArgs { } diff --git a/Content.Server/Ghost/GhostSystem.cs b/Content.Server/Ghost/GhostSystem.cs index 78d59aa0b6..4ba3ebc8c0 100644 --- a/Content.Server/Ghost/GhostSystem.cs +++ b/Content.Server/Ghost/GhostSystem.cs @@ -23,7 +23,7 @@ using Robust.Shared.Timing; namespace Content.Server.Ghost { [UsedImplicitly] - public class GhostSystem : SharedGhostSystem + public sealed class GhostSystem : SharedGhostSystem { [Dependency] private readonly IGameTiming _gameTiming = default!; [Dependency] private readonly IPlayerManager _playerManager = default!; diff --git a/Content.Server/Ghost/ObserverRole.cs b/Content.Server/Ghost/ObserverRole.cs index eb57069f84..39069eabb1 100644 --- a/Content.Server/Ghost/ObserverRole.cs +++ b/Content.Server/Ghost/ObserverRole.cs @@ -6,7 +6,7 @@ namespace Content.Server.Ghost /// /// This is used to mark Observers properly, as they get Minds /// - public class ObserverRole : Role + public sealed class ObserverRole : Role { public override string Name => Loc.GetString("observer-role-name"); public override bool Antagonist => false; diff --git a/Content.Server/Ghost/Roles/Components/GhostRoleMobSpawnerComponent.cs b/Content.Server/Ghost/Roles/Components/GhostRoleMobSpawnerComponent.cs index eaeda0f8a7..6d046173e4 100644 --- a/Content.Server/Ghost/Roles/Components/GhostRoleMobSpawnerComponent.cs +++ b/Content.Server/Ghost/Roles/Components/GhostRoleMobSpawnerComponent.cs @@ -16,7 +16,7 @@ namespace Content.Server.Ghost.Roles.Components /// Allows a ghost to take this role, spawning a new entity. /// [RegisterComponent, ComponentReference(typeof(GhostRoleComponent))] - public class GhostRoleMobSpawnerComponent : GhostRoleComponent + public sealed class GhostRoleMobSpawnerComponent : GhostRoleComponent { [Dependency] private readonly IEntityManager _entMan = default!; diff --git a/Content.Server/Ghost/Roles/Components/GhostTakeoverAvailableComponent.cs b/Content.Server/Ghost/Roles/Components/GhostTakeoverAvailableComponent.cs index 87ee07c368..2234cf6483 100644 --- a/Content.Server/Ghost/Roles/Components/GhostTakeoverAvailableComponent.cs +++ b/Content.Server/Ghost/Roles/Components/GhostTakeoverAvailableComponent.cs @@ -10,7 +10,7 @@ namespace Content.Server.Ghost.Roles.Components /// Allows a ghost to take over the Owner entity. /// [RegisterComponent, ComponentReference(typeof(GhostRoleComponent))] - public class GhostTakeoverAvailableComponent : GhostRoleComponent + public sealed class GhostTakeoverAvailableComponent : GhostRoleComponent { public override bool Take(IPlayerSession session) { diff --git a/Content.Server/Ghost/Roles/GhostRoleMarkerRole.cs b/Content.Server/Ghost/Roles/GhostRoleMarkerRole.cs index e9a87f0a8f..23cf5b5dbb 100644 --- a/Content.Server/Ghost/Roles/GhostRoleMarkerRole.cs +++ b/Content.Server/Ghost/Roles/GhostRoleMarkerRole.cs @@ -7,7 +7,7 @@ namespace Content.Server.Ghost.Roles /// This is used for round end display of ghost roles. /// It may also be used to ensure some ghost roles count as antagonists in future. /// - public class GhostRoleMarkerRole : Role + public sealed class GhostRoleMarkerRole : Role { private readonly string _name; public override string Name => _name; diff --git a/Content.Server/Ghost/Roles/GhostRoleSystem.cs b/Content.Server/Ghost/Roles/GhostRoleSystem.cs index 35100e807b..c68b5a1d54 100644 --- a/Content.Server/Ghost/Roles/GhostRoleSystem.cs +++ b/Content.Server/Ghost/Roles/GhostRoleSystem.cs @@ -27,7 +27,7 @@ using Robust.Shared.ViewVariables; namespace Content.Server.Ghost.Roles { [UsedImplicitly] - public class GhostRoleSystem : EntitySystem + public sealed class GhostRoleSystem : EntitySystem { [Dependency] private readonly EuiManager _euiManager = default!; [Dependency] private readonly IPlayerManager _playerManager = default!; @@ -259,7 +259,7 @@ namespace Content.Server.Ghost.Roles } [AnyCommand] - public class GhostRoles : IConsoleCommand + public sealed class GhostRoles : IConsoleCommand { public string Command => "ghostroles"; public string Description => "Opens the ghost role request window."; diff --git a/Content.Server/Ghost/Roles/MakeGhostRoleCommand.cs b/Content.Server/Ghost/Roles/MakeGhostRoleCommand.cs index 4c5d405c74..238c3701b0 100644 --- a/Content.Server/Ghost/Roles/MakeGhostRoleCommand.cs +++ b/Content.Server/Ghost/Roles/MakeGhostRoleCommand.cs @@ -10,7 +10,7 @@ using Robust.Shared.Localization; namespace Content.Server.Ghost.Roles { [AdminCommand(AdminFlags.Fun)] - public class MakeGhostRoleCommand : IConsoleCommand + public sealed class MakeGhostRoleCommand : IConsoleCommand { public string Command => "makeghostrole"; public string Description => "Turns an entity into a ghost role."; diff --git a/Content.Server/Ghost/Roles/UI/GhostRolesEui.cs b/Content.Server/Ghost/Roles/UI/GhostRolesEui.cs index d5cc2bb594..f872f1cbb0 100644 --- a/Content.Server/Ghost/Roles/UI/GhostRolesEui.cs +++ b/Content.Server/Ghost/Roles/UI/GhostRolesEui.cs @@ -5,7 +5,7 @@ using Robust.Shared.GameObjects; namespace Content.Server.Ghost.Roles.UI { - public class GhostRolesEui : BaseEui + public sealed class GhostRolesEui : BaseEui { public override GhostRolesEuiState GetNewState() { diff --git a/Content.Server/Ghost/Roles/UI/MakeGhostRoleEui.cs b/Content.Server/Ghost/Roles/UI/MakeGhostRoleEui.cs index ff2dca964e..48392cca36 100644 --- a/Content.Server/Ghost/Roles/UI/MakeGhostRoleEui.cs +++ b/Content.Server/Ghost/Roles/UI/MakeGhostRoleEui.cs @@ -5,7 +5,7 @@ using Robust.Shared.GameObjects; namespace Content.Server.Ghost.Roles.UI { - public class MakeGhostRoleEui : BaseEui + public sealed class MakeGhostRoleEui : BaseEui { public MakeGhostRoleEui(EntityUid entityUid) { diff --git a/Content.Server/Gravity/EntitySystems/WeightlessSystem.cs b/Content.Server/Gravity/EntitySystems/WeightlessSystem.cs index 2fcbe2508f..7d89c54e4e 100644 --- a/Content.Server/Gravity/EntitySystems/WeightlessSystem.cs +++ b/Content.Server/Gravity/EntitySystems/WeightlessSystem.cs @@ -11,7 +11,7 @@ using Robust.Shared.Utility; namespace Content.Server.Gravity.EntitySystems { [UsedImplicitly] - public class WeightlessSystem : EntitySystem + public sealed class WeightlessSystem : EntitySystem { [Dependency] private readonly IMapManager _mapManager = default!; [Dependency] private readonly AlertsSystem _alertsSystem = default!; diff --git a/Content.Server/Guardian/CanHostGuardianComponent.cs b/Content.Server/Guardian/CanHostGuardianComponent.cs index 06e06a34b6..d7d77c2057 100644 --- a/Content.Server/Guardian/CanHostGuardianComponent.cs +++ b/Content.Server/Guardian/CanHostGuardianComponent.cs @@ -3,6 +3,6 @@ using Robust.Shared.GameObjects; namespace Content.Server.Guardian; [RegisterComponent] -public class CanHostGuardianComponent : Component +public sealed class CanHostGuardianComponent : Component { } diff --git a/Content.Server/Guardian/GuardianComponent.cs b/Content.Server/Guardian/GuardianComponent.cs index be8fc5b889..dd75f6b25c 100644 --- a/Content.Server/Guardian/GuardianComponent.cs +++ b/Content.Server/Guardian/GuardianComponent.cs @@ -8,7 +8,7 @@ namespace Content.Server.Guardian /// Given to guardians to monitor their link with the host /// [RegisterComponent] - public class GuardianComponent : Component + public sealed class GuardianComponent : Component { /// /// The guardian host entity diff --git a/Content.Server/GuideGenerator/ChemistryJsonGenerator.cs b/Content.Server/GuideGenerator/ChemistryJsonGenerator.cs index 6eabade395..e43f718521 100644 --- a/Content.Server/GuideGenerator/ChemistryJsonGenerator.cs +++ b/Content.Server/GuideGenerator/ChemistryJsonGenerator.cs @@ -12,7 +12,7 @@ using Robust.Shared.Prototypes; namespace Content.Server.GuideGenerator; -public class ChemistryJsonGenerator +public sealed class ChemistryJsonGenerator { public static void PublishJson(StreamWriter file) { @@ -53,7 +53,7 @@ public class ChemistryJsonGenerator file.Write(JsonSerializer.Serialize(prototypes, serializeOptions)); } - public class FixedPointJsonConverter : JsonConverter + public sealed class FixedPointJsonConverter : JsonConverter { public override void Write(Utf8JsonWriter writer, FixedPoint2 value, JsonSerializerOptions options) { diff --git a/Content.Server/GuideGenerator/ReactionJsonGenerator.cs b/Content.Server/GuideGenerator/ReactionJsonGenerator.cs index 58c2de143d..14d1001415 100644 --- a/Content.Server/GuideGenerator/ReactionJsonGenerator.cs +++ b/Content.Server/GuideGenerator/ReactionJsonGenerator.cs @@ -9,7 +9,7 @@ using Robust.Shared.Prototypes; namespace Content.Server.GuideGenerator; -public class ReactionJsonGenerator +public sealed class ReactionJsonGenerator { public static void PublishJson(StreamWriter file) { diff --git a/Content.Server/GuideGenerator/ReagentEntry.cs b/Content.Server/GuideGenerator/ReagentEntry.cs index d5179f74ef..cebb243d9b 100644 --- a/Content.Server/GuideGenerator/ReagentEntry.cs +++ b/Content.Server/GuideGenerator/ReagentEntry.cs @@ -9,7 +9,7 @@ using Robust.Shared.Serialization.Manager.Attributes; namespace Content.Server.GuideGenerator; -public class ReagentEntry +public sealed class ReagentEntry { [JsonPropertyName("id")] public string Id { get; } @@ -47,7 +47,7 @@ public class ReagentEntry } } -public class ReactionEntry +public sealed class ReactionEntry { [JsonPropertyName("id")] public string Id { get; } @@ -80,7 +80,7 @@ public class ReactionEntry } } -public class ReactantEntry +public sealed class ReactantEntry { [JsonPropertyName("amount")] public float Amount { get; } diff --git a/Content.Server/GuideGenerator/UniversalJsonConverter.cs b/Content.Server/GuideGenerator/UniversalJsonConverter.cs index 6de4608e4b..0e7f229cea 100644 --- a/Content.Server/GuideGenerator/UniversalJsonConverter.cs +++ b/Content.Server/GuideGenerator/UniversalJsonConverter.cs @@ -10,7 +10,7 @@ namespace Content.Server.GuideGenerator // (serializing objects that inherit abstract base classes or interfaces) since // System.Text.Json (our new JSON solution) doesn't support that while Newtonsoft.Json (our old // solution) does. - public class UniversalJsonConverter : JsonConverter + public sealed class UniversalJsonConverter : JsonConverter { // This converter can only convert types that are T or descend from T. diff --git a/Content.Server/Hands/Components/HandsComponent.cs b/Content.Server/Hands/Components/HandsComponent.cs index 0a7f45d544..99c1f2ccb9 100644 --- a/Content.Server/Hands/Components/HandsComponent.cs +++ b/Content.Server/Hands/Components/HandsComponent.cs @@ -24,7 +24,7 @@ namespace Content.Server.Hands.Components [RegisterComponent] [ComponentReference(typeof(SharedHandsComponent))] #pragma warning disable 618 - public class HandsComponent : SharedHandsComponent, IBodyPartAdded, IBodyPartRemoved, IDisarmedAct + public sealed class HandsComponent : SharedHandsComponent, IBodyPartAdded, IBodyPartRemoved, IDisarmedAct #pragma warning restore 618 { [Dependency] private readonly IEntitySystemManager _entitySystemManager = default!; diff --git a/Content.Server/Headset/HeadsetComponent.cs b/Content.Server/Headset/HeadsetComponent.cs index fffcb915b0..2dc6f29bf7 100644 --- a/Content.Server/Headset/HeadsetComponent.cs +++ b/Content.Server/Headset/HeadsetComponent.cs @@ -19,7 +19,7 @@ namespace Content.Server.Headset [ComponentReference(typeof(IRadio))] [ComponentReference(typeof(IListen))] #pragma warning disable 618 - public class HeadsetComponent : Component, IListen, IRadio, IExamine + public sealed class HeadsetComponent : Component, IListen, IRadio, IExamine #pragma warning restore 618 { [Dependency] private readonly IEntityManager _entMan = default!; diff --git a/Content.Server/Holiday/Celebrate/DefaultHolidayCelebrate.cs b/Content.Server/Holiday/Celebrate/DefaultHolidayCelebrate.cs index 6e5f274629..6c807e9544 100644 --- a/Content.Server/Holiday/Celebrate/DefaultHolidayCelebrate.cs +++ b/Content.Server/Holiday/Celebrate/DefaultHolidayCelebrate.cs @@ -2,7 +2,7 @@ using Content.Server.Holiday.Interfaces; namespace Content.Server.Holiday.Celebrate { - public class DefaultHolidayCelebrate : IHolidayCelebrate + public sealed class DefaultHolidayCelebrate : IHolidayCelebrate { public void Celebrate(HolidayPrototype holiday) { diff --git a/Content.Server/Holiday/Greet/Custom.cs b/Content.Server/Holiday/Greet/Custom.cs index 2013ea8d7f..f11647bea6 100644 --- a/Content.Server/Holiday/Greet/Custom.cs +++ b/Content.Server/Holiday/Greet/Custom.cs @@ -6,7 +6,7 @@ namespace Content.Server.Holiday.Greet { [UsedImplicitly] [DataDefinition] - public class Custom : IHolidayGreet + public sealed class Custom : IHolidayGreet { [DataField("text")] private string _greet = string.Empty; diff --git a/Content.Server/Holiday/Greet/DefaultHolidayGreet.cs b/Content.Server/Holiday/Greet/DefaultHolidayGreet.cs index 7f45216d60..f799e5a6d1 100644 --- a/Content.Server/Holiday/Greet/DefaultHolidayGreet.cs +++ b/Content.Server/Holiday/Greet/DefaultHolidayGreet.cs @@ -3,7 +3,7 @@ using Robust.Shared.Localization; namespace Content.Server.Holiday.Greet { - public class DefaultHolidayGreet : IHolidayGreet + public sealed class DefaultHolidayGreet : IHolidayGreet { public string Greet(HolidayPrototype holiday) => Loc.GetString("holiday-greet", ("holidayName", holiday.Name)); } diff --git a/Content.Server/Holiday/HolidayPrototype.cs b/Content.Server/Holiday/HolidayPrototype.cs index fa11bb9492..bd7b30cb42 100644 --- a/Content.Server/Holiday/HolidayPrototype.cs +++ b/Content.Server/Holiday/HolidayPrototype.cs @@ -10,7 +10,7 @@ using Robust.Shared.ViewVariables; namespace Content.Server.Holiday { [Prototype("holiday")] - public class HolidayPrototype : IPrototype + public sealed class HolidayPrototype : IPrototype { [ViewVariables] [DataField("name")] public string Name { get; private set; } = string.Empty; diff --git a/Content.Server/Holiday/HolidaySystem.cs b/Content.Server/Holiday/HolidaySystem.cs index 3d14aaa3e5..30142e3fd2 100644 --- a/Content.Server/Holiday/HolidaySystem.cs +++ b/Content.Server/Holiday/HolidaySystem.cs @@ -12,7 +12,7 @@ using Robust.Shared.ViewVariables; namespace Content.Server.Holiday { - public class HolidaySystem : EntitySystem + public sealed class HolidaySystem : EntitySystem { [Dependency] private readonly IConfigurationManager _configManager = default!; [Dependency] private readonly IPrototypeManager _prototypeManager = default!; @@ -112,7 +112,7 @@ namespace Content.Server.Holiday /// /// Event for when the list of currently active holidays has been refreshed. /// - public class HolidaysRefreshedEvent : EntityEventArgs + public sealed class HolidaysRefreshedEvent : EntityEventArgs { public readonly IEnumerable Holidays; diff --git a/Content.Server/Holiday/ShouldCelebrate/ChineseNewYear.cs b/Content.Server/Holiday/ShouldCelebrate/ChineseNewYear.cs index 6e26b7846b..f71df8b82e 100644 --- a/Content.Server/Holiday/ShouldCelebrate/ChineseNewYear.cs +++ b/Content.Server/Holiday/ShouldCelebrate/ChineseNewYear.cs @@ -4,7 +4,7 @@ using Content.Server.Holiday.Interfaces; namespace Content.Server.Holiday.ShouldCelebrate { - public class ChineseNewYear : IHolidayShouldCelebrate + public sealed class ChineseNewYear : IHolidayShouldCelebrate { public bool ShouldCelebrate(DateTime date, HolidayPrototype holiday) { diff --git a/Content.Server/Holiday/ShouldCelebrate/Computus.cs b/Content.Server/Holiday/ShouldCelebrate/Computus.cs index 311807aae9..bb3febe6c0 100644 --- a/Content.Server/Holiday/ShouldCelebrate/Computus.cs +++ b/Content.Server/Holiday/ShouldCelebrate/Computus.cs @@ -10,7 +10,7 @@ namespace Content.Server.Holiday.ShouldCelebrate /// [UsedImplicitly] [DataDefinition] - public class Computus : DefaultHolidayShouldCelebrate + public sealed class Computus : DefaultHolidayShouldCelebrate { [DataField("daysEarly")] private byte _daysEarly = 1; diff --git a/Content.Server/Holiday/ShouldCelebrate/DayOfYear.cs b/Content.Server/Holiday/ShouldCelebrate/DayOfYear.cs index c62c56fb1d..d6612b6aab 100644 --- a/Content.Server/Holiday/ShouldCelebrate/DayOfYear.cs +++ b/Content.Server/Holiday/ShouldCelebrate/DayOfYear.cs @@ -10,7 +10,7 @@ namespace Content.Server.Holiday.ShouldCelebrate /// [UsedImplicitly] [DataDefinition] - public class DayOfYear : IHolidayShouldCelebrate + public sealed class DayOfYear : IHolidayShouldCelebrate { [DataField("dayOfYear")] private uint _dayOfYear = 1; diff --git a/Content.Server/Holiday/ShouldCelebrate/DefaultHolidayShouldCelebrate.cs b/Content.Server/Holiday/ShouldCelebrate/DefaultHolidayShouldCelebrate.cs index 9f5c574b92..2cd8ef2160 100644 --- a/Content.Server/Holiday/ShouldCelebrate/DefaultHolidayShouldCelebrate.cs +++ b/Content.Server/Holiday/ShouldCelebrate/DefaultHolidayShouldCelebrate.cs @@ -4,6 +4,7 @@ using Content.Server.Holiday.Interfaces; namespace Content.Server.Holiday.ShouldCelebrate { + [Virtual] public class DefaultHolidayShouldCelebrate : IHolidayShouldCelebrate { public virtual bool ShouldCelebrate(DateTime date, HolidayPrototype holiday) diff --git a/Content.Server/Holiday/ShouldCelebrate/FridayThirteenth.cs b/Content.Server/Holiday/ShouldCelebrate/FridayThirteenth.cs index 2cc7bda7d4..9fbfcc656b 100644 --- a/Content.Server/Holiday/ShouldCelebrate/FridayThirteenth.cs +++ b/Content.Server/Holiday/ShouldCelebrate/FridayThirteenth.cs @@ -8,7 +8,7 @@ namespace Content.Server.Holiday.ShouldCelebrate /// For Friday the 13th. Spooky! /// [UsedImplicitly] - public class FridayThirteenth : IHolidayShouldCelebrate + public sealed class FridayThirteenth : IHolidayShouldCelebrate { public bool ShouldCelebrate(DateTime date, HolidayPrototype holiday) { diff --git a/Content.Server/Holiday/ShouldCelebrate/WeekdayInMonth.cs b/Content.Server/Holiday/ShouldCelebrate/WeekdayInMonth.cs index 425e0ed2ed..92614adf10 100644 --- a/Content.Server/Holiday/ShouldCelebrate/WeekdayInMonth.cs +++ b/Content.Server/Holiday/ShouldCelebrate/WeekdayInMonth.cs @@ -9,7 +9,7 @@ namespace Content.Server.Holiday.ShouldCelebrate /// For a holiday that happens the first instance of a weekday on a month. /// [UsedImplicitly] - public class WeekdayInMonth : DefaultHolidayShouldCelebrate + public sealed class WeekdayInMonth : DefaultHolidayShouldCelebrate { [DataField("weekday")] private DayOfWeek _weekday = DayOfWeek.Monday; diff --git a/Content.Server/Info/RulesManager.cs b/Content.Server/Info/RulesManager.cs index 975cb1a108..8b46b13a45 100644 --- a/Content.Server/Info/RulesManager.cs +++ b/Content.Server/Info/RulesManager.cs @@ -4,7 +4,7 @@ using Robust.Shared.Network; namespace Content.Server.Info; -public class RulesManager : SharedRulesManager +public sealed class RulesManager : SharedRulesManager { [Dependency] private readonly INetManager _netManager = default!; diff --git a/Content.Server/Info/ShowRulesCommand.cs b/Content.Server/Info/ShowRulesCommand.cs index 101f1dd99c..5d33f5118e 100644 --- a/Content.Server/Info/ShowRulesCommand.cs +++ b/Content.Server/Info/ShowRulesCommand.cs @@ -11,7 +11,7 @@ using Robust.Shared.Network; namespace Content.Server.Info; [AdminCommand(AdminFlags.Admin)] -public class ShowRulesCommand : IConsoleCommand +public sealed class ShowRulesCommand : IConsoleCommand { public string Command => "showrules"; public string Description => "Opens the rules popup for the specified player."; diff --git a/Content.Server/Instruments/InstrumentSystem.CVars.cs b/Content.Server/Instruments/InstrumentSystem.CVars.cs index 9ffa8bb851..0467d94f2b 100644 --- a/Content.Server/Instruments/InstrumentSystem.CVars.cs +++ b/Content.Server/Instruments/InstrumentSystem.CVars.cs @@ -2,7 +2,7 @@ using Content.Shared.CCVar; namespace Content.Server.Instruments; -public partial class InstrumentSystem +public sealed partial class InstrumentSystem { public int MaxMidiEventsPerSecond { get; private set; } public int MaxMidiEventsPerBatch { get; private set; } diff --git a/Content.Server/Interaction/Components/ClumsyComponent.cs b/Content.Server/Interaction/Components/ClumsyComponent.cs index 33f9e82e72..f64f74e9f3 100644 --- a/Content.Server/Interaction/Components/ClumsyComponent.cs +++ b/Content.Server/Interaction/Components/ClumsyComponent.cs @@ -8,7 +8,7 @@ namespace Content.Server.Interaction.Components /// A simple clumsy tag-component. /// [RegisterComponent] - public class ClumsyComponent : Component + public sealed class ClumsyComponent : Component { [Dependency] private readonly IRobustRandom _random = default!; diff --git a/Content.Server/Interaction/Components/EmitSoundOnUseComponent.cs b/Content.Server/Interaction/Components/EmitSoundOnUseComponent.cs index e94c829150..d39f5e4e85 100644 --- a/Content.Server/Interaction/Components/EmitSoundOnUseComponent.cs +++ b/Content.Server/Interaction/Components/EmitSoundOnUseComponent.cs @@ -7,7 +7,7 @@ namespace Content.Server.Interaction.Components /// Simple sound emitter that emits sound on UseInHand /// [RegisterComponent] - public class EmitSoundOnUseComponent : BaseEmitSoundComponent + public sealed class EmitSoundOnUseComponent : BaseEmitSoundComponent { } } diff --git a/Content.Server/Interaction/TilePryCommand.cs b/Content.Server/Interaction/TilePryCommand.cs index fd5845b669..be2d7a1335 100644 --- a/Content.Server/Interaction/TilePryCommand.cs +++ b/Content.Server/Interaction/TilePryCommand.cs @@ -14,7 +14,7 @@ namespace Content.Server.Interaction /// /// [AdminCommand(AdminFlags.Debug)] - class TilePryCommand : IConsoleCommand + sealed class TilePryCommand : IConsoleCommand { [Dependency] private readonly IEntityManager _entities = default!; diff --git a/Content.Server/Inventory/ServerInventoryComponent.cs b/Content.Server/Inventory/ServerInventoryComponent.cs index 25a68ab064..14fffde52b 100644 --- a/Content.Server/Inventory/ServerInventoryComponent.cs +++ b/Content.Server/Inventory/ServerInventoryComponent.cs @@ -5,4 +5,4 @@ namespace Content.Server.Inventory; [RegisterComponent] [ComponentReference(typeof(InventoryComponent))] -public class ServerInventoryComponent : InventoryComponent { } +public sealed class ServerInventoryComponent : InventoryComponent { } diff --git a/Content.Server/Jittering/JitteringSystem.cs b/Content.Server/Jittering/JitteringSystem.cs index 5e1ac722b4..34f6cc9d39 100644 --- a/Content.Server/Jittering/JitteringSystem.cs +++ b/Content.Server/Jittering/JitteringSystem.cs @@ -2,7 +2,7 @@ using Content.Shared.Jittering; namespace Content.Server.Jittering { - public class JitteringSystem : SharedJitteringSystem + public sealed class JitteringSystem : SharedJitteringSystem { // This entity system only exists on the server so it will be registered, otherwise we can't use SharedJitteringSystem... } diff --git a/Content.Server/Jobs/GiveItemOnHolidaySpecial.cs b/Content.Server/Jobs/GiveItemOnHolidaySpecial.cs index bfd8c9bf6b..76c250ce0b 100644 --- a/Content.Server/Jobs/GiveItemOnHolidaySpecial.cs +++ b/Content.Server/Jobs/GiveItemOnHolidaySpecial.cs @@ -13,7 +13,7 @@ namespace Content.Server.Jobs { [UsedImplicitly] [DataDefinition] - public class GiveItemOnHolidaySpecial : JobSpecial + public sealed class GiveItemOnHolidaySpecial : JobSpecial { [DataField("holiday", customTypeSerializer:typeof(PrototypeIdSerializer))] public string Holiday { get; } = string.Empty; diff --git a/Content.Server/Kitchen/Components/ExtractableComponent.cs b/Content.Server/Kitchen/Components/ExtractableComponent.cs index 9c46bbc173..0a1d55ac1e 100644 --- a/Content.Server/Kitchen/Components/ExtractableComponent.cs +++ b/Content.Server/Kitchen/Components/ExtractableComponent.cs @@ -12,7 +12,7 @@ namespace Content.Server.Kitchen.Components /// [RegisterComponent] [Friend(typeof(ReagentGrinderSystem))] - public class ExtractableComponent : Component + public sealed class ExtractableComponent : Component { [ViewVariables] [DataField("juiceSolution")] diff --git a/Content.Server/Kitchen/Components/KitchenSpikeComponent.cs b/Content.Server/Kitchen/Components/KitchenSpikeComponent.cs index 66467dab1a..7e0d13fd60 100644 --- a/Content.Server/Kitchen/Components/KitchenSpikeComponent.cs +++ b/Content.Server/Kitchen/Components/KitchenSpikeComponent.cs @@ -13,12 +13,12 @@ using System.Threading; namespace Content.Server.Kitchen.Components { [RegisterComponent, Friend(typeof(KitchenSpikeSystem))] - public class KitchenSpikeComponent : SharedKitchenSpikeComponent, ISuicideAct + public sealed class KitchenSpikeComponent : SharedKitchenSpikeComponent, ISuicideAct { public int MeatParts; public string? MeatPrototype; - // TODO: Spiking alive mobs? (Replace with uid) (deal damage to their limbs on spiking, kill on first butcher attempt?) + // TODO: Spiking alive mobs? (Replace with uid) (deal damage to their limbs on spiking, kill on first butcher attempt?) public string MeatSource1p = "?"; public string MeatSource0 = "?"; public string MeatName = "?"; diff --git a/Content.Server/Kitchen/Components/MicrowaveComponent.cs b/Content.Server/Kitchen/Components/MicrowaveComponent.cs index 1c681e11a3..1086110dc3 100644 --- a/Content.Server/Kitchen/Components/MicrowaveComponent.cs +++ b/Content.Server/Kitchen/Components/MicrowaveComponent.cs @@ -31,7 +31,7 @@ namespace Content.Server.Kitchen.Components { [RegisterComponent] [ComponentReference(typeof(IActivate))] - public class MicrowaveComponent : SharedMicrowaveComponent, IActivate, IInteractUsing, ISuicideAct, IBreakAct + public sealed class MicrowaveComponent : SharedMicrowaveComponent, IActivate, IInteractUsing, ISuicideAct, IBreakAct { [Dependency] private readonly IEntityManager _entities = default!; @@ -550,7 +550,7 @@ namespace Content.Server.Kitchen.Components } } - public class BeingMicrowavedEvent : HandledEntityEventArgs + public sealed class BeingMicrowavedEvent : HandledEntityEventArgs { public EntityUid Microwave; diff --git a/Content.Server/Kitchen/Components/ReagentGrinderComponent.cs b/Content.Server/Kitchen/Components/ReagentGrinderComponent.cs index 2511ccf781..98a8c0c91e 100644 --- a/Content.Server/Kitchen/Components/ReagentGrinderComponent.cs +++ b/Content.Server/Kitchen/Components/ReagentGrinderComponent.cs @@ -15,7 +15,7 @@ namespace Content.Server.Kitchen.Components /// it contained, juice an apple and get "apple juice". /// [RegisterComponent] - public class ReagentGrinderComponent : SharedReagentGrinderComponent + public sealed class ReagentGrinderComponent : SharedReagentGrinderComponent { [ViewVariables] public ContainerSlot BeakerContainer = default!; diff --git a/Content.Server/Kitchen/EntitySystems/KitchenSpikeSystem.cs b/Content.Server/Kitchen/EntitySystems/KitchenSpikeSystem.cs index 7f11412cbb..d408dc460a 100644 --- a/Content.Server/Kitchen/EntitySystems/KitchenSpikeSystem.cs +++ b/Content.Server/Kitchen/EntitySystems/KitchenSpikeSystem.cs @@ -16,7 +16,7 @@ using static Content.Shared.Kitchen.Components.SharedKitchenSpikeComponent; namespace Content.Server.Kitchen.EntitySystems { - internal class KitchenSpikeSystem : EntitySystem + internal sealed class KitchenSpikeSystem : EntitySystem { [Dependency] private readonly PopupSystem _popupSystem = default!; [Dependency] private readonly DoAfterSystem _doAfter = default!; @@ -81,7 +81,7 @@ namespace Content.Server.Kitchen.EntitySystems { if (args.Handled) return; - + if (TryGetPiece(uid, args.User, args.Used)) args.Handled = true; } @@ -148,7 +148,7 @@ namespace Content.Server.Kitchen.EntitySystems { if (!Resolve(uid, ref component, ref appearance, false)) return; - + appearance.SetData(KitchenSpikeVisuals.Status, (component.MeatParts > 0) ? KitchenSpikeStatus.Bloody : KitchenSpikeStatus.Empty); } @@ -217,7 +217,7 @@ namespace Content.Server.Kitchen.EntitySystems return true; } - private class SpikingFinishedEvent : EntityEventArgs + private sealed class SpikingFinishedEvent : EntityEventArgs { public EntityUid VictimUid; public EntityUid UserUid; @@ -229,7 +229,7 @@ namespace Content.Server.Kitchen.EntitySystems } } - private class SpikingFailEvent : EntityEventArgs + private sealed class SpikingFailEvent : EntityEventArgs { public EntityUid VictimUid; diff --git a/Content.Server/Kitchen/Events/ExtractableScalingEvent.cs b/Content.Server/Kitchen/Events/ExtractableScalingEvent.cs index fdef6c9c2a..7b135431aa 100644 --- a/Content.Server/Kitchen/Events/ExtractableScalingEvent.cs +++ b/Content.Server/Kitchen/Events/ExtractableScalingEvent.cs @@ -5,9 +5,9 @@ namespace Content.Server.Kitchen.Events /// /// Used in scaling amount of solution to extract in juicing /// - public class ExtractableScalingEvent : EntityEventArgs + public sealed class ExtractableScalingEvent : EntityEventArgs { - + public ExtractableScalingEvent() { Scalar = 1f; diff --git a/Content.Server/Kudzu/GrowingKudzuComponent.cs b/Content.Server/Kudzu/GrowingKudzuComponent.cs index 4d919826cd..7724acc2f3 100644 --- a/Content.Server/Kudzu/GrowingKudzuComponent.cs +++ b/Content.Server/Kudzu/GrowingKudzuComponent.cs @@ -5,7 +5,7 @@ using Robust.Shared.ViewVariables; namespace Content.Server.Kudzu; [RegisterComponent] -public class GrowingKudzuComponent : Component +public sealed class GrowingKudzuComponent : Component { [DataField("growthLevel")] public int GrowthLevel = 1; diff --git a/Content.Server/Kudzu/GrowingKudzuSystem.cs b/Content.Server/Kudzu/GrowingKudzuSystem.cs index 53b13c8692..319e2b47ef 100644 --- a/Content.Server/Kudzu/GrowingKudzuSystem.cs +++ b/Content.Server/Kudzu/GrowingKudzuSystem.cs @@ -7,7 +7,7 @@ using Robust.Shared.Random; namespace Content.Server.Kudzu; -public class GrowingKudzuSystem : EntitySystem +public sealed class GrowingKudzuSystem : EntitySystem { [Dependency] private readonly IRobustRandom _robustRandom = default!; diff --git a/Content.Server/Kudzu/SpreaderComponent.cs b/Content.Server/Kudzu/SpreaderComponent.cs index 6af4079ed6..97f7bf92a4 100644 --- a/Content.Server/Kudzu/SpreaderComponent.cs +++ b/Content.Server/Kudzu/SpreaderComponent.cs @@ -11,7 +11,7 @@ namespace Content.Server.Kudzu; /// Currently does not support growing in space. /// [RegisterComponent, Friend(typeof(SpreaderSystem))] -public class SpreaderComponent : Component +public sealed class SpreaderComponent : Component { /// /// Chance for it to grow on any given tick, after the normal growth rate-limit (if it doesn't grow, SpreaderSystem will pick another one.). diff --git a/Content.Server/Kudzu/SpreaderSystem.cs b/Content.Server/Kudzu/SpreaderSystem.cs index d3935484ad..e4205b3b57 100644 --- a/Content.Server/Kudzu/SpreaderSystem.cs +++ b/Content.Server/Kudzu/SpreaderSystem.cs @@ -13,7 +13,7 @@ using Robust.Shared.Random; namespace Content.Server.Kudzu; // Future work includes making the growths per interval thing not global, but instead per "group" -public class SpreaderSystem : EntitySystem +public sealed class SpreaderSystem : EntitySystem { [Dependency] private readonly IRobustRandom _robustRandom = default!; [Dependency] private readonly IMapManager _mapManager = default!; diff --git a/Content.Server/Labels/Label/Components/HandLabelerComponent.cs b/Content.Server/Labels/Label/Components/HandLabelerComponent.cs index d534192f93..3bde313a51 100644 --- a/Content.Server/Labels/Label/Components/HandLabelerComponent.cs +++ b/Content.Server/Labels/Label/Components/HandLabelerComponent.cs @@ -6,7 +6,7 @@ using Robust.Shared.ViewVariables; namespace Content.Server.Labels.Components { [RegisterComponent] - public class HandLabelerComponent : Component + public sealed class HandLabelerComponent : Component { [ViewVariables(VVAccess.ReadWrite)] [DataField("assignedLabel")] diff --git a/Content.Server/Labels/Label/Components/LabelComponent.cs b/Content.Server/Labels/Label/Components/LabelComponent.cs index 7c6edd43a2..621852b3f5 100644 --- a/Content.Server/Labels/Label/Components/LabelComponent.cs +++ b/Content.Server/Labels/Label/Components/LabelComponent.cs @@ -5,7 +5,7 @@ using Robust.Shared.ViewVariables; namespace Content.Server.Labels.Components { [RegisterComponent] - public class LabelComponent : Component + public sealed class LabelComponent : Component { [ViewVariables(VVAccess.ReadWrite)] [DataField("currentLabel")] diff --git a/Content.Server/Labels/Label/Components/PaperLabelComponent.cs b/Content.Server/Labels/Label/Components/PaperLabelComponent.cs index d4f980b6f5..e63bb05a98 100644 --- a/Content.Server/Labels/Label/Components/PaperLabelComponent.cs +++ b/Content.Server/Labels/Label/Components/PaperLabelComponent.cs @@ -8,7 +8,7 @@ namespace Content.Server.Labels.Components /// This component allows you to attach and remove a piece of paper to an entity. /// [RegisterComponent] - public class PaperLabelComponent : Component + public sealed class PaperLabelComponent : Component { [DataField("labelSlot")] public ItemSlot LabelSlot = new(); diff --git a/Content.Server/Labels/Label/HandLabelerSystem.cs b/Content.Server/Labels/Label/HandLabelerSystem.cs index 4afb84f16e..93c9cbf332 100644 --- a/Content.Server/Labels/Label/HandLabelerSystem.cs +++ b/Content.Server/Labels/Label/HandLabelerSystem.cs @@ -18,7 +18,7 @@ namespace Content.Server.Labels /// A hand labeler system that lets an object apply labels to objects with the . /// [UsedImplicitly] - public class HandLabelerSystem : EntitySystem + public sealed class HandLabelerSystem : EntitySystem { [Dependency] private readonly UserInterfaceSystem _userInterfaceSystem = default!; diff --git a/Content.Server/Labels/Label/LabelSystem.cs b/Content.Server/Labels/Label/LabelSystem.cs index bb56ece451..aac0320c7a 100644 --- a/Content.Server/Labels/Label/LabelSystem.cs +++ b/Content.Server/Labels/Label/LabelSystem.cs @@ -16,7 +16,7 @@ namespace Content.Server.Labels /// A system that lets players see the contents of a label on an object. /// [UsedImplicitly] - public class LabelSystem : EntitySystem + public sealed class LabelSystem : EntitySystem { [Dependency] private readonly ItemSlotsSystem _itemSlotsSystem = default!; diff --git a/Content.Server/Lathe/Components/LatheComponent.cs b/Content.Server/Lathe/Components/LatheComponent.cs index a1800ce947..06407ddbc8 100644 --- a/Content.Server/Lathe/Components/LatheComponent.cs +++ b/Content.Server/Lathe/Components/LatheComponent.cs @@ -21,7 +21,7 @@ namespace Content.Server.Lathe.Components { [RegisterComponent] [ComponentReference(typeof(IActivate))] - public class LatheComponent : SharedLatheComponent, IInteractUsing, IActivate + public sealed class LatheComponent : SharedLatheComponent, IInteractUsing, IActivate { [Dependency] private readonly IEntityManager _entMan = default!; @@ -35,7 +35,7 @@ namespace Content.Server.Lathe.Components private LatheState _state = LatheState.Base; - protected virtual LatheState State + protected LatheState State { get => _state; set => _state = value; diff --git a/Content.Server/Lathe/Components/LatheDatabaseComponent.cs b/Content.Server/Lathe/Components/LatheDatabaseComponent.cs index fe589de577..a4292ef46b 100644 --- a/Content.Server/Lathe/Components/LatheDatabaseComponent.cs +++ b/Content.Server/Lathe/Components/LatheDatabaseComponent.cs @@ -9,7 +9,7 @@ namespace Content.Server.Lathe.Components { [RegisterComponent] [ComponentReference(typeof(SharedLatheDatabaseComponent))] - public class LatheDatabaseComponent : SharedLatheDatabaseComponent + public sealed class LatheDatabaseComponent : SharedLatheDatabaseComponent { /// /// Whether new recipes can be added to this database or not. diff --git a/Content.Server/Lathe/Components/MaterialStorageComponent.cs b/Content.Server/Lathe/Components/MaterialStorageComponent.cs index 58d466803b..8aa2167adb 100644 --- a/Content.Server/Lathe/Components/MaterialStorageComponent.cs +++ b/Content.Server/Lathe/Components/MaterialStorageComponent.cs @@ -9,7 +9,7 @@ namespace Content.Server.Lathe.Components { [RegisterComponent] [ComponentReference(typeof(SharedMaterialStorageComponent))] - public class MaterialStorageComponent : SharedMaterialStorageComponent + public sealed class MaterialStorageComponent : SharedMaterialStorageComponent { [ViewVariables] protected override Dictionary Storage { get; set; } = new(); diff --git a/Content.Server/Lathe/Components/ProtolatheDatabaseComponent.cs b/Content.Server/Lathe/Components/ProtolatheDatabaseComponent.cs index e20bdad292..a5bd0d2499 100644 --- a/Content.Server/Lathe/Components/ProtolatheDatabaseComponent.cs +++ b/Content.Server/Lathe/Components/ProtolatheDatabaseComponent.cs @@ -11,7 +11,7 @@ namespace Content.Server.Lathe.Components { [RegisterComponent] [ComponentReference(typeof(SharedLatheDatabaseComponent))] - public class ProtolatheDatabaseComponent : SharedProtolatheDatabaseComponent + public sealed class ProtolatheDatabaseComponent : SharedProtolatheDatabaseComponent { [Dependency] private readonly IPrototypeManager _prototypeManager = default!; diff --git a/Content.Server/Light/Components/EmergencyLightComponent.cs b/Content.Server/Light/Components/EmergencyLightComponent.cs index 23fd78c9eb..1039ccb1e4 100644 --- a/Content.Server/Light/Components/EmergencyLightComponent.cs +++ b/Content.Server/Light/Components/EmergencyLightComponent.cs @@ -18,7 +18,7 @@ namespace Content.Server.Light.Components /// [RegisterComponent] #pragma warning disable 618 - public class EmergencyLightComponent : SharedEmergencyLightComponent, IExamine + public sealed class EmergencyLightComponent : SharedEmergencyLightComponent, IExamine #pragma warning restore 618 { [Dependency] private readonly IEntityManager _entMan = default!; diff --git a/Content.Server/Light/Components/LightBehaviourComponent.cs b/Content.Server/Light/Components/LightBehaviourComponent.cs index f90edd129b..f9e2d6317e 100644 --- a/Content.Server/Light/Components/LightBehaviourComponent.cs +++ b/Content.Server/Light/Components/LightBehaviourComponent.cs @@ -7,7 +7,7 @@ namespace Content.Server.Light.Components /// A component which applies a specific behaviour to a PointLightComponent on its owner. /// [RegisterComponent] - public class LightBehaviourComponent : SharedLightBehaviourComponent + public sealed class LightBehaviourComponent : SharedLightBehaviourComponent { } diff --git a/Content.Server/Light/Components/LightBulbComponent.cs b/Content.Server/Light/Components/LightBulbComponent.cs index c0625134f6..82a7112076 100644 --- a/Content.Server/Light/Components/LightBulbComponent.cs +++ b/Content.Server/Light/Components/LightBulbComponent.cs @@ -13,7 +13,7 @@ namespace Content.Server.Light.Components /// Component that represents a light bulb. Can be broken, or burned, which turns them mostly useless. /// [RegisterComponent, Friend(typeof(LightBulbSystem))] - public class LightBulbComponent : Component, IBreakAct + public sealed class LightBulbComponent : Component, IBreakAct { [DataField("color")] public Color Color = Color.White; diff --git a/Content.Server/Light/Components/LightReplacerComponent.cs b/Content.Server/Light/Components/LightReplacerComponent.cs index 37dc7bde62..eff51f62fc 100644 --- a/Content.Server/Light/Components/LightReplacerComponent.cs +++ b/Content.Server/Light/Components/LightReplacerComponent.cs @@ -16,7 +16,7 @@ namespace Content.Server.Light.Components /// Can be reloaded by new light tubes or light bulbs /// [RegisterComponent] - public class LightReplacerComponent : Component + public sealed class LightReplacerComponent : Component { [DataField("sound")] public SoundSpecifier Sound = new SoundPathSpecifier("/Audio/Weapons/click.ogg"); @@ -35,7 +35,7 @@ namespace Content.Server.Light.Components [Serializable] [DataDefinition] - public class LightReplacerEntity + public sealed class LightReplacerEntity { [DataField("name", customTypeSerializer: typeof(PrototypeIdSerializer))] public string PrototypeName = default!; diff --git a/Content.Server/Light/Components/LitOnPoweredComponent.cs b/Content.Server/Light/Components/LitOnPoweredComponent.cs index 5d1b3d4193..54555d4007 100644 --- a/Content.Server/Light/Components/LitOnPoweredComponent.cs +++ b/Content.Server/Light/Components/LitOnPoweredComponent.cs @@ -11,7 +11,7 @@ namespace Content.Server.Light.Components /// state of an entity. /// [RegisterComponent, Friend(typeof(PoweredLightSystem))] - public class LitOnPoweredComponent : Component + public sealed class LitOnPoweredComponent : Component { } } diff --git a/Content.Server/Light/Components/MatchboxComponent.cs b/Content.Server/Light/Components/MatchboxComponent.cs index 07b603b291..7512c1e2ec 100644 --- a/Content.Server/Light/Components/MatchboxComponent.cs +++ b/Content.Server/Light/Components/MatchboxComponent.cs @@ -8,7 +8,7 @@ namespace Content.Server.Light.Components // TODO make changes in icons when different threshold reached // e.g. different icons for 10% 50% 100% [RegisterComponent] - public class MatchboxComponent : Component + public sealed class MatchboxComponent : Component { } } diff --git a/Content.Server/Light/Components/MatchstickComponent.cs b/Content.Server/Light/Components/MatchstickComponent.cs index 507d505afb..4ae57d9210 100644 --- a/Content.Server/Light/Components/MatchstickComponent.cs +++ b/Content.Server/Light/Components/MatchstickComponent.cs @@ -11,7 +11,7 @@ namespace Content.Server.Light.Components { [RegisterComponent] [Friend(typeof(MatchstickSystem))] - public class MatchstickComponent : Component + public sealed class MatchstickComponent : Component { /// /// Current state to matchstick. Can be Unlit, Lit or Burnt. diff --git a/Content.Server/Light/Components/PoweredLightComponent.cs b/Content.Server/Light/Components/PoweredLightComponent.cs index 35c0010220..9fb6fa71b6 100644 --- a/Content.Server/Light/Components/PoweredLightComponent.cs +++ b/Content.Server/Light/Components/PoweredLightComponent.cs @@ -17,7 +17,7 @@ namespace Content.Server.Light.Components /// Component that represents a wall light. It has a light bulb that can be replaced when broken. /// [RegisterComponent, Friend(typeof(PoweredLightSystem))] - public class PoweredLightComponent : Component + public sealed class PoweredLightComponent : Component { [DataField("burnHandSound")] public SoundSpecifier BurnHandSound = new SoundPathSpecifier("/Audio/Effects/lightburn.ogg"); diff --git a/Content.Server/Light/Components/UnpoweredFlashlightComponent.cs b/Content.Server/Light/Components/UnpoweredFlashlightComponent.cs index d627dcaddc..dcfe866498 100644 --- a/Content.Server/Light/Components/UnpoweredFlashlightComponent.cs +++ b/Content.Server/Light/Components/UnpoweredFlashlightComponent.cs @@ -10,7 +10,7 @@ namespace Content.Server.Light.Components /// It doesn't consume any power and can be toggle only by verb. /// [RegisterComponent] - public class UnpoweredFlashlightComponent : Component + public sealed class UnpoweredFlashlightComponent : Component { [DataField("toggleFlashlightSound")] public SoundSpecifier ToggleSound = new SoundPathSpecifier("/Audio/Items/flashlight_pda.ogg"); diff --git a/Content.Server/Light/EntitySystems/LitOnPoweredSystem.cs b/Content.Server/Light/EntitySystems/LitOnPoweredSystem.cs index fad5fa9e07..9edd1f182d 100644 --- a/Content.Server/Light/EntitySystems/LitOnPoweredSystem.cs +++ b/Content.Server/Light/EntitySystems/LitOnPoweredSystem.cs @@ -6,7 +6,7 @@ using Robust.Shared.GameObjects; namespace Content.Server.Light.EntitySystems { - public class LitOnPoweredSystem : EntitySystem + public sealed class LitOnPoweredSystem : EntitySystem { public override void Initialize() { diff --git a/Content.Server/Light/EntitySystems/MatchboxSystem.cs b/Content.Server/Light/EntitySystems/MatchboxSystem.cs index 434c036898..520415645b 100644 --- a/Content.Server/Light/EntitySystems/MatchboxSystem.cs +++ b/Content.Server/Light/EntitySystems/MatchboxSystem.cs @@ -6,7 +6,7 @@ using Robust.Shared.IoC; namespace Content.Server.Light.EntitySystems { - public class MatchboxSystem : EntitySystem + public sealed class MatchboxSystem : EntitySystem { public override void Initialize() { diff --git a/Content.Server/Light/EntitySystems/MatchstickSystem.cs b/Content.Server/Light/EntitySystems/MatchstickSystem.cs index 80ba6e8a6c..d38d9e41ac 100644 --- a/Content.Server/Light/EntitySystems/MatchstickSystem.cs +++ b/Content.Server/Light/EntitySystems/MatchstickSystem.cs @@ -14,7 +14,7 @@ using Robust.Shared.Player; namespace Content.Server.Light.EntitySystems { - public class MatchstickSystem : EntitySystem + public sealed class MatchstickSystem : EntitySystem { private HashSet _litMatches = new(); [Dependency] diff --git a/Content.Server/Light/EntitySystems/PoweredLightSystem.cs b/Content.Server/Light/EntitySystems/PoweredLightSystem.cs index 344b0ddb8b..ef93e43537 100644 --- a/Content.Server/Light/EntitySystems/PoweredLightSystem.cs +++ b/Content.Server/Light/EntitySystems/PoweredLightSystem.cs @@ -29,7 +29,7 @@ namespace Content.Server.Light.EntitySystems /// /// System for the PoweredLightComponens /// - public class PoweredLightSystem : EntitySystem + public sealed class PoweredLightSystem : EntitySystem { [Dependency] private readonly IGameTiming _gameTiming = default!; [Dependency] private readonly DamageableSystem _damageableSystem = default!; diff --git a/Content.Server/Light/EntitySystems/UnpoweredFlashlightSystem.cs b/Content.Server/Light/EntitySystems/UnpoweredFlashlightSystem.cs index 74dc3c641f..a8aabcb31a 100644 --- a/Content.Server/Light/EntitySystems/UnpoweredFlashlightSystem.cs +++ b/Content.Server/Light/EntitySystems/UnpoweredFlashlightSystem.cs @@ -12,7 +12,7 @@ using Robust.Shared.IoC; namespace Content.Server.Light.EntitySystems { - public class UnpoweredFlashlightSystem : EntitySystem + public sealed class UnpoweredFlashlightSystem : EntitySystem { public override void Initialize() { diff --git a/Content.Server/Light/Events/LightToggleEvent.cs b/Content.Server/Light/Events/LightToggleEvent.cs index d51d89a16a..72a04153d3 100644 --- a/Content.Server/Light/Events/LightToggleEvent.cs +++ b/Content.Server/Light/Events/LightToggleEvent.cs @@ -2,7 +2,7 @@ using Robust.Shared.GameObjects; namespace Content.Server.Light.Events { - public class LightToggleEvent : EntityEventArgs + public sealed class LightToggleEvent : EntityEventArgs { public bool IsOn; diff --git a/Content.Server/Lock/LockComponent.cs b/Content.Server/Lock/LockComponent.cs index 09c0ede21a..d10ba7bdd5 100644 --- a/Content.Server/Lock/LockComponent.cs +++ b/Content.Server/Lock/LockComponent.cs @@ -9,7 +9,7 @@ namespace Content.Server.Storage.Components /// Allows locking/unlocking, with access determined by AccessReader /// [RegisterComponent] - public class LockComponent : Component + public sealed class LockComponent : Component { [ViewVariables(VVAccess.ReadWrite)] [DataField("locked")] public bool Locked { get; set; } = true; [ViewVariables(VVAccess.ReadWrite)] [DataField("lockOnClick")] public bool LockOnClick { get; set; } = false; diff --git a/Content.Server/Lock/LockSystem.cs b/Content.Server/Lock/LockSystem.cs index c1ecc097ef..c0be85e314 100644 --- a/Content.Server/Lock/LockSystem.cs +++ b/Content.Server/Lock/LockSystem.cs @@ -21,7 +21,7 @@ namespace Content.Server.Lock /// Handles (un)locking and examining of Lock components /// [UsedImplicitly] - public class LockSystem : EntitySystem + public sealed class LockSystem : EntitySystem { [Dependency] private readonly AccessReaderSystem _accessReader = default!; diff --git a/Content.Server/Lock/LockToggledEvent.cs b/Content.Server/Lock/LockToggledEvent.cs index 04ae77010b..cedbb1cd78 100644 --- a/Content.Server/Lock/LockToggledEvent.cs +++ b/Content.Server/Lock/LockToggledEvent.cs @@ -2,7 +2,7 @@ using Robust.Shared.GameObjects; namespace Content.Server.Lock { - public class LockToggledEvent : EntityEventArgs + public sealed class LockToggledEvent : EntityEventArgs { public readonly bool Locked; diff --git a/Content.Server/MachineLinking/Components/SignalButtonComponent.cs b/Content.Server/MachineLinking/Components/SignalButtonComponent.cs index 99d363d6bf..cd2226e2d5 100644 --- a/Content.Server/MachineLinking/Components/SignalButtonComponent.cs +++ b/Content.Server/MachineLinking/Components/SignalButtonComponent.cs @@ -3,7 +3,7 @@ using Robust.Shared.GameObjects; namespace Content.Server.MachineLinking.Components { [RegisterComponent] - public class SignalButtonComponent : Component + public sealed class SignalButtonComponent : Component { } } diff --git a/Content.Server/MachineLinking/Components/SignalLinkerComponent.cs b/Content.Server/MachineLinking/Components/SignalLinkerComponent.cs index fb6ad25fce..3addc0b1b5 100644 --- a/Content.Server/MachineLinking/Components/SignalLinkerComponent.cs +++ b/Content.Server/MachineLinking/Components/SignalLinkerComponent.cs @@ -4,7 +4,7 @@ using Robust.Shared.ViewVariables; namespace Content.Server.MachineLinking.Components { [RegisterComponent] - public class SignalLinkerComponent : Component + public sealed class SignalLinkerComponent : Component { [ViewVariables] public (SignalTransmitterComponent transmitter, string port)? Port; diff --git a/Content.Server/MachineLinking/Components/SignalReceiverComponent.cs b/Content.Server/MachineLinking/Components/SignalReceiverComponent.cs index 362b918b20..56c00039d3 100644 --- a/Content.Server/MachineLinking/Components/SignalReceiverComponent.cs +++ b/Content.Server/MachineLinking/Components/SignalReceiverComponent.cs @@ -8,7 +8,7 @@ using Robust.Shared.ViewVariables; namespace Content.Server.MachineLinking.Components { [RegisterComponent] - public class SignalReceiverComponent : Component + public sealed class SignalReceiverComponent : Component { [DataField("inputs")] private List _inputs = new(); diff --git a/Content.Server/MachineLinking/Components/SignalSwitchComponent.cs b/Content.Server/MachineLinking/Components/SignalSwitchComponent.cs index c0fe44f8db..c8b8aa8286 100644 --- a/Content.Server/MachineLinking/Components/SignalSwitchComponent.cs +++ b/Content.Server/MachineLinking/Components/SignalSwitchComponent.cs @@ -3,7 +3,7 @@ using Robust.Shared.GameObjects; namespace Content.Server.MachineLinking.Components { [RegisterComponent] - public class SignalSwitchComponent : Component + public sealed class SignalSwitchComponent : Component { public bool State; } diff --git a/Content.Server/MachineLinking/Components/SignalTransmitterComponent.cs b/Content.Server/MachineLinking/Components/SignalTransmitterComponent.cs index ba08197013..a3c41c6e27 100644 --- a/Content.Server/MachineLinking/Components/SignalTransmitterComponent.cs +++ b/Content.Server/MachineLinking/Components/SignalTransmitterComponent.cs @@ -8,7 +8,7 @@ using Robust.Shared.ViewVariables; namespace Content.Server.MachineLinking.Components { [RegisterComponent] - public class SignalTransmitterComponent : Component + public sealed class SignalTransmitterComponent : Component { [DataField("outputs")] private List _outputs = new(); diff --git a/Content.Server/MachineLinking/Components/TriggerOnSignalReceivedComponent.cs b/Content.Server/MachineLinking/Components/TriggerOnSignalReceivedComponent.cs index 54a6b410a7..e5b81732bb 100644 --- a/Content.Server/MachineLinking/Components/TriggerOnSignalReceivedComponent.cs +++ b/Content.Server/MachineLinking/Components/TriggerOnSignalReceivedComponent.cs @@ -3,7 +3,7 @@ namespace Content.Server.MachineLinking.Components { [RegisterComponent] - public class TriggerOnSignalReceivedComponent : Component + public sealed class TriggerOnSignalReceivedComponent : Component { } } diff --git a/Content.Server/MachineLinking/Components/TwoWayLeverComponent.cs b/Content.Server/MachineLinking/Components/TwoWayLeverComponent.cs index 6ff0aa7a60..fad1e7a08e 100644 --- a/Content.Server/MachineLinking/Components/TwoWayLeverComponent.cs +++ b/Content.Server/MachineLinking/Components/TwoWayLeverComponent.cs @@ -4,7 +4,7 @@ using Robust.Shared.GameObjects; namespace Content.Server.MachineLinking.Components { [RegisterComponent] - public class TwoWayLeverComponent : Component + public sealed class TwoWayLeverComponent : Component { public TwoWayLeverSignal State; diff --git a/Content.Server/MachineLinking/Events/InvokePortEvent.cs b/Content.Server/MachineLinking/Events/InvokePortEvent.cs index 31601ea9ff..dcd8f18994 100644 --- a/Content.Server/MachineLinking/Events/InvokePortEvent.cs +++ b/Content.Server/MachineLinking/Events/InvokePortEvent.cs @@ -2,7 +2,7 @@ using Robust.Shared.GameObjects; namespace Content.Server.MachineLinking.Events { - public class InvokePortEvent : EntityEventArgs + public sealed class InvokePortEvent : EntityEventArgs { public readonly string Port; public readonly object? Value; diff --git a/Content.Server/MachineLinking/Events/LinkAttemptEvent.cs b/Content.Server/MachineLinking/Events/LinkAttemptEvent.cs index 593311c613..26d81d9351 100644 --- a/Content.Server/MachineLinking/Events/LinkAttemptEvent.cs +++ b/Content.Server/MachineLinking/Events/LinkAttemptEvent.cs @@ -3,7 +3,7 @@ using Robust.Shared.GameObjects; namespace Content.Server.MachineLinking.Events { - public class LinkAttemptEvent : CancellableEntityEventArgs + public sealed class LinkAttemptEvent : CancellableEntityEventArgs { public readonly EntityUid Attemptee; public readonly SignalTransmitterComponent TransmitterComponent; diff --git a/Content.Server/MachineLinking/Events/PortDisconnectedEvent.cs b/Content.Server/MachineLinking/Events/PortDisconnectedEvent.cs index c9b049d29d..a392d48a3c 100644 --- a/Content.Server/MachineLinking/Events/PortDisconnectedEvent.cs +++ b/Content.Server/MachineLinking/Events/PortDisconnectedEvent.cs @@ -2,7 +2,7 @@ using Robust.Shared.GameObjects; namespace Content.Server.MachineLinking.Events { - public class PortDisconnectedEvent : EntityEventArgs + public sealed class PortDisconnectedEvent : EntityEventArgs { public readonly string Port; diff --git a/Content.Server/MachineLinking/Events/SignalReceivedEvent.cs b/Content.Server/MachineLinking/Events/SignalReceivedEvent.cs index 366db66c38..4984f4af3a 100644 --- a/Content.Server/MachineLinking/Events/SignalReceivedEvent.cs +++ b/Content.Server/MachineLinking/Events/SignalReceivedEvent.cs @@ -2,7 +2,7 @@ using Robust.Shared.GameObjects; namespace Content.Server.MachineLinking.Events { - public class SignalReceivedEvent : EntityEventArgs + public sealed class SignalReceivedEvent : EntityEventArgs { public readonly string Port; public readonly object? Value; diff --git a/Content.Server/MachineLinking/Events/SignalValueRequestedEvent.cs b/Content.Server/MachineLinking/Events/SignalValueRequestedEvent.cs index 4f84410505..a472735202 100644 --- a/Content.Server/MachineLinking/Events/SignalValueRequestedEvent.cs +++ b/Content.Server/MachineLinking/Events/SignalValueRequestedEvent.cs @@ -3,7 +3,7 @@ using Robust.Shared.GameObjects; namespace Content.Server.MachineLinking.Events { - public class SignalValueRequestedEvent : HandledEntityEventArgs + public sealed class SignalValueRequestedEvent : HandledEntityEventArgs { public readonly string Port; public readonly Type Type; diff --git a/Content.Server/MachineLinking/Exceptions/InvalidPortValueException.cs b/Content.Server/MachineLinking/Exceptions/InvalidPortValueException.cs index 6e43b38c44..1deb6c952f 100644 --- a/Content.Server/MachineLinking/Exceptions/InvalidPortValueException.cs +++ b/Content.Server/MachineLinking/Exceptions/InvalidPortValueException.cs @@ -2,7 +2,7 @@ using System; namespace Content.Server.MachineLinking.Exceptions { - public class InvalidPortValueException : Exception + public sealed class InvalidPortValueException : Exception { } diff --git a/Content.Server/MachineLinking/Exceptions/LinkAlreadyRegisteredException.cs b/Content.Server/MachineLinking/Exceptions/LinkAlreadyRegisteredException.cs index 93398f3940..5fe96dd5e2 100644 --- a/Content.Server/MachineLinking/Exceptions/LinkAlreadyRegisteredException.cs +++ b/Content.Server/MachineLinking/Exceptions/LinkAlreadyRegisteredException.cs @@ -2,7 +2,7 @@ namespace Content.Server.MachineLinking.Exceptions { - public class LinkAlreadyRegisteredException : Exception + public sealed class LinkAlreadyRegisteredException : Exception { } diff --git a/Content.Server/MachineLinking/Exceptions/NoSignalValueProvidedException.cs b/Content.Server/MachineLinking/Exceptions/NoSignalValueProvidedException.cs index f2989bd1ce..6e4132d6f3 100644 --- a/Content.Server/MachineLinking/Exceptions/NoSignalValueProvidedException.cs +++ b/Content.Server/MachineLinking/Exceptions/NoSignalValueProvidedException.cs @@ -2,7 +2,7 @@ using System; namespace Content.Server.MachineLinking.Exceptions { - public class NoSignalValueProvidedException : Exception + public sealed class NoSignalValueProvidedException : Exception { } diff --git a/Content.Server/MachineLinking/Exceptions/PortNotFoundException.cs b/Content.Server/MachineLinking/Exceptions/PortNotFoundException.cs index 18b5279f8f..df7bd8a971 100644 --- a/Content.Server/MachineLinking/Exceptions/PortNotFoundException.cs +++ b/Content.Server/MachineLinking/Exceptions/PortNotFoundException.cs @@ -2,7 +2,7 @@ using System; namespace Content.Server.MachineLinking.Exceptions { - public class PortNotFoundException : Exception + public sealed class PortNotFoundException : Exception { } diff --git a/Content.Server/MachineLinking/Models/SignalLink.cs b/Content.Server/MachineLinking/Models/SignalLink.cs index 9b14a3dd96..a683698ff4 100644 --- a/Content.Server/MachineLinking/Models/SignalLink.cs +++ b/Content.Server/MachineLinking/Models/SignalLink.cs @@ -2,7 +2,7 @@ namespace Content.Server.MachineLinking.Models { - public class SignalLink + public sealed class SignalLink { public readonly SignalTransmitterComponent TransmitterComponent; public readonly SignalReceiverComponent ReceiverComponent; diff --git a/Content.Server/MachineLinking/Models/SignalLinkCollection.cs b/Content.Server/MachineLinking/Models/SignalLinkCollection.cs index 7afd01d2a2..ab6b011ec8 100644 --- a/Content.Server/MachineLinking/Models/SignalLinkCollection.cs +++ b/Content.Server/MachineLinking/Models/SignalLinkCollection.cs @@ -4,7 +4,7 @@ using Content.Server.MachineLinking.Exceptions; namespace Content.Server.MachineLinking.Models { - public class SignalLinkCollection + public sealed class SignalLinkCollection { private Dictionary> _transmitterDict = new(); private Dictionary> _receiverDict = new(); diff --git a/Content.Server/MachineLinking/Models/SignalPort.cs b/Content.Server/MachineLinking/Models/SignalPort.cs index 3dd36cceec..8131c9dabd 100644 --- a/Content.Server/MachineLinking/Models/SignalPort.cs +++ b/Content.Server/MachineLinking/Models/SignalPort.cs @@ -8,7 +8,7 @@ using Robust.Shared.Serialization.Manager.Attributes; namespace Content.Server.MachineLinking.Models { [DataDefinition] - public class SignalPort + public sealed class SignalPort { [DataField("name", required: true)] public string Name { get; } = default!; [DataField("type")] public Type? Type { get; } diff --git a/Content.Server/MachineLinking/System/SignalButtonSystem.cs b/Content.Server/MachineLinking/System/SignalButtonSystem.cs index 2cddfe569b..062ce77664 100644 --- a/Content.Server/MachineLinking/System/SignalButtonSystem.cs +++ b/Content.Server/MachineLinking/System/SignalButtonSystem.cs @@ -7,7 +7,7 @@ using Robust.Shared.GameObjects; namespace Content.Server.MachineLinking.System { [UsedImplicitly] - public class SignalButtonSystem : EntitySystem + public sealed class SignalButtonSystem : EntitySystem { public override void Initialize() { diff --git a/Content.Server/MachineLinking/System/SignalLinkerSystem.cs b/Content.Server/MachineLinking/System/SignalLinkerSystem.cs index 88b5f09bd2..328c2ac08e 100644 --- a/Content.Server/MachineLinking/System/SignalLinkerSystem.cs +++ b/Content.Server/MachineLinking/System/SignalLinkerSystem.cs @@ -18,7 +18,7 @@ using Robust.Shared.Utility; namespace Content.Server.MachineLinking.System { - public class SignalLinkerSystem : EntitySystem + public sealed class SignalLinkerSystem : EntitySystem { private InteractionSystem _interaction = default!; diff --git a/Content.Server/MachineLinking/System/SignalSwitchSystem.cs b/Content.Server/MachineLinking/System/SignalSwitchSystem.cs index 79e75de8a0..11549b9832 100644 --- a/Content.Server/MachineLinking/System/SignalSwitchSystem.cs +++ b/Content.Server/MachineLinking/System/SignalSwitchSystem.cs @@ -5,7 +5,7 @@ using Robust.Shared.GameObjects; namespace Content.Server.MachineLinking.System { - public class SignalSwitchSystem : EntitySystem + public sealed class SignalSwitchSystem : EntitySystem { public override void Initialize() { diff --git a/Content.Server/MachineLinking/System/TriggerOnSignalReceivedSystem.cs b/Content.Server/MachineLinking/System/TriggerOnSignalReceivedSystem.cs index de992a855f..034a12606a 100644 --- a/Content.Server/MachineLinking/System/TriggerOnSignalReceivedSystem.cs +++ b/Content.Server/MachineLinking/System/TriggerOnSignalReceivedSystem.cs @@ -6,7 +6,7 @@ using Robust.Shared.IoC; namespace Content.Server.MachineLinking.System { - public class TriggerOnSignalReceivedSystem : EntitySystem + public sealed class TriggerOnSignalReceivedSystem : EntitySystem { [Dependency] private readonly TriggerSystem _trigger = default!; diff --git a/Content.Server/MachineLinking/System/TwoWayLeverSystem.cs b/Content.Server/MachineLinking/System/TwoWayLeverSystem.cs index 69bb55cf73..a8f71039fa 100644 --- a/Content.Server/MachineLinking/System/TwoWayLeverSystem.cs +++ b/Content.Server/MachineLinking/System/TwoWayLeverSystem.cs @@ -8,7 +8,7 @@ using Robust.Shared.IoC; namespace Content.Server.MachineLinking.System { - public class TwoWayLeverSystem : EntitySystem + public sealed class TwoWayLeverSystem : EntitySystem { public override void Initialize() { diff --git a/Content.Server/Maps/Conditions/HolidayMapCondition.cs b/Content.Server/Maps/Conditions/HolidayMapCondition.cs index a68057380e..cf59138456 100644 --- a/Content.Server/Maps/Conditions/HolidayMapCondition.cs +++ b/Content.Server/Maps/Conditions/HolidayMapCondition.cs @@ -8,7 +8,7 @@ using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototy namespace Content.Server.Maps.Conditions; -public class HolidayMapCondition : GameMapCondition +public sealed class HolidayMapCondition : GameMapCondition { [DataField("holidays")] public string[] Holidays { get; } = default!; diff --git a/Content.Server/Maps/GameMapManager.cs b/Content.Server/Maps/GameMapManager.cs index 68cd21e9fe..0f980d5b37 100644 --- a/Content.Server/Maps/GameMapManager.cs +++ b/Content.Server/Maps/GameMapManager.cs @@ -14,7 +14,7 @@ using Robust.Shared.Random; namespace Content.Server.Maps; -public class GameMapManager : IGameMapManager +public sealed class GameMapManager : IGameMapManager { [Dependency] private readonly IPrototypeManager _prototypeManager = default!; [Dependency] private readonly IConfigurationManager _configurationManager = default!; diff --git a/Content.Server/Maps/GameMapPrototype.cs b/Content.Server/Maps/GameMapPrototype.cs index c1907a9e13..16c0251f28 100644 --- a/Content.Server/Maps/GameMapPrototype.cs +++ b/Content.Server/Maps/GameMapPrototype.cs @@ -13,7 +13,7 @@ namespace Content.Server.Maps; /// Prototype data for a game map. /// [Prototype("gameMap")] -public class GameMapPrototype : IPrototype +public sealed class GameMapPrototype : IPrototype { /// [DataField("id", required: true)] diff --git a/Content.Server/Maps/NameGenerators/NanotrasenNameGenerator.cs b/Content.Server/Maps/NameGenerators/NanotrasenNameGenerator.cs index 4486315a84..6d3ad86295 100644 --- a/Content.Server/Maps/NameGenerators/NanotrasenNameGenerator.cs +++ b/Content.Server/Maps/NameGenerators/NanotrasenNameGenerator.cs @@ -6,7 +6,7 @@ using Robust.Shared.Serialization.Manager.Attributes; namespace Content.Server.Maps.NameGenerators; [UsedImplicitly] -public class NanotrasenNameGenerator : GameMapNameGenerator +public sealed class NanotrasenNameGenerator : GameMapNameGenerator { /// /// Where the map comes from. Should be a two or three letter code, for example "VG" for Packedstation. diff --git a/Content.Server/Materials/MaterialComponent.cs b/Content.Server/Materials/MaterialComponent.cs index 15fc89fc02..5b99041459 100644 --- a/Content.Server/Materials/MaterialComponent.cs +++ b/Content.Server/Materials/MaterialComponent.cs @@ -15,7 +15,7 @@ namespace Content.Server.Materials /// This is not a storage system for say smelteries. /// [RegisterComponent] - public class MaterialComponent : Component + public sealed class MaterialComponent : Component { [ViewVariables] [DataField("materials", customTypeSerializer:typeof(PrototypeIdListSerializer))] diff --git a/Content.Server/Medical/Components/MedicalScannerComponent.cs b/Content.Server/Medical/Components/MedicalScannerComponent.cs index db38d798c5..0b8d0f72ac 100644 --- a/Content.Server/Medical/Components/MedicalScannerComponent.cs +++ b/Content.Server/Medical/Components/MedicalScannerComponent.cs @@ -26,7 +26,7 @@ namespace Content.Server.Medical.Components [RegisterComponent] [ComponentReference(typeof(IActivate))] [ComponentReference(typeof(SharedMedicalScannerComponent))] - public class MedicalScannerComponent : SharedMedicalScannerComponent, IActivate, IDestroyAct + public sealed class MedicalScannerComponent : SharedMedicalScannerComponent, IActivate, IDestroyAct { [Dependency] private readonly IEntityManager _entMan = default!; [Dependency] private readonly IServerPreferencesManager _prefsManager = null!; diff --git a/Content.Server/Medical/CrewMonitoring/CrewMonitoringConsoleComponent.cs b/Content.Server/Medical/CrewMonitoring/CrewMonitoringConsoleComponent.cs index 946c54a67e..2ecb05c6e3 100644 --- a/Content.Server/Medical/CrewMonitoring/CrewMonitoringConsoleComponent.cs +++ b/Content.Server/Medical/CrewMonitoring/CrewMonitoringConsoleComponent.cs @@ -8,7 +8,7 @@ namespace Content.Server.Medical.CrewMonitoring { [RegisterComponent] [Friend(typeof(CrewMonitoringConsoleSystem))] - public class CrewMonitoringConsoleComponent : Component + public sealed class CrewMonitoringConsoleComponent : Component { /// /// List of all currently connected sensors to this console. diff --git a/Content.Server/Medical/CrewMonitoring/CrewMonitoringConsoleSystem.cs b/Content.Server/Medical/CrewMonitoring/CrewMonitoringConsoleSystem.cs index 607b1939ec..cc8397c0f0 100644 --- a/Content.Server/Medical/CrewMonitoring/CrewMonitoringConsoleSystem.cs +++ b/Content.Server/Medical/CrewMonitoring/CrewMonitoringConsoleSystem.cs @@ -9,7 +9,7 @@ using Robust.Shared.Timing; namespace Content.Server.Medical.CrewMonitoring { - public class CrewMonitoringConsoleSystem : EntitySystem + public sealed class CrewMonitoringConsoleSystem : EntitySystem { [Dependency] private readonly SuitSensorSystem _sensors = default!; [Dependency] private readonly IGameTiming _gameTiming = default!; diff --git a/Content.Server/Medical/SuitSensors/SuitSensorSystem.cs b/Content.Server/Medical/SuitSensors/SuitSensorSystem.cs index 7d4ed128c9..b415977418 100644 --- a/Content.Server/Medical/SuitSensors/SuitSensorSystem.cs +++ b/Content.Server/Medical/SuitSensors/SuitSensorSystem.cs @@ -22,7 +22,7 @@ using Robust.Shared.Timing; namespace Content.Server.Medical.SuitSensors { - public class SuitSensorSystem : EntitySystem + public sealed class SuitSensorSystem : EntitySystem { [Dependency] private readonly PopupSystem _popupSystem = default!; [Dependency] private readonly IRobustRandom _random = default!; diff --git a/Content.Server/Mind/Commands/MakeSentientCommand.cs b/Content.Server/Mind/Commands/MakeSentientCommand.cs index ff0ea4ecd4..82873966b6 100644 --- a/Content.Server/Mind/Commands/MakeSentientCommand.cs +++ b/Content.Server/Mind/Commands/MakeSentientCommand.cs @@ -14,7 +14,7 @@ using Timer = Robust.Shared.Timing.Timer; namespace Content.Server.Mind.Commands { [AdminCommand(AdminFlags.Fun)] - public class MakeSentientCommand : IConsoleCommand + public sealed class MakeSentientCommand : IConsoleCommand { public string Command => "makesentient"; public string Description => "Makes an entity sentient (able to be controlled by a player)"; diff --git a/Content.Server/Mind/Commands/MindInfoCommand.cs b/Content.Server/Mind/Commands/MindInfoCommand.cs index c83ef4b3b3..d75e4d42e2 100644 --- a/Content.Server/Mind/Commands/MindInfoCommand.cs +++ b/Content.Server/Mind/Commands/MindInfoCommand.cs @@ -9,7 +9,7 @@ using Robust.Shared.IoC; namespace Content.Server.Mind.Commands { [AdminCommand(AdminFlags.Admin)] - public class MindInfoCommand : IConsoleCommand + public sealed class MindInfoCommand : IConsoleCommand { public string Command => "mindinfo"; diff --git a/Content.Server/Mind/Commands/RenameCommand.cs b/Content.Server/Mind/Commands/RenameCommand.cs index 2303d35257..8ccde0b516 100644 --- a/Content.Server/Mind/Commands/RenameCommand.cs +++ b/Content.Server/Mind/Commands/RenameCommand.cs @@ -17,7 +17,7 @@ using Robust.Shared.IoC; namespace Content.Server.Mind.Commands; [AdminCommand(AdminFlags.VarEdit)] -public class RenameCommand : IConsoleCommand +public sealed class RenameCommand : IConsoleCommand { public string Command => "rename"; public string Description => "Renames an entity and its cloner entries, ID cards, and PDAs."; diff --git a/Content.Server/Mind/Components/MindComponent.cs b/Content.Server/Mind/Components/MindComponent.cs index 6cb6c9a167..33cfd91f08 100644 --- a/Content.Server/Mind/Components/MindComponent.cs +++ b/Content.Server/Mind/Components/MindComponent.cs @@ -19,7 +19,7 @@ namespace Content.Server.Mind.Components /// Stores a on a mob. /// [RegisterComponent, Friend(typeof(MindSystem))] - public class MindComponent : Component + public sealed class MindComponent : Component { /// /// The mind controlling this mob. Can be null. @@ -48,11 +48,11 @@ namespace Content.Server.Mind.Components public bool GhostOnShutdown { get; set; } = true; } - public class MindRemovedMessage : EntityEventArgs + public sealed class MindRemovedMessage : EntityEventArgs { } - public class MindAddedMessage : EntityEventArgs + public sealed class MindAddedMessage : EntityEventArgs { } } diff --git a/Content.Server/Mind/Components/VisitingMindComponent.cs b/Content.Server/Mind/Components/VisitingMindComponent.cs index 7cc29848f4..f4ae8f88a8 100644 --- a/Content.Server/Mind/Components/VisitingMindComponent.cs +++ b/Content.Server/Mind/Components/VisitingMindComponent.cs @@ -16,7 +16,7 @@ namespace Content.Server.Mind.Components } } - public class MindUnvisitedMessage : EntityEventArgs + public sealed class MindUnvisitedMessage : EntityEventArgs { } } diff --git a/Content.Server/Mind/MindSystem.cs b/Content.Server/Mind/MindSystem.cs index ed6801095d..997880cfaa 100644 --- a/Content.Server/Mind/MindSystem.cs +++ b/Content.Server/Mind/MindSystem.cs @@ -14,7 +14,7 @@ using Robust.Shared.Timing; namespace Content.Server.Mind; -public class MindSystem : EntitySystem +public sealed class MindSystem : EntitySystem { [Dependency] private readonly IMapManager _mapManager = default!; [Dependency] private readonly GameTicker _gameTicker = default!; diff --git a/Content.Server/Mind/MindTrackerSystem.cs b/Content.Server/Mind/MindTrackerSystem.cs index 15924a190b..5903cb3034 100644 --- a/Content.Server/Mind/MindTrackerSystem.cs +++ b/Content.Server/Mind/MindTrackerSystem.cs @@ -17,7 +17,7 @@ namespace Content.Server.Mind /// The Minds themselves contain metadata about their owners. /// Anyway, this is because disconnected people and ghost roles have been breaking round end statistics for way too long. /// - public class MindTrackerSystem : EntitySystem + public sealed class MindTrackerSystem : EntitySystem { [ViewVariables] public readonly HashSet AllMinds = new(); diff --git a/Content.Server/Mining/Components/MineableComponent.cs b/Content.Server/Mining/Components/MineableComponent.cs index a112c2e00c..edbfbdbc8c 100644 --- a/Content.Server/Mining/Components/MineableComponent.cs +++ b/Content.Server/Mining/Components/MineableComponent.cs @@ -5,7 +5,7 @@ namespace Content.Server.Mining.Components; [RegisterComponent] [Friend(typeof(MineableSystem))] -public class MineableComponent : Component +public sealed class MineableComponent : Component { public float BaseMineTime = 1.0f; } diff --git a/Content.Server/Mining/Components/PickaxeComponent.cs b/Content.Server/Mining/Components/PickaxeComponent.cs index 1a34b349f4..d3f1a0c9da 100644 --- a/Content.Server/Mining/Components/PickaxeComponent.cs +++ b/Content.Server/Mining/Components/PickaxeComponent.cs @@ -7,7 +7,7 @@ using Robust.Shared.Serialization.Manager.Attributes; namespace Content.Server.Mining.Components { [RegisterComponent] - public class PickaxeComponent : Component + public sealed class PickaxeComponent : Component { [DataField("sound")] public SoundSpecifier MiningSound { get; set; } = new SoundPathSpecifier("/Audio/Items/Mining/pickaxe.ogg"); diff --git a/Content.Server/Mining/MineableSystem.cs b/Content.Server/Mining/MineableSystem.cs index 2301e3dbc0..fd2835c0d2 100644 --- a/Content.Server/Mining/MineableSystem.cs +++ b/Content.Server/Mining/MineableSystem.cs @@ -9,7 +9,7 @@ using Robust.Shared.Player; namespace Content.Server.Mining; -public class MineableSystem : EntitySystem +public sealed class MineableSystem : EntitySystem { [Dependency] private readonly DoAfterSystem _doAfterSystem = default!; [Dependency] private readonly DamageableSystem _damageableSystem = default!; @@ -70,13 +70,13 @@ public class MineableSystem : EntitySystem } // grumble grumble -public class MiningDoafterSuccess : EntityEventArgs +public sealed class MiningDoafterSuccess : EntityEventArgs { public EntityUid Pickaxe; public EntityUid Rock; } -public class MiningDoafterCancel : EntityEventArgs +public sealed class MiningDoafterCancel : EntityEventArgs { public EntityUid Pickaxe; public EntityUid Rock; diff --git a/Content.Server/MoMMI/MoMMILink.cs b/Content.Server/MoMMI/MoMMILink.cs index 7018107668..bc04e41dbb 100644 --- a/Content.Server/MoMMI/MoMMILink.cs +++ b/Content.Server/MoMMI/MoMMILink.cs @@ -128,7 +128,7 @@ namespace Content.Server.MoMMI public object Contents = null!; } - private class MoMMIMessageOOC + private sealed class MoMMIMessageOOC { [JsonInclude] [JsonPropertyName("sender")] public string Sender = null!; @@ -137,7 +137,7 @@ namespace Content.Server.MoMMI public string Contents = null!; } - private class OOCPostMessage + private sealed class OOCPostMessage { #pragma warning disable CS0649 [JsonInclude] [JsonPropertyName("password")] diff --git a/Content.Server/MobState/States/CriticalMobState.cs b/Content.Server/MobState/States/CriticalMobState.cs index f692ca59f1..dc046e6f68 100644 --- a/Content.Server/MobState/States/CriticalMobState.cs +++ b/Content.Server/MobState/States/CriticalMobState.cs @@ -7,7 +7,7 @@ using Robust.Shared.GameObjects; namespace Content.Server.MobState.States { - public class CriticalMobState : SharedCriticalMobState + public sealed class CriticalMobState : SharedCriticalMobState { public override void EnterState(EntityUid uid, IEntityManager entityManager) { diff --git a/Content.Server/MobState/States/DeadMobState.cs b/Content.Server/MobState/States/DeadMobState.cs index 0a7c42fbf3..e9674716df 100644 --- a/Content.Server/MobState/States/DeadMobState.cs +++ b/Content.Server/MobState/States/DeadMobState.cs @@ -11,7 +11,7 @@ using Robust.Shared.GameObjects; namespace Content.Server.MobState.States { - public class DeadMobState : SharedDeadMobState + public sealed class DeadMobState : SharedDeadMobState { public override void EnterState(EntityUid uid, IEntityManager entityManager) { diff --git a/Content.Server/MobState/States/NormalMobState.cs b/Content.Server/MobState/States/NormalMobState.cs index a5999f0c72..6e61e6e79a 100644 --- a/Content.Server/MobState/States/NormalMobState.cs +++ b/Content.Server/MobState/States/NormalMobState.cs @@ -8,7 +8,7 @@ using Robust.Shared.GameObjects; namespace Content.Server.MobState.States { - public class NormalMobState : SharedNormalMobState + public sealed class NormalMobState : SharedNormalMobState { public override void UpdateState(EntityUid entity, FixedPoint2 threshold, IEntityManager entityManager) { diff --git a/Content.Server/Module/ServerModuleManager.cs b/Content.Server/Module/ServerModuleManager.cs index 23282bea32..e5ad391c9c 100644 --- a/Content.Server/Module/ServerModuleManager.cs +++ b/Content.Server/Module/ServerModuleManager.cs @@ -7,7 +7,7 @@ namespace Content.Server.Module /// Provides simple way for shared code to check if it's being run by /// the client of the server. /// - public class ServerModuleManager : IModuleManager + public sealed class ServerModuleManager : IModuleManager { bool IModuleManager.IsClientModule => false; bool IModuleManager.IsServerModule => true; diff --git a/Content.Server/Morgue/Components/BodyBagEntityStorageComponent.cs b/Content.Server/Morgue/Components/BodyBagEntityStorageComponent.cs index ae47946458..dc010a2b2e 100644 --- a/Content.Server/Morgue/Components/BodyBagEntityStorageComponent.cs +++ b/Content.Server/Morgue/Components/BodyBagEntityStorageComponent.cs @@ -11,7 +11,7 @@ namespace Content.Server.Morgue.Components [ComponentReference(typeof(EntityStorageComponent))] [ComponentReference(typeof(IActivate))] [ComponentReference(typeof(IStorageComponent))] - public class BodyBagEntityStorageComponent : EntityStorageComponent + public sealed class BodyBagEntityStorageComponent : EntityStorageComponent { protected override bool AddToContents(EntityUid entity) { diff --git a/Content.Server/Morgue/Components/CrematoriumEntityStorageComponent.cs b/Content.Server/Morgue/Components/CrematoriumEntityStorageComponent.cs index 008377a8cd..8bbdc0e138 100644 --- a/Content.Server/Morgue/Components/CrematoriumEntityStorageComponent.cs +++ b/Content.Server/Morgue/Components/CrematoriumEntityStorageComponent.cs @@ -29,7 +29,7 @@ namespace Content.Server.Morgue.Components [ComponentReference(typeof(IActivate))] [ComponentReference(typeof(IStorageComponent))] #pragma warning disable 618 - public class CrematoriumEntityStorageComponent : MorgueEntityStorageComponent, IExamine, ISuicideAct + public sealed class CrematoriumEntityStorageComponent : MorgueEntityStorageComponent, IExamine, ISuicideAct #pragma warning restore 618 { [Dependency] private readonly IEntityManager _entities = default!; diff --git a/Content.Server/Morgue/Components/MorgueEntityStorageComponent.cs b/Content.Server/Morgue/Components/MorgueEntityStorageComponent.cs index 10cf6855a4..065b6cf844 100644 --- a/Content.Server/Morgue/Components/MorgueEntityStorageComponent.cs +++ b/Content.Server/Morgue/Components/MorgueEntityStorageComponent.cs @@ -31,6 +31,7 @@ namespace Content.Server.Morgue.Components [ComponentReference(typeof(EntityStorageComponent))] [ComponentReference(typeof(IActivate))] [ComponentReference(typeof(IStorageComponent))] + [Virtual] #pragma warning disable 618 public class MorgueEntityStorageComponent : EntityStorageComponent, IExamine #pragma warning restore 618 diff --git a/Content.Server/Morgue/Components/MorgueTrayComponent.cs b/Content.Server/Morgue/Components/MorgueTrayComponent.cs index eb787bd7d4..8df4a339f1 100644 --- a/Content.Server/Morgue/Components/MorgueTrayComponent.cs +++ b/Content.Server/Morgue/Components/MorgueTrayComponent.cs @@ -7,7 +7,7 @@ namespace Content.Server.Morgue.Components { [RegisterComponent] [ComponentReference(typeof(IActivate))] - public class MorgueTrayComponent : Component, IActivate + public sealed class MorgueTrayComponent : Component, IActivate { [ViewVariables] public EntityUid Morgue { get; set; } diff --git a/Content.Server/Morgue/MorgueSystem.cs b/Content.Server/Morgue/MorgueSystem.cs index 8929681cbd..8ce75a3cf1 100644 --- a/Content.Server/Morgue/MorgueSystem.cs +++ b/Content.Server/Morgue/MorgueSystem.cs @@ -9,7 +9,7 @@ using Robust.Shared.Localization; namespace Content.Server.Morgue { [UsedImplicitly] - public class MorgueSystem : EntitySystem + public sealed class MorgueSystem : EntitySystem { private float _accumulatedFrameTime; diff --git a/Content.Server/Movement/Components/FootstepModifierComponent.cs b/Content.Server/Movement/Components/FootstepModifierComponent.cs index 4ad7cbd950..1e83eeb6b6 100644 --- a/Content.Server/Movement/Components/FootstepModifierComponent.cs +++ b/Content.Server/Movement/Components/FootstepModifierComponent.cs @@ -12,7 +12,7 @@ namespace Content.Server.Movement.Components /// Changes footstep sound /// [RegisterComponent] - public class FootstepModifierComponent : Component + public sealed class FootstepModifierComponent : Component { [DataField("footstepSoundCollection", required: true)] public SoundSpecifier SoundCollection = default!; diff --git a/Content.Server/Movement/Components/StressTestMovementComponent.cs b/Content.Server/Movement/Components/StressTestMovementComponent.cs index c275e492dd..c00d107a3f 100644 --- a/Content.Server/Movement/Components/StressTestMovementComponent.cs +++ b/Content.Server/Movement/Components/StressTestMovementComponent.cs @@ -5,7 +5,7 @@ using Robust.Shared.Maths; namespace Content.Server.Movement.Components { [RegisterComponent] - public class StressTestMovementComponent : Component + public sealed class StressTestMovementComponent : Component { public float Progress { get; set; } public Vector2 Origin { get; set; } diff --git a/Content.Server/NodeContainer/EntitySystems/NodeGroupSystem.cs b/Content.Server/NodeContainer/EntitySystems/NodeGroupSystem.cs index b88f856569..a620fc4e44 100644 --- a/Content.Server/NodeContainer/EntitySystems/NodeGroupSystem.cs +++ b/Content.Server/NodeContainer/EntitySystems/NodeGroupSystem.cs @@ -23,7 +23,7 @@ namespace Content.Server.NodeContainer.EntitySystems /// /// [UsedImplicitly] - public class NodeGroupSystem : EntitySystem + public sealed class NodeGroupSystem : EntitySystem { [Dependency] private readonly IPlayerManager _playerManager = default!; [Dependency] private readonly IAdminManager _adminManager = default!; diff --git a/Content.Server/NodeContainer/NodeContainerComponent.cs b/Content.Server/NodeContainer/NodeContainerComponent.cs index 49af08ab6c..39530354f8 100644 --- a/Content.Server/NodeContainer/NodeContainerComponent.cs +++ b/Content.Server/NodeContainer/NodeContainerComponent.cs @@ -16,7 +16,7 @@ namespace Content.Server.NodeContainer /// [RegisterComponent] #pragma warning disable 618 - public class NodeContainerComponent : Component, IExamine + public sealed class NodeContainerComponent : Component, IExamine #pragma warning restore 618 { //HACK: THIS BEING readOnly IS A FILTHY HACK AND I HATE IT --moony diff --git a/Content.Server/NodeContainer/NodeGroups/BaseNodeGroup.cs b/Content.Server/NodeContainer/NodeGroups/BaseNodeGroup.cs index c0eb4a4469..b46f5d6143 100644 --- a/Content.Server/NodeContainer/NodeGroups/BaseNodeGroup.cs +++ b/Content.Server/NodeContainer/NodeGroups/BaseNodeGroup.cs @@ -40,6 +40,7 @@ namespace Content.Server.NodeContainer.NodeGroups } [NodeGroup(NodeGroupID.Default, NodeGroupID.WireNet)] + [Virtual] public class BaseNodeGroup : INodeGroup { public bool Remaking { get; set; } diff --git a/Content.Server/NodeContainer/NodeGroups/NodeGroupAttribute.cs b/Content.Server/NodeContainer/NodeGroups/NodeGroupAttribute.cs index 7c6b210869..633fe50f1a 100644 --- a/Content.Server/NodeContainer/NodeGroups/NodeGroupAttribute.cs +++ b/Content.Server/NodeContainer/NodeGroups/NodeGroupAttribute.cs @@ -10,7 +10,7 @@ namespace Content.Server.NodeContainer.NodeGroups /// [AttributeUsage(AttributeTargets.Class, AllowMultiple = false, Inherited = false)] [MeansImplicitUse] - public class NodeGroupAttribute : Attribute + public sealed class NodeGroupAttribute : Attribute { public NodeGroupID[] NodeGroupIDs { get; } diff --git a/Content.Server/NodeContainer/NodeGroups/NodeGroupFactory.cs b/Content.Server/NodeContainer/NodeGroups/NodeGroupFactory.cs index 0722ea1dc4..dbd5917260 100644 --- a/Content.Server/NodeContainer/NodeGroups/NodeGroupFactory.cs +++ b/Content.Server/NodeContainer/NodeGroups/NodeGroupFactory.cs @@ -21,7 +21,7 @@ namespace Content.Server.NodeContainer.NodeGroups INodeGroup MakeNodeGroup(NodeGroupID id); } - public class NodeGroupFactory : INodeGroupFactory + public sealed class NodeGroupFactory : INodeGroupFactory { [Dependency] private readonly IReflectionManager _reflectionManager = default!; [Dependency] private readonly IDynamicTypeFactory _typeFactory = default!; diff --git a/Content.Server/NodeContainer/Nodes/AdjacentNode.cs b/Content.Server/NodeContainer/Nodes/AdjacentNode.cs index c46b22b987..db5dc70215 100644 --- a/Content.Server/NodeContainer/Nodes/AdjacentNode.cs +++ b/Content.Server/NodeContainer/Nodes/AdjacentNode.cs @@ -10,7 +10,7 @@ namespace Content.Server.NodeContainer.Nodes /// A that can reach other s that are directly adjacent to it. /// [DataDefinition] - public class AdjacentNode : Node + public sealed class AdjacentNode : Node { public override IEnumerable GetReachableNodes(TransformComponent xform, EntityQuery nodeQuery, diff --git a/Content.Server/NodeContainer/Nodes/PipeNode.cs b/Content.Server/NodeContainer/Nodes/PipeNode.cs index f67e78e587..f01b6dcc8c 100644 --- a/Content.Server/NodeContainer/Nodes/PipeNode.cs +++ b/Content.Server/NodeContainer/Nodes/PipeNode.cs @@ -19,6 +19,7 @@ namespace Content.Server.NodeContainer.Nodes /// correctly correspond. /// [DataDefinition] + [Virtual] public class PipeNode : Node, IGasMixtureHolder, IRotatableNode { /// diff --git a/Content.Server/NodeContainer/Nodes/PortPipeNode.cs b/Content.Server/NodeContainer/Nodes/PortPipeNode.cs index 6a029a4c88..cec16069ae 100644 --- a/Content.Server/NodeContainer/Nodes/PortPipeNode.cs +++ b/Content.Server/NodeContainer/Nodes/PortPipeNode.cs @@ -6,7 +6,7 @@ using Robust.Shared.Serialization.Manager.Attributes; namespace Content.Server.NodeContainer.Nodes { [DataDefinition] - public class PortPipeNode : PipeNode + public sealed class PortPipeNode : PipeNode { public override IEnumerable GetReachableNodes(TransformComponent xform, EntityQuery nodeQuery, diff --git a/Content.Server/NodeContainer/Nodes/PortablePipeNode.cs b/Content.Server/NodeContainer/Nodes/PortablePipeNode.cs index 7b6ef85e34..3031e47ece 100644 --- a/Content.Server/NodeContainer/Nodes/PortablePipeNode.cs +++ b/Content.Server/NodeContainer/Nodes/PortablePipeNode.cs @@ -6,7 +6,7 @@ using Robust.Shared.Serialization.Manager.Attributes; namespace Content.Server.NodeContainer.Nodes { [DataDefinition] - public class PortablePipeNode : PipeNode + public sealed class PortablePipeNode : PipeNode { public override IEnumerable GetReachableNodes(TransformComponent xform, EntityQuery nodeQuery, diff --git a/Content.Server/Nuke/Commands/SendNukeCodesCommand.cs b/Content.Server/Nuke/Commands/SendNukeCodesCommand.cs index f7c85c4489..a4e001c1b8 100644 --- a/Content.Server/Nuke/Commands/SendNukeCodesCommand.cs +++ b/Content.Server/Nuke/Commands/SendNukeCodesCommand.cs @@ -8,7 +8,7 @@ namespace Content.Server.Nuke.Commands { [UsedImplicitly] [AdminCommand(AdminFlags.Fun)] - public class SendNukeCodesCommand : IConsoleCommand + public sealed class SendNukeCodesCommand : IConsoleCommand { public string Command => "nukecodes"; public string Description => "Send nuke codes to the communication console"; diff --git a/Content.Server/Nuke/Commands/ToggleNukeCommand.cs b/Content.Server/Nuke/Commands/ToggleNukeCommand.cs index 94ba74125b..5df0922ee6 100644 --- a/Content.Server/Nuke/Commands/ToggleNukeCommand.cs +++ b/Content.Server/Nuke/Commands/ToggleNukeCommand.cs @@ -11,7 +11,7 @@ namespace Content.Server.Nuke.Commands { [UsedImplicitly] [AdminCommand(AdminFlags.Fun)] - public class ToggleNukeCommand : IConsoleCommand + public sealed class ToggleNukeCommand : IConsoleCommand { public string Command => "nukearm"; public string Description => "Toggle nuclear bomb timer. You can set timer directly. Uid is optional."; diff --git a/Content.Server/Nuke/NukeCodePaperComponent.cs b/Content.Server/Nuke/NukeCodePaperComponent.cs index 9b9047d0e6..27a8d3e54e 100644 --- a/Content.Server/Nuke/NukeCodePaperComponent.cs +++ b/Content.Server/Nuke/NukeCodePaperComponent.cs @@ -7,7 +7,7 @@ namespace Content.Server.Nuke /// Can be used in mapping or admins spawn. /// [RegisterComponent] - public class NukeCodePaperComponent : Component + public sealed class NukeCodePaperComponent : Component { } } diff --git a/Content.Server/Nuke/NukeCodePaperSystem.cs b/Content.Server/Nuke/NukeCodePaperSystem.cs index b68984da33..52ffea0f27 100644 --- a/Content.Server/Nuke/NukeCodePaperSystem.cs +++ b/Content.Server/Nuke/NukeCodePaperSystem.cs @@ -5,7 +5,7 @@ using Robust.Shared.Localization; namespace Content.Server.Nuke { - public class NukeCodePaperSystem : EntitySystem + public sealed class NukeCodePaperSystem : EntitySystem { [Dependency] private readonly NukeCodeSystem _codes = default!; diff --git a/Content.Server/Nuke/NukeCodeSystem.cs b/Content.Server/Nuke/NukeCodeSystem.cs index b9f38955d6..c97072de01 100644 --- a/Content.Server/Nuke/NukeCodeSystem.cs +++ b/Content.Server/Nuke/NukeCodeSystem.cs @@ -12,7 +12,7 @@ namespace Content.Server.Nuke /// Nuclear code is generated once per round /// One code works for all nukes /// - public class NukeCodeSystem : EntitySystem + public sealed class NukeCodeSystem : EntitySystem { [Dependency] private readonly IRobustRandom _random = default!; [Dependency] private readonly IChatManager _chat = default!; diff --git a/Content.Server/Nuke/NukeComponent.cs b/Content.Server/Nuke/NukeComponent.cs index a9a69a977a..dcad5a56a4 100644 --- a/Content.Server/Nuke/NukeComponent.cs +++ b/Content.Server/Nuke/NukeComponent.cs @@ -16,7 +16,7 @@ namespace Content.Server.Nuke /// [RegisterComponent] [Friend(typeof(NukeSystem))] - public class NukeComponent : Component + public sealed class NukeComponent : Component { /// /// Default bomb timer value in seconds. diff --git a/Content.Server/Nuke/NukeSystem.cs b/Content.Server/Nuke/NukeSystem.cs index 05b151c5b4..b46d1e274a 100644 --- a/Content.Server/Nuke/NukeSystem.cs +++ b/Content.Server/Nuke/NukeSystem.cs @@ -23,7 +23,7 @@ using Robust.Shared.Player; namespace Content.Server.Nuke { - public class NukeSystem : EntitySystem + public sealed class NukeSystem : EntitySystem { [Dependency] private readonly NukeCodeSystem _codes = default!; [Dependency] private readonly ActionBlockerSystem _actionBlocker = default!; diff --git a/Content.Server/Nutrition/Components/CigarComponent.cs b/Content.Server/Nutrition/Components/CigarComponent.cs index 9978b4b097..e20e3555bd 100644 --- a/Content.Server/Nutrition/Components/CigarComponent.cs +++ b/Content.Server/Nutrition/Components/CigarComponent.cs @@ -8,7 +8,7 @@ namespace Content.Server.Nutrition.Components /// A disposable, single-use smokable. /// [RegisterComponent, Friend(typeof(SmokingSystem))] - public class CigarComponent : Component + public sealed class CigarComponent : Component { } } diff --git a/Content.Server/Nutrition/Components/FoodComponent.cs b/Content.Server/Nutrition/Components/FoodComponent.cs index 6cbbce4c23..15074786ae 100644 --- a/Content.Server/Nutrition/Components/FoodComponent.cs +++ b/Content.Server/Nutrition/Components/FoodComponent.cs @@ -14,7 +14,7 @@ using Robust.Shared.ViewVariables; namespace Content.Server.Nutrition.Components { [RegisterComponent, Friend(typeof(FoodSystem))] - public class FoodComponent : Component + public sealed class FoodComponent : Component { [DataField("solution")] public string SolutionName { get; set; } = "food"; diff --git a/Content.Server/Nutrition/Components/ForcefeedOnCollideComponent.cs b/Content.Server/Nutrition/Components/ForcefeedOnCollideComponent.cs index abaf177b16..acedf76e1d 100644 --- a/Content.Server/Nutrition/Components/ForcefeedOnCollideComponent.cs +++ b/Content.Server/Nutrition/Components/ForcefeedOnCollideComponent.cs @@ -9,7 +9,7 @@ namespace Content.Server.Nutrition.Components /// A food item with this component will be forcefully fed to anyone /// [RegisterComponent, Friend(typeof(ForcefeedOnCollideSystem))] - public class ForcefeedOnCollideComponent : Component + public sealed class ForcefeedOnCollideComponent : Component { /// /// Since this component is primarily used by the pneumatic cannon, which adds this comp on throw start diff --git a/Content.Server/Nutrition/Components/IngestionBlockerComponent.cs b/Content.Server/Nutrition/Components/IngestionBlockerComponent.cs index c74dbe99d0..c814bf1305 100644 --- a/Content.Server/Nutrition/Components/IngestionBlockerComponent.cs +++ b/Content.Server/Nutrition/Components/IngestionBlockerComponent.cs @@ -13,7 +13,7 @@ namespace Content.Server.Nutrition.EntitySystems; /// masks), then this component might become redundant. /// [RegisterComponent, Friend(typeof(FoodSystem), typeof(DrinkSystem))] -public class IngestionBlockerComponent : Component +public sealed class IngestionBlockerComponent : Component { /// /// Is this component currently blocking consumption. diff --git a/Content.Server/Nutrition/Components/SliceableFoodComponent.cs b/Content.Server/Nutrition/Components/SliceableFoodComponent.cs index 0ac7c9e386..37e4f0c66e 100644 --- a/Content.Server/Nutrition/Components/SliceableFoodComponent.cs +++ b/Content.Server/Nutrition/Components/SliceableFoodComponent.cs @@ -8,7 +8,7 @@ using Robust.Shared.ViewVariables; namespace Content.Server.Nutrition.Components { [RegisterComponent, Friend(typeof(SliceableFoodSystem))] - internal class SliceableFoodComponent : Component + internal sealed class SliceableFoodComponent : Component { [DataField("slice")] [ViewVariables(VVAccess.ReadWrite)] diff --git a/Content.Server/Nutrition/Components/SmokableComponent.cs b/Content.Server/Nutrition/Components/SmokableComponent.cs index f830695f16..5a7429e145 100644 --- a/Content.Server/Nutrition/Components/SmokableComponent.cs +++ b/Content.Server/Nutrition/Components/SmokableComponent.cs @@ -9,7 +9,7 @@ using Robust.Shared.Serialization.Manager.Attributes; namespace Content.Server.Nutrition.Components { [RegisterComponent, Friend(typeof(SmokingSystem))] - public class SmokableComponent : Component + public sealed class SmokableComponent : Component { [DataField("solution")] public string Solution { get; } = "smokable"; diff --git a/Content.Server/Nutrition/Components/UtensilComponent.cs b/Content.Server/Nutrition/Components/UtensilComponent.cs index dbf9410a1f..b611ab3699 100644 --- a/Content.Server/Nutrition/Components/UtensilComponent.cs +++ b/Content.Server/Nutrition/Components/UtensilComponent.cs @@ -9,7 +9,7 @@ using Robust.Shared.ViewVariables; namespace Content.Server.Nutrition.Components { [RegisterComponent, Friend(typeof(UtensilSystem))] - public class UtensilComponent : Component + public sealed class UtensilComponent : Component { [DataField("types")] private UtensilType _types = UtensilType.None; diff --git a/Content.Server/Nutrition/EntitySystems/CreamPieSystem.cs b/Content.Server/Nutrition/EntitySystems/CreamPieSystem.cs index 2d50fef708..27c1f01fb8 100644 --- a/Content.Server/Nutrition/EntitySystems/CreamPieSystem.cs +++ b/Content.Server/Nutrition/EntitySystems/CreamPieSystem.cs @@ -18,7 +18,7 @@ using Robust.Shared.Player; namespace Content.Server.Nutrition.EntitySystems { [UsedImplicitly] - public class CreamPieSystem : SharedCreamPieSystem + public sealed class CreamPieSystem : SharedCreamPieSystem { [Dependency] private readonly SolutionContainerSystem _solutionsSystem = default!; [Dependency] private readonly SpillableSystem _spillableSystem = default!; diff --git a/Content.Server/Nutrition/EntitySystems/DrinkSystem.cs b/Content.Server/Nutrition/EntitySystems/DrinkSystem.cs index f1d6ca264a..9387b712ac 100644 --- a/Content.Server/Nutrition/EntitySystems/DrinkSystem.cs +++ b/Content.Server/Nutrition/EntitySystems/DrinkSystem.cs @@ -30,7 +30,7 @@ using Robust.Shared.Utility; namespace Content.Server.Nutrition.EntitySystems { [UsedImplicitly] - public class DrinkSystem : EntitySystem + public sealed class DrinkSystem : EntitySystem { [Dependency] private readonly FoodSystem _foodSystem = default!; [Dependency] private readonly IRobustRandom _random = default!; diff --git a/Content.Server/Nutrition/EntitySystems/ForcefeedOnCollideSystem.cs b/Content.Server/Nutrition/EntitySystems/ForcefeedOnCollideSystem.cs index c2ffa178e5..d41045dd28 100644 --- a/Content.Server/Nutrition/EntitySystems/ForcefeedOnCollideSystem.cs +++ b/Content.Server/Nutrition/EntitySystems/ForcefeedOnCollideSystem.cs @@ -5,7 +5,7 @@ using Robust.Shared.IoC; namespace Content.Server.Nutrition.EntitySystems { - public class ForcefeedOnCollideSystem : EntitySystem + public sealed class ForcefeedOnCollideSystem : EntitySystem { [Dependency] private readonly FoodSystem _foodSystem = default!; diff --git a/Content.Server/Nutrition/EntitySystems/HungerSystem.cs b/Content.Server/Nutrition/EntitySystems/HungerSystem.cs index 1391518034..5d2bf0cf6d 100644 --- a/Content.Server/Nutrition/EntitySystems/HungerSystem.cs +++ b/Content.Server/Nutrition/EntitySystems/HungerSystem.cs @@ -5,7 +5,7 @@ using Robust.Shared.GameObjects; namespace Content.Server.Nutrition.EntitySystems { [UsedImplicitly] - public class HungerSystem : EntitySystem + public sealed class HungerSystem : EntitySystem { private float _accumulatedFrameTime; diff --git a/Content.Server/Nutrition/EntitySystems/SliceableFoodSystem.cs b/Content.Server/Nutrition/EntitySystems/SliceableFoodSystem.cs index 965fdbfc18..d791831ef8 100644 --- a/Content.Server/Nutrition/EntitySystems/SliceableFoodSystem.cs +++ b/Content.Server/Nutrition/EntitySystems/SliceableFoodSystem.cs @@ -16,7 +16,7 @@ using Robust.Shared.Player; namespace Content.Server.Nutrition.EntitySystems { - internal class SliceableFoodSystem : EntitySystem + internal sealed class SliceableFoodSystem : EntitySystem { [Dependency] private readonly SolutionContainerSystem _solutionContainerSystem = default!; diff --git a/Content.Server/Nutrition/EntitySystems/SmokingSystem.Cigar.cs b/Content.Server/Nutrition/EntitySystems/SmokingSystem.Cigar.cs index e88fa6343e..ec9d5274f8 100644 --- a/Content.Server/Nutrition/EntitySystems/SmokingSystem.Cigar.cs +++ b/Content.Server/Nutrition/EntitySystems/SmokingSystem.Cigar.cs @@ -6,7 +6,7 @@ using Robust.Shared.GameObjects; namespace Content.Server.Nutrition.EntitySystems { - public partial class SmokingSystem + public sealed partial class SmokingSystem { private void InitializeCigars() { diff --git a/Content.Server/Nutrition/EntitySystems/SmokingSystem.cs b/Content.Server/Nutrition/EntitySystems/SmokingSystem.cs index c9ba7d6724..356b4792b2 100644 --- a/Content.Server/Nutrition/EntitySystems/SmokingSystem.cs +++ b/Content.Server/Nutrition/EntitySystems/SmokingSystem.cs @@ -17,7 +17,7 @@ using Robust.Shared.IoC; namespace Content.Server.Nutrition.EntitySystems { - public partial class SmokingSystem : EntitySystem + public sealed partial class SmokingSystem : EntitySystem { [Dependency] private readonly ReactiveSystem _reactiveSystem = default!; [Dependency] private readonly SolutionContainerSystem _solutionContainerSystem = default!; @@ -127,7 +127,7 @@ namespace Content.Server.Nutrition.EntitySystems /// /// Directed event raised when the smokable solution is empty. /// - public class SmokableSolutionEmptyEvent : EntityEventArgs + public sealed class SmokableSolutionEmptyEvent : EntityEventArgs { } } diff --git a/Content.Server/Nutrition/EntitySystems/ThirstSystem.cs b/Content.Server/Nutrition/EntitySystems/ThirstSystem.cs index e6ca6c57fd..68bb7885d0 100644 --- a/Content.Server/Nutrition/EntitySystems/ThirstSystem.cs +++ b/Content.Server/Nutrition/EntitySystems/ThirstSystem.cs @@ -5,7 +5,7 @@ using Robust.Shared.GameObjects; namespace Content.Server.Nutrition.EntitySystems { [UsedImplicitly] - public class ThirstSystem : EntitySystem + public sealed class ThirstSystem : EntitySystem { private float _accumulatedFrameTime; diff --git a/Content.Server/Nutrition/EntitySystems/UtensilSystem.cs b/Content.Server/Nutrition/EntitySystems/UtensilSystem.cs index c8a29f828c..6a0d0f6d80 100644 --- a/Content.Server/Nutrition/EntitySystems/UtensilSystem.cs +++ b/Content.Server/Nutrition/EntitySystems/UtensilSystem.cs @@ -14,7 +14,7 @@ namespace Content.Server.Nutrition.EntitySystems /// /// Handles usage of the utensils on the food items /// - internal class UtensilSystem : EntitySystem + internal sealed class UtensilSystem : EntitySystem { [Dependency] private readonly IRobustRandom _robustRandom = default!; [Dependency] private readonly FoodSystem _foodSystem = default!; diff --git a/Content.Server/Nutrition/Hungry.cs b/Content.Server/Nutrition/Hungry.cs index e36505a9f9..d7b4c41644 100644 --- a/Content.Server/Nutrition/Hungry.cs +++ b/Content.Server/Nutrition/Hungry.cs @@ -10,7 +10,7 @@ using Robust.Shared.IoC; namespace Content.Server.Nutrition { [AdminCommand(AdminFlags.Debug)] - public class Hungry : IConsoleCommand + public sealed class Hungry : IConsoleCommand { [Dependency] private readonly IEntityManager _entities = default!; diff --git a/Content.Server/Objectives/Commands/AddObjectiveCommand.cs b/Content.Server/Objectives/Commands/AddObjectiveCommand.cs index 6345d7351f..87a100d73a 100644 --- a/Content.Server/Objectives/Commands/AddObjectiveCommand.cs +++ b/Content.Server/Objectives/Commands/AddObjectiveCommand.cs @@ -9,7 +9,7 @@ using Robust.Shared.Prototypes; namespace Content.Server.Objectives.Commands { [AdminCommand(AdminFlags.Admin)] - public class AddObjectiveCommand : IConsoleCommand + public sealed class AddObjectiveCommand : IConsoleCommand { public string Command => "addobjective"; public string Description => "Adds an objective to the player's mind."; diff --git a/Content.Server/Objectives/Commands/ListObjectivesCommand.cs b/Content.Server/Objectives/Commands/ListObjectivesCommand.cs index ab2f438adf..4faddf8460 100644 --- a/Content.Server/Objectives/Commands/ListObjectivesCommand.cs +++ b/Content.Server/Objectives/Commands/ListObjectivesCommand.cs @@ -9,7 +9,7 @@ using Robust.Shared.IoC; namespace Content.Server.Objectives.Commands { [AdminCommand(AdminFlags.Admin)] - public class ListObjectivesCommand : IConsoleCommand + public sealed class ListObjectivesCommand : IConsoleCommand { public string Command => "lsobjectives"; public string Description => "Lists all objectives in a players mind."; diff --git a/Content.Server/Objectives/Commands/RemoveObjectiveCommand.cs b/Content.Server/Objectives/Commands/RemoveObjectiveCommand.cs index 34bcd3cf76..eb79e83ac1 100644 --- a/Content.Server/Objectives/Commands/RemoveObjectiveCommand.cs +++ b/Content.Server/Objectives/Commands/RemoveObjectiveCommand.cs @@ -8,7 +8,7 @@ using Robust.Shared.IoC; namespace Content.Server.Objectives.Commands { [AdminCommand(AdminFlags.Admin)] - public class RemoveObjectiveCommand : IConsoleCommand + public sealed class RemoveObjectiveCommand : IConsoleCommand { public string Command => "rmobjective"; public string Description => "Removes an objective from the player's mind."; diff --git a/Content.Server/Objectives/Conditions/DieCondition.cs b/Content.Server/Objectives/Conditions/DieCondition.cs index 18dc7ea065..61fafcc2fb 100644 --- a/Content.Server/Objectives/Conditions/DieCondition.cs +++ b/Content.Server/Objectives/Conditions/DieCondition.cs @@ -8,7 +8,7 @@ namespace Content.Server.Objectives.Conditions { [UsedImplicitly] [DataDefinition] - public class DieCondition : IObjectiveCondition + public sealed class DieCondition : IObjectiveCondition { private Mind.Mind? _mind; diff --git a/Content.Server/Objectives/Conditions/KillRandomPersonCondition.cs b/Content.Server/Objectives/Conditions/KillRandomPersonCondition.cs index ef0c93ae02..9e9fced3c1 100644 --- a/Content.Server/Objectives/Conditions/KillRandomPersonCondition.cs +++ b/Content.Server/Objectives/Conditions/KillRandomPersonCondition.cs @@ -12,7 +12,7 @@ namespace Content.Server.Objectives.Conditions { [UsedImplicitly] [DataDefinition] - public class KillRandomPersonCondition : KillPersonCondition + public sealed class KillRandomPersonCondition : KillPersonCondition { public override IObjectiveCondition GetAssigned(Mind.Mind mind) { diff --git a/Content.Server/Objectives/Conditions/RandomTraitorAliveCondition.cs b/Content.Server/Objectives/Conditions/RandomTraitorAliveCondition.cs index d78aa053fc..c6c508040c 100644 --- a/Content.Server/Objectives/Conditions/RandomTraitorAliveCondition.cs +++ b/Content.Server/Objectives/Conditions/RandomTraitorAliveCondition.cs @@ -14,7 +14,7 @@ using Content.Server.Roles; namespace Content.Server.Objectives.Conditions { [DataDefinition] - public class RandomTraitorAliveCondition : IObjectiveCondition + public sealed class RandomTraitorAliveCondition : IObjectiveCondition { protected Mind.Mind? Target; diff --git a/Content.Server/Objectives/Conditions/StayAliveCondition.cs b/Content.Server/Objectives/Conditions/StayAliveCondition.cs index 63c813d6b3..1154218881 100644 --- a/Content.Server/Objectives/Conditions/StayAliveCondition.cs +++ b/Content.Server/Objectives/Conditions/StayAliveCondition.cs @@ -8,7 +8,7 @@ namespace Content.Server.Objectives.Conditions { [UsedImplicitly] [DataDefinition] - public class StayAliveCondition : IObjectiveCondition + public sealed class StayAliveCondition : IObjectiveCondition { private Mind.Mind? _mind; diff --git a/Content.Server/Objectives/Conditions/StealCondition.cs b/Content.Server/Objectives/Conditions/StealCondition.cs index 9c710fdb21..9e7b572093 100644 --- a/Content.Server/Objectives/Conditions/StealCondition.cs +++ b/Content.Server/Objectives/Conditions/StealCondition.cs @@ -16,7 +16,7 @@ namespace Content.Server.Objectives.Conditions { [UsedImplicitly] [DataDefinition] - public class StealCondition : IObjectiveCondition, ISerializationHooks + public sealed class StealCondition : IObjectiveCondition, ISerializationHooks { private Mind.Mind? _mind; [DataField("prototype")] private string _prototypeId = string.Empty; diff --git a/Content.Server/Objectives/Objective.cs b/Content.Server/Objectives/Objective.cs index ad576ac2bd..d51240a70a 100644 --- a/Content.Server/Objectives/Objective.cs +++ b/Content.Server/Objectives/Objective.cs @@ -5,7 +5,7 @@ using Robust.Shared.ViewVariables; namespace Content.Server.Objectives { - public class Objective : IEquatable + public sealed class Objective : IEquatable { [ViewVariables] public readonly Mind.Mind Mind; diff --git a/Content.Server/Objectives/ObjectivePrototype.cs b/Content.Server/Objectives/ObjectivePrototype.cs index 55feadacb8..e7b35d843c 100644 --- a/Content.Server/Objectives/ObjectivePrototype.cs +++ b/Content.Server/Objectives/ObjectivePrototype.cs @@ -8,7 +8,7 @@ using Robust.Shared.ViewVariables; namespace Content.Server.Objectives { [Prototype("objective")] - public class ObjectivePrototype : IPrototype + public sealed class ObjectivePrototype : IPrototype { [ViewVariables] [DataField("id", required: true)] diff --git a/Content.Server/Objectives/ObjectivesManager.cs b/Content.Server/Objectives/ObjectivesManager.cs index a17e252da3..f4d9588c2e 100644 --- a/Content.Server/Objectives/ObjectivesManager.cs +++ b/Content.Server/Objectives/ObjectivesManager.cs @@ -7,7 +7,7 @@ using Robust.Shared.Random; namespace Content.Server.Objectives { - public class ObjectivesManager : IObjectivesManager + public sealed class ObjectivesManager : IObjectivesManager { [Dependency] private IPrototypeManager _prototypeManager = default!; [Dependency] private IRobustRandom _random = default!; diff --git a/Content.Server/Objectives/Requirements/IncompatibleConditionsRequirement.cs b/Content.Server/Objectives/Requirements/IncompatibleConditionsRequirement.cs index a280f4a57b..095d1f9f8f 100644 --- a/Content.Server/Objectives/Requirements/IncompatibleConditionsRequirement.cs +++ b/Content.Server/Objectives/Requirements/IncompatibleConditionsRequirement.cs @@ -5,7 +5,7 @@ using Robust.Shared.Serialization.Manager.Attributes; namespace Content.Server.Objectives.Requirements { [DataDefinition] - public class IncompatibleConditionsRequirement : IObjectiveRequirement + public sealed class IncompatibleConditionsRequirement : IObjectiveRequirement { [DataField("conditions")] private readonly List _incompatibleConditions = new(); diff --git a/Content.Server/Objectives/Requirements/IncompatibleObjectivesRequirement.cs b/Content.Server/Objectives/Requirements/IncompatibleObjectivesRequirement.cs index 855c02be62..f5b2b095e3 100644 --- a/Content.Server/Objectives/Requirements/IncompatibleObjectivesRequirement.cs +++ b/Content.Server/Objectives/Requirements/IncompatibleObjectivesRequirement.cs @@ -5,7 +5,7 @@ using Robust.Shared.Serialization.Manager.Attributes; namespace Content.Server.Objectives.Requirements { [DataDefinition] - public class IncompatibleObjectivesRequirement : IObjectiveRequirement + public sealed class IncompatibleObjectivesRequirement : IObjectiveRequirement { [DataField("objectives")] private readonly List _incompatibleObjectives = new(); diff --git a/Content.Server/Objectives/Requirements/MultipleTraitorsRequirement.cs b/Content.Server/Objectives/Requirements/MultipleTraitorsRequirement.cs index fd110e2838..b5f6dff013 100644 --- a/Content.Server/Objectives/Requirements/MultipleTraitorsRequirement.cs +++ b/Content.Server/Objectives/Requirements/MultipleTraitorsRequirement.cs @@ -8,7 +8,7 @@ using Content.Server.GameTicking.Rules; namespace Content.Server.Objectives.Requirements { [DataDefinition] - public class MultipleTraitorsRequirement : IObjectiveRequirement + public sealed class MultipleTraitorsRequirement : IObjectiveRequirement { [DataField("traitors")] private readonly int _requiredTraitors = 2; diff --git a/Content.Server/Objectives/Requirements/TraitorRequirement.cs b/Content.Server/Objectives/Requirements/TraitorRequirement.cs index 178cf2e65b..4d399cc169 100644 --- a/Content.Server/Objectives/Requirements/TraitorRequirement.cs +++ b/Content.Server/Objectives/Requirements/TraitorRequirement.cs @@ -7,7 +7,7 @@ namespace Content.Server.Objectives.Requirements { [UsedImplicitly] [DataDefinition] - public class TraitorRequirement : IObjectiveRequirement + public sealed class TraitorRequirement : IObjectiveRequirement { public bool CanBeAssigned(Mind.Mind mind) { diff --git a/Content.Server/PAI/PAISystem.cs b/Content.Server/PAI/PAISystem.cs index 8a7ca864b4..eccdd40908 100644 --- a/Content.Server/PAI/PAISystem.cs +++ b/Content.Server/PAI/PAISystem.cs @@ -16,7 +16,7 @@ using Robust.Shared.Player; namespace Content.Server.PAI { - public class PAISystem : SharedPAISystem + public sealed class PAISystem : SharedPAISystem { [Dependency] private readonly PopupSystem _popupSystem = default!; [Dependency] private readonly InstrumentSystem _instrumentSystem = default!; diff --git a/Content.Server/ParticleAccelerator/Components/ParticleAcceleratorControlBoxComponent.cs b/Content.Server/ParticleAccelerator/Components/ParticleAcceleratorControlBoxComponent.cs index d413fb3bb4..70d79c30a2 100644 --- a/Content.Server/ParticleAccelerator/Components/ParticleAcceleratorControlBoxComponent.cs +++ b/Content.Server/ParticleAccelerator/Components/ParticleAcceleratorControlBoxComponent.cs @@ -34,7 +34,7 @@ namespace Content.Server.ParticleAccelerator.Components /// [ComponentReference(typeof(IActivate))] [RegisterComponent] - public class ParticleAcceleratorControlBoxComponent : ParticleAcceleratorPartComponent, IActivate, IWires + public sealed class ParticleAcceleratorControlBoxComponent : ParticleAcceleratorPartComponent, IActivate, IWires { [Dependency] private readonly IEntityManager _entMan = default!; [Dependency] private readonly IMapManager _mapManager = default!; diff --git a/Content.Server/ParticleAccelerator/Components/ParticleAcceleratorEmitterComponent.cs b/Content.Server/ParticleAccelerator/Components/ParticleAcceleratorEmitterComponent.cs index 37b594115a..80960b094a 100644 --- a/Content.Server/ParticleAccelerator/Components/ParticleAcceleratorEmitterComponent.cs +++ b/Content.Server/ParticleAccelerator/Components/ParticleAcceleratorEmitterComponent.cs @@ -8,7 +8,7 @@ namespace Content.Server.ParticleAccelerator.Components { [RegisterComponent] [ComponentReference(typeof(ParticleAcceleratorPartComponent))] - public class ParticleAcceleratorEmitterComponent : ParticleAcceleratorPartComponent + public sealed class ParticleAcceleratorEmitterComponent : ParticleAcceleratorPartComponent { [DataField("emitterType")] public ParticleAcceleratorEmitterType Type = ParticleAcceleratorEmitterType.Center; diff --git a/Content.Server/ParticleAccelerator/Components/ParticleAcceleratorEndCapComponent.cs b/Content.Server/ParticleAccelerator/Components/ParticleAcceleratorEndCapComponent.cs index 788acc4234..085860bf11 100644 --- a/Content.Server/ParticleAccelerator/Components/ParticleAcceleratorEndCapComponent.cs +++ b/Content.Server/ParticleAccelerator/Components/ParticleAcceleratorEndCapComponent.cs @@ -4,7 +4,7 @@ namespace Content.Server.ParticleAccelerator.Components { [RegisterComponent] [ComponentReference(typeof(ParticleAcceleratorPartComponent))] - public class ParticleAcceleratorEndCapComponent : ParticleAcceleratorPartComponent + public sealed class ParticleAcceleratorEndCapComponent : ParticleAcceleratorPartComponent { } } diff --git a/Content.Server/ParticleAccelerator/Components/ParticleAcceleratorFuelChamberComponent.cs b/Content.Server/ParticleAccelerator/Components/ParticleAcceleratorFuelChamberComponent.cs index e862e8a3b8..747a3d7538 100644 --- a/Content.Server/ParticleAccelerator/Components/ParticleAcceleratorFuelChamberComponent.cs +++ b/Content.Server/ParticleAccelerator/Components/ParticleAcceleratorFuelChamberComponent.cs @@ -4,7 +4,7 @@ namespace Content.Server.ParticleAccelerator.Components { [RegisterComponent] [ComponentReference(typeof(ParticleAcceleratorPartComponent))] - public class ParticleAcceleratorFuelChamberComponent : ParticleAcceleratorPartComponent + public sealed class ParticleAcceleratorFuelChamberComponent : ParticleAcceleratorPartComponent { } } diff --git a/Content.Server/ParticleAccelerator/Components/ParticleAcceleratorPowerBoxComponent.cs b/Content.Server/ParticleAccelerator/Components/ParticleAcceleratorPowerBoxComponent.cs index 1ede1c6dae..95833005b1 100644 --- a/Content.Server/ParticleAccelerator/Components/ParticleAcceleratorPowerBoxComponent.cs +++ b/Content.Server/ParticleAccelerator/Components/ParticleAcceleratorPowerBoxComponent.cs @@ -6,7 +6,7 @@ namespace Content.Server.ParticleAccelerator.Components { [RegisterComponent] [ComponentReference(typeof(ParticleAcceleratorPartComponent))] - public class ParticleAcceleratorPowerBoxComponent : ParticleAcceleratorPartComponent + public sealed class ParticleAcceleratorPowerBoxComponent : ParticleAcceleratorPartComponent { [ViewVariables] public PowerConsumerComponent? PowerConsumerComponent; diff --git a/Content.Server/ParticleAccelerator/Components/ParticleProjectileComponent.cs b/Content.Server/ParticleAccelerator/Components/ParticleProjectileComponent.cs index 741a83d89e..edcedee18a 100644 --- a/Content.Server/ParticleAccelerator/Components/ParticleProjectileComponent.cs +++ b/Content.Server/ParticleAccelerator/Components/ParticleProjectileComponent.cs @@ -11,7 +11,7 @@ using Robust.Shared.Timing; namespace Content.Server.ParticleAccelerator.Components { [RegisterComponent] - public class ParticleProjectileComponent : Component + public sealed class ParticleProjectileComponent : Component { [Dependency] private readonly IEntityManager _entMan = default!; diff --git a/Content.Server/ParticleAccelerator/EntitySystems/ParticleAcceleratorPartSystem.cs b/Content.Server/ParticleAccelerator/EntitySystems/ParticleAcceleratorPartSystem.cs index 7505a783ba..e68f5e5470 100644 --- a/Content.Server/ParticleAccelerator/EntitySystems/ParticleAcceleratorPartSystem.cs +++ b/Content.Server/ParticleAccelerator/EntitySystems/ParticleAcceleratorPartSystem.cs @@ -6,7 +6,7 @@ using Robust.Shared.IoC; namespace Content.Server.ParticleAccelerator.EntitySystems { [UsedImplicitly] - public class ParticleAcceleratorPartSystem : EntitySystem + public sealed class ParticleAcceleratorPartSystem : EntitySystem { public override void Initialize() { diff --git a/Content.Server/ParticleAccelerator/EntitySystems/ParticleAcceleratorPowerBoxSystem.cs b/Content.Server/ParticleAccelerator/EntitySystems/ParticleAcceleratorPowerBoxSystem.cs index f4af45d873..b71f010544 100644 --- a/Content.Server/ParticleAccelerator/EntitySystems/ParticleAcceleratorPowerBoxSystem.cs +++ b/Content.Server/ParticleAccelerator/EntitySystems/ParticleAcceleratorPowerBoxSystem.cs @@ -6,7 +6,7 @@ using Robust.Shared.GameObjects; namespace Content.Server.ParticleAccelerator.EntitySystems { [UsedImplicitly] - public class ParticleAcceleratorPowerBoxSystem : EntitySystem + public sealed class ParticleAcceleratorPowerBoxSystem : EntitySystem { public override void Initialize() { diff --git a/Content.Server/Physics/Controllers/MoverController.cs b/Content.Server/Physics/Controllers/MoverController.cs index 6298ebcfc6..5bde14ece8 100644 --- a/Content.Server/Physics/Controllers/MoverController.cs +++ b/Content.Server/Physics/Controllers/MoverController.cs @@ -23,7 +23,7 @@ using Robust.Shared.Utility; namespace Content.Server.Physics.Controllers { - public class MoverController : SharedMoverController + public sealed class MoverController : SharedMoverController { [Dependency] private readonly ITileDefinitionManager _tileDefinitionManager = default!; [Dependency] private readonly IMapManager _mapManager = default!; diff --git a/Content.Server/Physics/Controllers/PullController.cs b/Content.Server/Physics/Controllers/PullController.cs index 191a8279e2..341961acc8 100644 --- a/Content.Server/Physics/Controllers/PullController.cs +++ b/Content.Server/Physics/Controllers/PullController.cs @@ -9,7 +9,7 @@ using Robust.Shared.Physics.Controllers; namespace Content.Server.Physics.Controllers { - public class PullController : VirtualController + public sealed class PullController : VirtualController { // Parameterization for pulling: // Speeds. Note that the speed is mass-independent (multiplied by mass). diff --git a/Content.Server/Plants/Components/PottedPlantHideComponent.cs b/Content.Server/Plants/Components/PottedPlantHideComponent.cs index 01a27f9fe5..0dd64c0e3f 100644 --- a/Content.Server/Plants/Components/PottedPlantHideComponent.cs +++ b/Content.Server/Plants/Components/PottedPlantHideComponent.cs @@ -13,7 +13,7 @@ namespace Content.Server.Plants.Components /// [RegisterComponent] [Friend(typeof(PottedPlantHideSystem))] - public class PottedPlantHideComponent : Component + public sealed class PottedPlantHideComponent : Component { [DataField("rustleSound")] public SoundSpecifier RustleSound = new SoundPathSpecifier("/Audio/Effects/plant_rustle.ogg"); diff --git a/Content.Server/Plants/Components/RandomPottedPlantComponent.cs b/Content.Server/Plants/Components/RandomPottedPlantComponent.cs index dfb99378b9..5255938530 100644 --- a/Content.Server/Plants/Components/RandomPottedPlantComponent.cs +++ b/Content.Server/Plants/Components/RandomPottedPlantComponent.cs @@ -8,7 +8,7 @@ namespace Content.Server.Plants.Components { [RegisterComponent] [Friend(typeof(RandomPottedPlantSystem))] - public class RandomPottedPlantComponent : Component + public sealed class RandomPottedPlantComponent : Component { [ViewVariables(VVAccess.ReadOnly)] [DataField("selected")] diff --git a/Content.Server/Plants/Systems/PottedPlantHideSystem.cs b/Content.Server/Plants/Systems/PottedPlantHideSystem.cs index 10dd5e5dbd..e2ecfa51e6 100644 --- a/Content.Server/Plants/Systems/PottedPlantHideSystem.cs +++ b/Content.Server/Plants/Systems/PottedPlantHideSystem.cs @@ -13,7 +13,7 @@ using Robust.Shared.Player; namespace Content.Server.Plants.Systems { - public class PottedPlantHideSystem : EntitySystem + public sealed class PottedPlantHideSystem : EntitySystem { [Dependency] private readonly SecretStashSystem _stashSystem = default!; [Dependency] private readonly PopupSystem _popupSystem = default!; diff --git a/Content.Server/Plants/Systems/RandomPottedPlantSystem.cs b/Content.Server/Plants/Systems/RandomPottedPlantSystem.cs index 0c626073f9..227d93030d 100644 --- a/Content.Server/Plants/Systems/RandomPottedPlantSystem.cs +++ b/Content.Server/Plants/Systems/RandomPottedPlantSystem.cs @@ -6,7 +6,7 @@ using Robust.Shared.Random; namespace Content.Server.Plants.Systems { - public class RandomPottedPlantSystem : EntitySystem + public sealed class RandomPottedPlantSystem : EntitySystem { [Dependency] private readonly IRobustRandom _random = default!; diff --git a/Content.Server/PneumaticCannon/PneumaticCannonComponent.cs b/Content.Server/PneumaticCannon/PneumaticCannonComponent.cs index bd32d69ca8..69cbe1b49a 100644 --- a/Content.Server/PneumaticCannon/PneumaticCannonComponent.cs +++ b/Content.Server/PneumaticCannon/PneumaticCannonComponent.cs @@ -14,7 +14,7 @@ namespace Content.Server.PneumaticCannon // TODO: ideally, this and most of the actual firing code doesn't need to exist, and guns can be flexible enough // to handle shooting things that aren't ammo (just firing any entity) [RegisterComponent, Friend(typeof(PneumaticCannonSystem))] - public class PneumaticCannonComponent : Component + public sealed class PneumaticCannonComponent : Component { [ViewVariables] public ContainerSlot GasTankSlot = default!; diff --git a/Content.Server/PneumaticCannon/PneumaticCannonSystem.cs b/Content.Server/PneumaticCannon/PneumaticCannonSystem.cs index a5ded0841d..67cff1a7a5 100644 --- a/Content.Server/PneumaticCannon/PneumaticCannonSystem.cs +++ b/Content.Server/PneumaticCannon/PneumaticCannonSystem.cs @@ -29,7 +29,7 @@ using Robust.Shared.Random; namespace Content.Server.PneumaticCannon { - public class PneumaticCannonSystem : EntitySystem + public sealed class PneumaticCannonSystem : EntitySystem { [Dependency] private readonly IRobustRandom _random = default!; [Dependency] private readonly StunSystem _stun = default!; diff --git a/Content.Server/Pointing/Components/RoguePointingArrowComponent.cs b/Content.Server/Pointing/Components/RoguePointingArrowComponent.cs index 3c8b8914db..f0cda35540 100644 --- a/Content.Server/Pointing/Components/RoguePointingArrowComponent.cs +++ b/Content.Server/Pointing/Components/RoguePointingArrowComponent.cs @@ -10,7 +10,7 @@ namespace Content.Server.Pointing.Components { [RegisterComponent] [Friend(typeof(RoguePointingSystem))] - public class RoguePointingArrowComponent : SharedRoguePointingArrowComponent + public sealed class RoguePointingArrowComponent : SharedRoguePointingArrowComponent { [ViewVariables] public EntityUid? Chasing; diff --git a/Content.Server/Popups/PopupMsgCommand.cs b/Content.Server/Popups/PopupMsgCommand.cs index 499522f4e5..76f25e76ab 100644 --- a/Content.Server/Popups/PopupMsgCommand.cs +++ b/Content.Server/Popups/PopupMsgCommand.cs @@ -7,7 +7,7 @@ using Robust.Shared.GameObjects; namespace Content.Server.Popups { [AdminCommand(AdminFlags.Debug)] - public class PopupMsgCommand : IConsoleCommand + public sealed class PopupMsgCommand : IConsoleCommand { public string Command => "srvpopupmsg"; public string Description => ""; diff --git a/Content.Server/Popups/PopupSystem.cs b/Content.Server/Popups/PopupSystem.cs index 755b359255..b6c063a0e9 100644 --- a/Content.Server/Popups/PopupSystem.cs +++ b/Content.Server/Popups/PopupSystem.cs @@ -6,7 +6,7 @@ using Robust.Shared.Player; namespace Content.Server.Popups { - public class PopupSystem : SharedPopupSystem + public sealed class PopupSystem : SharedPopupSystem { public override void PopupCursor(string message, Filter filter) { diff --git a/Content.Server/Power/Components/ActivatableUIRequiresPowerComponent.cs b/Content.Server/Power/Components/ActivatableUIRequiresPowerComponent.cs index fd79dac8ea..4859cc92e0 100644 --- a/Content.Server/Power/Components/ActivatableUIRequiresPowerComponent.cs +++ b/Content.Server/Power/Components/ActivatableUIRequiresPowerComponent.cs @@ -4,7 +4,7 @@ using Robust.Shared.GameObjects; namespace Content.Server.Power.Components { [RegisterComponent] - public class ActivatableUIRequiresPowerComponent : Component + public sealed class ActivatableUIRequiresPowerComponent : Component { } } diff --git a/Content.Server/Power/Components/ApcComponent.cs b/Content.Server/Power/Components/ApcComponent.cs index 064dddfb26..eba69f9e6a 100644 --- a/Content.Server/Power/Components/ApcComponent.cs +++ b/Content.Server/Power/Components/ApcComponent.cs @@ -13,7 +13,7 @@ namespace Content.Server.Power.Components; [RegisterComponent] [Friend(typeof(ApcSystem))] -public class ApcComponent : BaseApcNetComponent +public sealed class ApcComponent : BaseApcNetComponent { [DataField("onReceiveMessageSound")] public SoundSpecifier OnReceiveMessageSound = new SoundPathSpecifier("/Audio/Machines/machine_switch.ogg"); diff --git a/Content.Server/Power/Components/ApcPowerProviderComponent.cs b/Content.Server/Power/Components/ApcPowerProviderComponent.cs index bace38634b..5612272e07 100644 --- a/Content.Server/Power/Components/ApcPowerProviderComponent.cs +++ b/Content.Server/Power/Components/ApcPowerProviderComponent.cs @@ -7,7 +7,7 @@ namespace Content.Server.Power.Components { [RegisterComponent] [ComponentProtoName("PowerProvider")] - public class ApcPowerProviderComponent : BaseApcNetComponent + public sealed class ApcPowerProviderComponent : BaseApcNetComponent { [ViewVariables] public List LinkedReceivers { get; } = new(); diff --git a/Content.Server/Power/Components/ApcPowerReceiverComponent.cs b/Content.Server/Power/Components/ApcPowerReceiverComponent.cs index 766983d32e..2c5a6d68c8 100644 --- a/Content.Server/Power/Components/ApcPowerReceiverComponent.cs +++ b/Content.Server/Power/Components/ApcPowerReceiverComponent.cs @@ -21,7 +21,7 @@ namespace Content.Server.Power.Components /// [RegisterComponent] #pragma warning disable 618 - public class ApcPowerReceiverComponent : Component, IExamine + public sealed class ApcPowerReceiverComponent : Component, IExamine #pragma warning restore 618 { [Dependency] private readonly IEntityManager _entMan = default!; @@ -105,7 +105,7 @@ namespace Content.Server.Power.Components } #pragma warning disable 618 - public class PowerChangedMessage : ComponentMessage + public sealed class PowerChangedMessage : ComponentMessage #pragma warning restore 618 { public readonly bool Powered; diff --git a/Content.Server/Power/Components/BatteryChargerComponent.cs b/Content.Server/Power/Components/BatteryChargerComponent.cs index c0ffc0265b..951bd324de 100644 --- a/Content.Server/Power/Components/BatteryChargerComponent.cs +++ b/Content.Server/Power/Components/BatteryChargerComponent.cs @@ -7,7 +7,7 @@ namespace Content.Server.Power.Components /// Connects the loading side of a to a non-APC power network. /// [RegisterComponent] - public class BatteryChargerComponent : BasePowerNetComponent + public sealed class BatteryChargerComponent : BasePowerNetComponent { protected override void AddSelfToNet(IPowerNet net) { diff --git a/Content.Server/Power/Components/BatteryComponent.cs b/Content.Server/Power/Components/BatteryComponent.cs index dd319c85b7..03ea204a21 100644 --- a/Content.Server/Power/Components/BatteryComponent.cs +++ b/Content.Server/Power/Components/BatteryComponent.cs @@ -11,6 +11,7 @@ namespace Content.Server.Power.Components /// Battery node on the pow3r network. Needs other components to connect to actual networks. /// [RegisterComponent] + [Virtual] public class BatteryComponent : Component { [Dependency] private readonly IEntityManager _entMan = default!; diff --git a/Content.Server/Power/Components/BatteryDischargerComponent.cs b/Content.Server/Power/Components/BatteryDischargerComponent.cs index 3ba6bba41a..2f69931935 100644 --- a/Content.Server/Power/Components/BatteryDischargerComponent.cs +++ b/Content.Server/Power/Components/BatteryDischargerComponent.cs @@ -4,7 +4,7 @@ using Robust.Shared.GameObjects; namespace Content.Server.Power.Components { [RegisterComponent] - public class BatteryDischargerComponent : BasePowerNetComponent + public sealed class BatteryDischargerComponent : BasePowerNetComponent { protected override void AddSelfToNet(IPowerNet net) { diff --git a/Content.Server/Power/Components/BatterySelfRechargerComponent.cs b/Content.Server/Power/Components/BatterySelfRechargerComponent.cs index 0c004fc5cb..289f229adb 100644 --- a/Content.Server/Power/Components/BatterySelfRechargerComponent.cs +++ b/Content.Server/Power/Components/BatterySelfRechargerComponent.cs @@ -10,7 +10,7 @@ namespace Content.Server.Power.Components /// Self-recharging battery. /// [RegisterComponent] - public class BatterySelfRechargerComponent : Component + public sealed class BatterySelfRechargerComponent : Component { [ViewVariables(VVAccess.ReadWrite)] [DataField("autoRecharge")] public bool AutoRecharge { get; set; } diff --git a/Content.Server/Power/Components/CableComponent.cs b/Content.Server/Power/Components/CableComponent.cs index d82fbbfec7..d3e7c698b7 100644 --- a/Content.Server/Power/Components/CableComponent.cs +++ b/Content.Server/Power/Components/CableComponent.cs @@ -13,7 +13,7 @@ namespace Content.Server.Power.Components /// [RegisterComponent] [Friend(typeof(CableSystem))] - public class CableComponent : Component + public sealed class CableComponent : Component { [DataField("cableDroppedOnCutPrototype", customTypeSerializer: typeof(PrototypeIdSerializer))] public readonly string CableDroppedOnCutPrototype = "CableHVStack1"; diff --git a/Content.Server/Power/Components/ExaminableBatteryComponent.cs b/Content.Server/Power/Components/ExaminableBatteryComponent.cs index 608b4f119a..466621d5ce 100644 --- a/Content.Server/Power/Components/ExaminableBatteryComponent.cs +++ b/Content.Server/Power/Components/ExaminableBatteryComponent.cs @@ -9,7 +9,7 @@ namespace Content.Server.Power.Components { [RegisterComponent] #pragma warning disable 618 - public class ExaminableBatteryComponent : Component, IExamine + public sealed class ExaminableBatteryComponent : Component, IExamine #pragma warning restore 618 { [Dependency] private readonly IEntityManager _entityManager = default!; diff --git a/Content.Server/Power/Components/ExtensionCableProviderComponent.cs b/Content.Server/Power/Components/ExtensionCableProviderComponent.cs index 3595954b59..8c7201e3bd 100644 --- a/Content.Server/Power/Components/ExtensionCableProviderComponent.cs +++ b/Content.Server/Power/Components/ExtensionCableProviderComponent.cs @@ -9,7 +9,7 @@ namespace Content.Server.Power.Components { [RegisterComponent] [Friend(typeof(ExtensionCableSystem))] - public class ExtensionCableProviderComponent : Component + public sealed class ExtensionCableProviderComponent : Component { /// /// The max distance this can connect to s from. diff --git a/Content.Server/Power/Components/ExtensionCableReceiverComponent.cs b/Content.Server/Power/Components/ExtensionCableReceiverComponent.cs index d0ca505a21..13da517dc9 100644 --- a/Content.Server/Power/Components/ExtensionCableReceiverComponent.cs +++ b/Content.Server/Power/Components/ExtensionCableReceiverComponent.cs @@ -8,7 +8,7 @@ namespace Content.Server.Power.Components { [RegisterComponent] [Friend(typeof(ExtensionCableSystem))] - public class ExtensionCableReceiverComponent : Component + public sealed class ExtensionCableReceiverComponent : Component { [ViewVariables] public ExtensionCableProviderComponent? Provider { get; set; } diff --git a/Content.Server/Power/Components/PowerConsumerComponent.cs b/Content.Server/Power/Components/PowerConsumerComponent.cs index a8b2d041b9..9d469680e4 100644 --- a/Content.Server/Power/Components/PowerConsumerComponent.cs +++ b/Content.Server/Power/Components/PowerConsumerComponent.cs @@ -10,7 +10,7 @@ namespace Content.Server.Power.Components /// Draws power directly from an MV or HV wire it is on top of. /// [RegisterComponent] - public class PowerConsumerComponent : BaseNetConnectorComponent + public sealed class PowerConsumerComponent : BaseNetConnectorComponent { /// /// How much power this needs to be fully powered. diff --git a/Content.Server/Power/Components/PowerSupplierComponent.cs b/Content.Server/Power/Components/PowerSupplierComponent.cs index 21a82a6158..c26d04edf8 100644 --- a/Content.Server/Power/Components/PowerSupplierComponent.cs +++ b/Content.Server/Power/Components/PowerSupplierComponent.cs @@ -7,7 +7,7 @@ using Robust.Shared.ViewVariables; namespace Content.Server.Power.Components { [RegisterComponent] - public class PowerSupplierComponent : BasePowerNetComponent + public sealed class PowerSupplierComponent : BasePowerNetComponent { [ViewVariables(VVAccess.ReadWrite)] [DataField("supplyRate")] diff --git a/Content.Server/Power/EntitySystems/BatterySystem.cs b/Content.Server/Power/EntitySystems/BatterySystem.cs index 6a01fcc304..723e25a5bb 100644 --- a/Content.Server/Power/EntitySystems/BatterySystem.cs +++ b/Content.Server/Power/EntitySystems/BatterySystem.cs @@ -5,7 +5,7 @@ using Robust.Shared.GameObjects; namespace Content.Server.Power.EntitySystems { [UsedImplicitly] - public class BatterySystem : EntitySystem + public sealed class BatterySystem : EntitySystem { public override void Initialize() { diff --git a/Content.Server/Power/EntitySystems/CableSystem.cs b/Content.Server/Power/EntitySystems/CableSystem.cs index 81e1e50f57..2540ee344f 100644 --- a/Content.Server/Power/EntitySystems/CableSystem.cs +++ b/Content.Server/Power/EntitySystems/CableSystem.cs @@ -65,7 +65,7 @@ public sealed partial class CableSystem : EntitySystem } } -public class CuttingFinishedEvent : EntityEventArgs +public sealed class CuttingFinishedEvent : EntityEventArgs { public EntityUid User; diff --git a/Content.Server/Power/EntitySystems/ExtensionCableSystem.cs b/Content.Server/Power/EntitySystems/ExtensionCableSystem.cs index 40dd699d07..4ba2075e62 100644 --- a/Content.Server/Power/EntitySystems/ExtensionCableSystem.cs +++ b/Content.Server/Power/EntitySystems/ExtensionCableSystem.cs @@ -260,7 +260,7 @@ namespace Content.Server.Power.EntitySystems /// /// Sent when a connects to a /// - public class ProviderConnectedEvent : EntityEventArgs + public sealed class ProviderConnectedEvent : EntityEventArgs { /// /// The that connected. @@ -275,7 +275,7 @@ namespace Content.Server.Power.EntitySystems /// /// Sent when a disconnects from a /// - public class ProviderDisconnectedEvent : EntityEventArgs + public sealed class ProviderDisconnectedEvent : EntityEventArgs { /// /// The that disconnected. @@ -290,7 +290,7 @@ namespace Content.Server.Power.EntitySystems /// /// Sent when a connects to a /// - public class ReceiverConnectedEvent : EntityEventArgs + public sealed class ReceiverConnectedEvent : EntityEventArgs { /// /// The that connected. @@ -305,7 +305,7 @@ namespace Content.Server.Power.EntitySystems /// /// Sent when a disconnects from a /// - public class ReceiverDisconnectedEvent : EntityEventArgs + public sealed class ReceiverDisconnectedEvent : EntityEventArgs { /// /// The that disconnected. diff --git a/Content.Server/Power/EntitySystems/PowerNetSystem.cs b/Content.Server/Power/EntitySystems/PowerNetSystem.cs index db524d5ab8..0998c50922 100644 --- a/Content.Server/Power/EntitySystems/PowerNetSystem.cs +++ b/Content.Server/Power/EntitySystems/PowerNetSystem.cs @@ -17,7 +17,7 @@ namespace Content.Server.Power.EntitySystems /// Manages power networks, power state, and all power components. /// [UsedImplicitly] - public class PowerNetSystem : EntitySystem + public sealed class PowerNetSystem : EntitySystem { private readonly PowerState _powerState = new(); private readonly HashSet _powerNetReconnectQueue = new(); diff --git a/Content.Server/Power/NodeGroups/ApcNet.cs b/Content.Server/Power/NodeGroups/ApcNet.cs index 90b2c9a8a2..6cbfbdfeeb 100644 --- a/Content.Server/Power/NodeGroups/ApcNet.cs +++ b/Content.Server/Power/NodeGroups/ApcNet.cs @@ -31,7 +31,7 @@ namespace Content.Server.Power.NodeGroups [NodeGroup(NodeGroupID.Apc)] [UsedImplicitly] - public class ApcNet : BaseNetConnectorNodeGroup, IApcNet + public sealed class ApcNet : BaseNetConnectorNodeGroup, IApcNet { private readonly PowerNetSystem _powerNetSystem = EntitySystem.Get(); diff --git a/Content.Server/Power/NodeGroups/PowerNet.cs b/Content.Server/Power/NodeGroups/PowerNet.cs index 45c347b6b2..ef102ea152 100644 --- a/Content.Server/Power/NodeGroups/PowerNet.cs +++ b/Content.Server/Power/NodeGroups/PowerNet.cs @@ -30,7 +30,7 @@ namespace Content.Server.Power.NodeGroups [NodeGroup(NodeGroupID.HVPower, NodeGroupID.MVPower)] [UsedImplicitly] - public class PowerNet : BaseNetConnectorNodeGroup, IPowerNet + public sealed class PowerNet : BaseNetConnectorNodeGroup, IPowerNet { private readonly PowerNetSystem _powerNetSystem = EntitySystem.Get(); diff --git a/Content.Server/Power/Nodes/CableDeviceNode.cs b/Content.Server/Power/Nodes/CableDeviceNode.cs index e89e15761c..b9d880445d 100644 --- a/Content.Server/Power/Nodes/CableDeviceNode.cs +++ b/Content.Server/Power/Nodes/CableDeviceNode.cs @@ -11,6 +11,7 @@ namespace Content.Server.Power.Nodes /// Type of node that connects to a below it. /// [DataDefinition] + [Virtual] public class CableDeviceNode : Node { public override IEnumerable GetReachableNodes(TransformComponent xform, diff --git a/Content.Server/Power/Nodes/CableNode.cs b/Content.Server/Power/Nodes/CableNode.cs index 1d681b0dee..1b7d9fd8e1 100644 --- a/Content.Server/Power/Nodes/CableNode.cs +++ b/Content.Server/Power/Nodes/CableNode.cs @@ -9,7 +9,7 @@ using Robust.Shared.Serialization.Manager.Attributes; namespace Content.Server.Power.Nodes { [DataDefinition] - public class CableNode : Node + public sealed class CableNode : Node { public override IEnumerable GetReachableNodes(TransformComponent xform, EntityQuery nodeQuery, diff --git a/Content.Server/Power/Nodes/CableTerminalNode.cs b/Content.Server/Power/Nodes/CableTerminalNode.cs index 1c2d138b5d..9a5adc015d 100644 --- a/Content.Server/Power/Nodes/CableTerminalNode.cs +++ b/Content.Server/Power/Nodes/CableTerminalNode.cs @@ -9,7 +9,7 @@ using Robust.Shared.Serialization.Manager.Attributes; namespace Content.Server.Power.Nodes { [DataDefinition] - public class CableTerminalNode : CableDeviceNode + public sealed class CableTerminalNode : CableDeviceNode { public override IEnumerable GetReachableNodes(TransformComponent xform, EntityQuery nodeQuery, diff --git a/Content.Server/Power/Nodes/CableTerminalPortNode.cs b/Content.Server/Power/Nodes/CableTerminalPortNode.cs index ea8f44dc12..de5c36b0ea 100644 --- a/Content.Server/Power/Nodes/CableTerminalPortNode.cs +++ b/Content.Server/Power/Nodes/CableTerminalPortNode.cs @@ -8,7 +8,7 @@ using Robust.Shared.Serialization.Manager.Attributes; namespace Content.Server.Power.Nodes { [DataDefinition] - public class CableTerminalPortNode : Node + public sealed class CableTerminalPortNode : Node { public override IEnumerable GetReachableNodes(TransformComponent xform, EntityQuery nodeQuery, diff --git a/Content.Server/Power/SMES/PowerSmesSystem.cs b/Content.Server/Power/SMES/PowerSmesSystem.cs index 98c4b4541a..172553f764 100644 --- a/Content.Server/Power/SMES/PowerSmesSystem.cs +++ b/Content.Server/Power/SMES/PowerSmesSystem.cs @@ -4,7 +4,7 @@ using Robust.Shared.GameObjects; namespace Content.Server.Power.SMES { [UsedImplicitly] - internal class PowerSmesSystem : EntitySystem + internal sealed class PowerSmesSystem : EntitySystem { public override void Update(float frameTime) { diff --git a/Content.Server/Power/SMES/SmesComponent.cs b/Content.Server/Power/SMES/SmesComponent.cs index f7c9e40c8a..cb15d41df7 100644 --- a/Content.Server/Power/SMES/SmesComponent.cs +++ b/Content.Server/Power/SMES/SmesComponent.cs @@ -16,7 +16,7 @@ namespace Content.Server.Power.SMES /// Code interfacing with the powernet is handled in and . /// [RegisterComponent] - public class SmesComponent : Component + public sealed class SmesComponent : Component { [Dependency] private readonly IEntityManager _entMan = default!; [Dependency] private readonly IGameTiming _gameTiming = default!; diff --git a/Content.Server/Power/SetBatteryPercentCommand.cs b/Content.Server/Power/SetBatteryPercentCommand.cs index 908cc2e5cc..502cca3ca5 100644 --- a/Content.Server/Power/SetBatteryPercentCommand.cs +++ b/Content.Server/Power/SetBatteryPercentCommand.cs @@ -8,7 +8,7 @@ using Robust.Shared.IoC; namespace Content.Server.Power { [AdminCommand(AdminFlags.Admin)] - public class SetBatteryPercentCommand : IConsoleCommand + public sealed class SetBatteryPercentCommand : IConsoleCommand { public string Command => "setbatterypercent"; public string Description => "Drains or recharges a battery by entity uid and percentage, i.e.: forall with Battery do setbatterypercent $ID 0"; diff --git a/Content.Server/PowerCell/PowerCellSystem.cs b/Content.Server/PowerCell/PowerCellSystem.cs index fc16785d70..dacbe9be0f 100644 --- a/Content.Server/PowerCell/PowerCellSystem.cs +++ b/Content.Server/PowerCell/PowerCellSystem.cs @@ -17,7 +17,7 @@ using Content.Server.Kitchen.Components; namespace Content.Server.PowerCell; -public class PowerCellSystem : SharedPowerCellSystem +public sealed class PowerCellSystem : SharedPowerCellSystem { [Dependency] private readonly SolutionContainerSystem _solutionsSystem = default!; [Dependency] private readonly ExplosionSystem _explosionSystem = default!; diff --git a/Content.Server/Preferences/Managers/ServerPreferencesManager.cs b/Content.Server/Preferences/Managers/ServerPreferencesManager.cs index 44041577e8..0a51db7359 100644 --- a/Content.Server/Preferences/Managers/ServerPreferencesManager.cs +++ b/Content.Server/Preferences/Managers/ServerPreferencesManager.cs @@ -23,7 +23,7 @@ namespace Content.Server.Preferences.Managers /// Sends before the client joins the lobby. /// Receives and at any time. /// - public class ServerPreferencesManager : IServerPreferencesManager + public sealed class ServerPreferencesManager : IServerPreferencesManager { [Dependency] private readonly IServerNetManager _netManager = default!; [Dependency] private readonly IConfigurationManager _cfg = default!; diff --git a/Content.Server/Projectiles/Components/HitscanComponent.cs b/Content.Server/Projectiles/Components/HitscanComponent.cs index a931f640b9..3255bf4d22 100644 --- a/Content.Server/Projectiles/Components/HitscanComponent.cs +++ b/Content.Server/Projectiles/Components/HitscanComponent.cs @@ -19,7 +19,7 @@ namespace Content.Server.Projectiles.Components /// Lasers etc. /// [RegisterComponent] - public class HitscanComponent : Component + public sealed class HitscanComponent : Component { [Dependency] private readonly IEntityManager _entMan = default!; [Dependency] private readonly IGameTiming _gameTiming = default!; diff --git a/Content.Server/Projectiles/Components/ProjectileComponent.cs b/Content.Server/Projectiles/Components/ProjectileComponent.cs index 24f9555182..58ce7c0198 100644 --- a/Content.Server/Projectiles/Components/ProjectileComponent.cs +++ b/Content.Server/Projectiles/Components/ProjectileComponent.cs @@ -9,7 +9,7 @@ namespace Content.Server.Projectiles.Components { [RegisterComponent] [ComponentReference(typeof(SharedProjectileComponent))] - public class ProjectileComponent : SharedProjectileComponent + public sealed class ProjectileComponent : SharedProjectileComponent { [DataField("damage", required: true)] [ViewVariables(VVAccess.ReadWrite)] diff --git a/Content.Server/Pulling/PullingSystem.cs b/Content.Server/Pulling/PullingSystem.cs index 7cb76f9d24..f7ea0aae57 100644 --- a/Content.Server/Pulling/PullingSystem.cs +++ b/Content.Server/Pulling/PullingSystem.cs @@ -9,7 +9,7 @@ using Robust.Shared.Players; namespace Content.Server.Pulling { [UsedImplicitly] - public class PullingSystem : SharedPullingSystem + public sealed class PullingSystem : SharedPullingSystem { public override void Initialize() { diff --git a/Content.Server/RCD/Components/RCDAmmoComponent.cs b/Content.Server/RCD/Components/RCDAmmoComponent.cs index 9c9c0a4b59..c7021819cd 100644 --- a/Content.Server/RCD/Components/RCDAmmoComponent.cs +++ b/Content.Server/RCD/Components/RCDAmmoComponent.cs @@ -5,7 +5,7 @@ using Robust.Shared.ViewVariables; namespace Content.Server.RCD.Components { [RegisterComponent] - public class RCDAmmoComponent : Component + public sealed class RCDAmmoComponent : Component { //How much ammo we refill [ViewVariables(VVAccess.ReadWrite)] [DataField("refillAmmo")] public int RefillAmmo = 5; diff --git a/Content.Server/RCD/Components/RCDComponent.cs b/Content.Server/RCD/Components/RCDComponent.cs index dd80c517fe..5e99b33766 100644 --- a/Content.Server/RCD/Components/RCDComponent.cs +++ b/Content.Server/RCD/Components/RCDComponent.cs @@ -14,7 +14,7 @@ namespace Content.Server.RCD.Components } [RegisterComponent] - public class RCDComponent : Component + public sealed class RCDComponent : Component { [ViewVariables(VVAccess.ReadOnly)] [DataField("maxAmmo")] public int MaxAmmo = 5; diff --git a/Content.Server/RCD/Systems/RCDAmmoSystem.cs b/Content.Server/RCD/Systems/RCDAmmoSystem.cs index d88754c105..943bef3b23 100644 --- a/Content.Server/RCD/Systems/RCDAmmoSystem.cs +++ b/Content.Server/RCD/Systems/RCDAmmoSystem.cs @@ -8,7 +8,7 @@ using Robust.Shared.Localization; namespace Content.Server.RCD.Systems { - public class RCDAmmoSystem : EntitySystem + public sealed class RCDAmmoSystem : EntitySystem { public override void Initialize() { diff --git a/Content.Server/RCD/Systems/RCDSystem.cs b/Content.Server/RCD/Systems/RCDSystem.cs index 8c98ff2b39..31026bca73 100644 --- a/Content.Server/RCD/Systems/RCDSystem.cs +++ b/Content.Server/RCD/Systems/RCDSystem.cs @@ -19,7 +19,7 @@ using Robust.Shared.Player; namespace Content.Server.RCD.Systems { - public class RCDSystem : EntitySystem + public sealed class RCDSystem : EntitySystem { [Dependency] private readonly ITileDefinitionManager _tileDefinitionManager = default!; [Dependency] private readonly IMapManager _mapManager = default!; diff --git a/Content.Server/Radar/RadarConsoleComponent.cs b/Content.Server/Radar/RadarConsoleComponent.cs index 747c53ec1d..8d0b6297bb 100644 --- a/Content.Server/Radar/RadarConsoleComponent.cs +++ b/Content.Server/Radar/RadarConsoleComponent.cs @@ -5,7 +5,7 @@ using Robust.Shared.ViewVariables; namespace Content.Server.Radar; [RegisterComponent] -public class RadarConsoleComponent : Component +public sealed class RadarConsoleComponent : Component { [ViewVariables(VVAccess.ReadWrite)] [DataField("range")] diff --git a/Content.Server/Radar/RadarConsoleSystem.cs b/Content.Server/Radar/RadarConsoleSystem.cs index 5603ef02db..c146508fe3 100644 --- a/Content.Server/Radar/RadarConsoleSystem.cs +++ b/Content.Server/Radar/RadarConsoleSystem.cs @@ -11,7 +11,7 @@ using Robust.Shared.Maths; namespace Content.Server.Radar; -public class RadarConsoleSystem : EntitySystem +public sealed class RadarConsoleSystem : EntitySystem { [Dependency] private readonly IMapManager _mapManager = default!; diff --git a/Content.Server/Radio/Components/HandheldRadioComponent.cs b/Content.Server/Radio/Components/HandheldRadioComponent.cs index c2f417c004..4818e1c5b0 100644 --- a/Content.Server/Radio/Components/HandheldRadioComponent.cs +++ b/Content.Server/Radio/Components/HandheldRadioComponent.cs @@ -20,7 +20,7 @@ namespace Content.Server.Radio.Components [ComponentReference(typeof(IListen))] [ComponentReference(typeof(IActivate))] #pragma warning disable 618 - public class HandheldRadioComponent : Component, IListen, IRadio, IActivate, IExamine + public sealed class HandheldRadioComponent : Component, IListen, IRadio, IActivate, IExamine #pragma warning restore 618 { [Dependency] private readonly IChatManager _chatManager = default!; diff --git a/Content.Server/Radio/EntitySystems/ListeningSystem.cs b/Content.Server/Radio/EntitySystems/ListeningSystem.cs index 1c4b2b5763..6f9200101b 100644 --- a/Content.Server/Radio/EntitySystems/ListeningSystem.cs +++ b/Content.Server/Radio/EntitySystems/ListeningSystem.cs @@ -5,7 +5,7 @@ using Robust.Shared.GameObjects; namespace Content.Server.Radio.EntitySystems { [UsedImplicitly] - public class ListeningSystem : EntitySystem + public sealed class ListeningSystem : EntitySystem { public void PingListeners(EntityUid source, string message) { diff --git a/Content.Server/Radio/EntitySystems/RadioSystem.cs b/Content.Server/Radio/EntitySystems/RadioSystem.cs index 350590f6a4..872f2e2086 100644 --- a/Content.Server/Radio/EntitySystems/RadioSystem.cs +++ b/Content.Server/Radio/EntitySystems/RadioSystem.cs @@ -7,7 +7,7 @@ using Robust.Shared.GameObjects; namespace Content.Server.Radio.EntitySystems { [UsedImplicitly] - public class RadioSystem : EntitySystem + public sealed class RadioSystem : EntitySystem { private readonly List _messages = new(); diff --git a/Content.Server/RandomAppearance/RandomAppearanceComponent.cs b/Content.Server/RandomAppearance/RandomAppearanceComponent.cs index 78454df421..c40c1e8092 100644 --- a/Content.Server/RandomAppearance/RandomAppearanceComponent.cs +++ b/Content.Server/RandomAppearance/RandomAppearanceComponent.cs @@ -10,7 +10,7 @@ namespace Content.Server.RandomAppearance; [RegisterComponent] [Friend(typeof(RandomAppearanceSystem))] -public class RandomAppearanceComponent : Component, ISerializationHooks +public sealed class RandomAppearanceComponent : Component, ISerializationHooks { [DataField("spriteStates")] public string[] SpriteStates = {"0", "1", "2", "3", "4"}; diff --git a/Content.Server/RandomAppearance/RandomAppearanceSystem.cs b/Content.Server/RandomAppearance/RandomAppearanceSystem.cs index 1fa8b94958..dec6923ad9 100644 --- a/Content.Server/RandomAppearance/RandomAppearanceSystem.cs +++ b/Content.Server/RandomAppearance/RandomAppearanceSystem.cs @@ -6,7 +6,7 @@ using Robust.Shared.Reflection; namespace Content.Server.RandomAppearance; -public class RandomAppearanceSystem : EntitySystem +public sealed class RandomAppearanceSystem : EntitySystem { [Dependency] private readonly IRobustRandom _random = default!; diff --git a/Content.Server/Recycling/Components/RecyclableComponent.cs b/Content.Server/Recycling/Components/RecyclableComponent.cs index a4adfe77bf..e94792b1d2 100644 --- a/Content.Server/Recycling/Components/RecyclableComponent.cs +++ b/Content.Server/Recycling/Components/RecyclableComponent.cs @@ -6,7 +6,7 @@ using Robust.Shared.Serialization.Manager.Attributes; namespace Content.Server.Recycling.Components { [RegisterComponent] - public class RecyclableComponent : Component + public sealed class RecyclableComponent : Component { [Dependency] private readonly IEntityManager _entMan = default!; diff --git a/Content.Server/Recycling/Components/RecyclerComponent.cs b/Content.Server/Recycling/Components/RecyclerComponent.cs index 63c44bc215..c2349f0e77 100644 --- a/Content.Server/Recycling/Components/RecyclerComponent.cs +++ b/Content.Server/Recycling/Components/RecyclerComponent.cs @@ -19,7 +19,7 @@ namespace Content.Server.Recycling.Components // TODO: Add sound and safe beep [RegisterComponent] [Friend(typeof(RecyclerSystem))] - public class RecyclerComponent : Component, ISuicideAct + public sealed class RecyclerComponent : Component, ISuicideAct { [Dependency] private readonly IEntityManager _entMan = default!; diff --git a/Content.Server/Remotes/DoorRemoteComponent.cs b/Content.Server/Remotes/DoorRemoteComponent.cs index b39781efff..414ee9521a 100644 --- a/Content.Server/Remotes/DoorRemoteComponent.cs +++ b/Content.Server/Remotes/DoorRemoteComponent.cs @@ -5,7 +5,7 @@ namespace Content.Server.Remotes { [RegisterComponent] [Friend(typeof(DoorRemoteSystem))] - public class DoorRemoteComponent : Component + public sealed class DoorRemoteComponent : Component { public override string Name => "DoorRemote"; diff --git a/Content.Server/Repairable/RepairableComponent.cs b/Content.Server/Repairable/RepairableComponent.cs index 3ebc461189..d47fa64155 100644 --- a/Content.Server/Repairable/RepairableComponent.cs +++ b/Content.Server/Repairable/RepairableComponent.cs @@ -7,7 +7,7 @@ using Robust.Shared.ViewVariables; namespace Content.Server.Repairable { [RegisterComponent] - public class RepairableComponent : Component + public sealed class RepairableComponent : Component { [ViewVariables(VVAccess.ReadWrite)] [DataField("fuelCost")] public int FuelCost = 5; diff --git a/Content.Server/Repairable/RepairableSystem.cs b/Content.Server/Repairable/RepairableSystem.cs index e6c4b55b7d..eded66f5da 100644 --- a/Content.Server/Repairable/RepairableSystem.cs +++ b/Content.Server/Repairable/RepairableSystem.cs @@ -13,7 +13,7 @@ using Robust.Shared.Localization; namespace Content.Server.Repairable { - public class RepairableSystem : EntitySystem + public sealed class RepairableSystem : EntitySystem { [Dependency] private readonly ToolSystem _toolSystem = default!; [Dependency] private readonly DamageableSystem _damageableSystem = default!; diff --git a/Content.Server/Research/Components/ResearchClientComponent.cs b/Content.Server/Research/Components/ResearchClientComponent.cs index 376725c5ec..44c8ce1130 100644 --- a/Content.Server/Research/Components/ResearchClientComponent.cs +++ b/Content.Server/Research/Components/ResearchClientComponent.cs @@ -10,6 +10,7 @@ using Robust.Shared.ViewVariables; namespace Content.Server.Research.Components { [RegisterComponent] + [Virtual] public class ResearchClientComponent : SharedResearchClientComponent, IActivate { [Dependency] private readonly IEntitySystemManager _entitySystemManager = default!; diff --git a/Content.Server/Research/Components/ResearchConsoleComponent.cs b/Content.Server/Research/Components/ResearchConsoleComponent.cs index ef9c6a35b8..d9fb09ea1e 100644 --- a/Content.Server/Research/Components/ResearchConsoleComponent.cs +++ b/Content.Server/Research/Components/ResearchConsoleComponent.cs @@ -20,7 +20,7 @@ namespace Content.Server.Research.Components { [RegisterComponent] [ComponentReference(typeof(IActivate))] - public class ResearchConsoleComponent : SharedResearchConsoleComponent, IActivate + public sealed class ResearchConsoleComponent : SharedResearchConsoleComponent, IActivate { [Dependency] private readonly IEntityManager _entMan = default!; [Dependency] private readonly IPrototypeManager _prototypeManager = default!; diff --git a/Content.Server/Research/Components/ResearchPointSourceComponent.cs b/Content.Server/Research/Components/ResearchPointSourceComponent.cs index 725f8b1fe8..8d1dbf64d8 100644 --- a/Content.Server/Research/Components/ResearchPointSourceComponent.cs +++ b/Content.Server/Research/Components/ResearchPointSourceComponent.cs @@ -9,7 +9,7 @@ namespace Content.Server.Research.Components { [RegisterComponent] [ComponentReference(typeof(IActivate))] - public class ResearchPointSourceComponent : ResearchClientComponent + public sealed class ResearchPointSourceComponent : ResearchClientComponent { [DataField("pointspersecond")] private int _pointsPerSecond; diff --git a/Content.Server/Research/Components/ResearchServerComponent.cs b/Content.Server/Research/Components/ResearchServerComponent.cs index 8d1a84ef19..bd89a6e3fd 100644 --- a/Content.Server/Research/Components/ResearchServerComponent.cs +++ b/Content.Server/Research/Components/ResearchServerComponent.cs @@ -9,7 +9,7 @@ using Robust.Shared.ViewVariables; namespace Content.Server.Research.Components { [RegisterComponent] - public class ResearchServerComponent : Component + public sealed class ResearchServerComponent : Component { public static int ServerCount = 0; diff --git a/Content.Server/Research/Components/TechnologyDatabaseComponent.cs b/Content.Server/Research/Components/TechnologyDatabaseComponent.cs index 00ac1ad2e6..327a4199fd 100644 --- a/Content.Server/Research/Components/TechnologyDatabaseComponent.cs +++ b/Content.Server/Research/Components/TechnologyDatabaseComponent.cs @@ -7,7 +7,7 @@ using Robust.Shared.Players; namespace Content.Server.Research.Components { [RegisterComponent] - public class TechnologyDatabaseComponent : SharedTechnologyDatabaseComponent + public sealed class TechnologyDatabaseComponent : SharedTechnologyDatabaseComponent { public override ComponentState GetComponentState() { diff --git a/Content.Server/Research/ResearchSystem.cs b/Content.Server/Research/ResearchSystem.cs index dc263dcf0a..e742f91a85 100644 --- a/Content.Server/Research/ResearchSystem.cs +++ b/Content.Server/Research/ResearchSystem.cs @@ -6,7 +6,7 @@ using Robust.Shared.GameObjects; namespace Content.Server.Research { [UsedImplicitly] - public class ResearchSystem : EntitySystem + public sealed class ResearchSystem : EntitySystem { private const float ResearchConsoleUIUpdateTime = 30f; diff --git a/Content.Server/Resist/ResistLockerComponent.cs b/Content.Server/Resist/ResistLockerComponent.cs index 0d2d094948..93d005c414 100644 --- a/Content.Server/Resist/ResistLockerComponent.cs +++ b/Content.Server/Resist/ResistLockerComponent.cs @@ -8,7 +8,7 @@ namespace Content.Server.Resist; [RegisterComponent] [Friend(typeof(ResistLockerSystem))] -public class ResistLockerComponent : Component +public sealed class ResistLockerComponent : Component { /// /// How long will this locker take to kick open, defaults to 2 minutes diff --git a/Content.Server/Resist/ResistLockerSystem.cs b/Content.Server/Resist/ResistLockerSystem.cs index b1cfc382ed..738dd3ecb7 100644 --- a/Content.Server/Resist/ResistLockerSystem.cs +++ b/Content.Server/Resist/ResistLockerSystem.cs @@ -11,7 +11,7 @@ using Robust.Shared.Localization; namespace Content.Server.Resist; -public class ResistLockerSystem : EntitySystem +public sealed class ResistLockerSystem : EntitySystem { [Dependency] private readonly DoAfterSystem _doAfterSystem = default!; [Dependency] private readonly PopupSystem _popupSystem = default!; @@ -90,8 +90,8 @@ public class ResistLockerSystem : EntitySystem { component.CancelToken?.Cancel(); } - - private class ResistDoAfterComplete : EntityEventArgs + + private sealed class ResistDoAfterComplete : EntityEventArgs { public readonly EntityUid User; public readonly EntityUid Target; @@ -102,7 +102,7 @@ public class ResistLockerSystem : EntitySystem } } - private class ResistDoAfterCancelled : EntityEventArgs + private sealed class ResistDoAfterCancelled : EntityEventArgs { public readonly EntityUid User; diff --git a/Content.Server/Roles/AddRoleCommand.cs b/Content.Server/Roles/AddRoleCommand.cs index 1df153ec8a..af332da2bb 100644 --- a/Content.Server/Roles/AddRoleCommand.cs +++ b/Content.Server/Roles/AddRoleCommand.cs @@ -11,7 +11,7 @@ using System.Linq; namespace Content.Server.Roles { [AdminCommand(AdminFlags.Fun)] - public class AddRoleCommand : IConsoleCommand + public sealed class AddRoleCommand : IConsoleCommand { public string Command => "addrole"; diff --git a/Content.Server/Roles/Job.cs b/Content.Server/Roles/Job.cs index c94ca22258..dbb6f87a89 100644 --- a/Content.Server/Roles/Job.cs +++ b/Content.Server/Roles/Job.cs @@ -6,7 +6,7 @@ using Robust.Shared.ViewVariables; namespace Content.Server.Roles { - public class Job : Role + public sealed class Job : Role { [ViewVariables] public JobPrototype Prototype { get; } diff --git a/Content.Server/Roles/ListRolesCommand.cs b/Content.Server/Roles/ListRolesCommand.cs index cc05849b8d..b670c0ceba 100644 --- a/Content.Server/Roles/ListRolesCommand.cs +++ b/Content.Server/Roles/ListRolesCommand.cs @@ -8,7 +8,7 @@ using Robust.Shared.Prototypes; namespace Content.Server.Roles { [AdminCommand(AdminFlags.Fun)] - public class ListRolesCommand : IConsoleCommand + public sealed class ListRolesCommand : IConsoleCommand { public string Command => "listroles"; diff --git a/Content.Server/Roles/RemoveRoleCommand.cs b/Content.Server/Roles/RemoveRoleCommand.cs index baf0edb542..5593338373 100644 --- a/Content.Server/Roles/RemoveRoleCommand.cs +++ b/Content.Server/Roles/RemoveRoleCommand.cs @@ -10,7 +10,7 @@ using Robust.Shared.Prototypes; namespace Content.Server.Roles { [AdminCommand(AdminFlags.Fun)] - public class RemoveRoleCommand : IConsoleCommand + public sealed class RemoveRoleCommand : IConsoleCommand { [Dependency] private readonly IPrototypeManager _prototypeManager = default!; diff --git a/Content.Server/Roles/RoleEvent.cs b/Content.Server/Roles/RoleEvent.cs index dbddcc5ba4..eecae93e59 100644 --- a/Content.Server/Roles/RoleEvent.cs +++ b/Content.Server/Roles/RoleEvent.cs @@ -2,7 +2,7 @@ namespace Content.Server.Roles { - public class RoleEvent : EntityEventArgs + public abstract class RoleEvent : EntityEventArgs { public readonly Role Role; diff --git a/Content.Server/Rotatable/FlippableComponent.cs b/Content.Server/Rotatable/FlippableComponent.cs index 89e822948a..1f64e11781 100644 --- a/Content.Server/Rotatable/FlippableComponent.cs +++ b/Content.Server/Rotatable/FlippableComponent.cs @@ -6,7 +6,7 @@ using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototy namespace Content.Server.Rotatable { [RegisterComponent] - public class FlippableComponent : Component + public sealed class FlippableComponent : Component { /// /// Entity to replace this entity with when the current one is 'flipped'. diff --git a/Content.Server/Rotatable/RotatableSystem.cs b/Content.Server/Rotatable/RotatableSystem.cs index 0d47e75adb..73217da106 100644 --- a/Content.Server/Rotatable/RotatableSystem.cs +++ b/Content.Server/Rotatable/RotatableSystem.cs @@ -12,7 +12,7 @@ namespace Content.Server.Rotatable /// /// Handles verbs for the and components. /// - public class RotatableSystem : EntitySystem + public sealed class RotatableSystem : EntitySystem { public override void Initialize() { diff --git a/Content.Server/RoundEnd/RoundEndSystem.cs b/Content.Server/RoundEnd/RoundEndSystem.cs index 44cf1018d1..7a17e0e4df 100644 --- a/Content.Server/RoundEnd/RoundEndSystem.cs +++ b/Content.Server/RoundEnd/RoundEndSystem.cs @@ -15,7 +15,7 @@ using Timer = Robust.Shared.Timing.Timer; namespace Content.Server.RoundEnd { - public class RoundEndSystem : EntitySystem + public sealed class RoundEndSystem : EntitySystem { [Dependency] private readonly IGameTiming _gameTiming = default!; [Dependency] private readonly IChatManager _chatManager = default!; @@ -154,7 +154,7 @@ namespace Content.Server.RoundEnd } } - public class RoundEndSystemChangedEvent : EntityEventArgs + public sealed class RoundEndSystemChangedEvent : EntityEventArgs { public static RoundEndSystemChangedEvent Default { get; } = new(); } diff --git a/Content.Server/Salvage/SalvageMagnetComponent.cs b/Content.Server/Salvage/SalvageMagnetComponent.cs index ff9cb037e3..1be09ed49b 100644 --- a/Content.Server/Salvage/SalvageMagnetComponent.cs +++ b/Content.Server/Salvage/SalvageMagnetComponent.cs @@ -10,7 +10,7 @@ namespace Content.Server.Salvage /// A salvage magnet. /// [RegisterComponent] - public class SalvageMagnetComponent : Component + public sealed class SalvageMagnetComponent : Component { /// /// Offset relative to magnet that salvage should spawn. diff --git a/Content.Server/Salvage/SalvageMapPrototype.cs b/Content.Server/Salvage/SalvageMapPrototype.cs index 07a583ee59..3c7661c395 100644 --- a/Content.Server/Salvage/SalvageMapPrototype.cs +++ b/Content.Server/Salvage/SalvageMapPrototype.cs @@ -10,7 +10,7 @@ using Robust.Shared.ViewVariables; namespace Content.Server.Salvage { [Prototype("salvageMap")] - public class SalvageMapPrototype : IPrototype + public sealed class SalvageMapPrototype : IPrototype { [ViewVariables] [DataField("id", required: true)] diff --git a/Content.Server/Salvage/SalvageSystem.cs b/Content.Server/Salvage/SalvageSystem.cs index 292ae4774c..37bd56f57e 100644 --- a/Content.Server/Salvage/SalvageSystem.cs +++ b/Content.Server/Salvage/SalvageSystem.cs @@ -24,7 +24,7 @@ using System.Linq; namespace Content.Server.Salvage { - public class SalvageSystem : EntitySystem + public sealed class SalvageSystem : EntitySystem { [Dependency] private readonly IChatManager _chatManager = default!; [Dependency] private readonly IPauseManager _pauseManager = default!; @@ -368,7 +368,7 @@ namespace Content.Server.Salvage } } - public class SalvageGridState + public sealed class SalvageGridState { public TimeSpan CurrentTime { get; set; } public List ActiveMagnets { get; } = new(); diff --git a/Content.Server/Sandbox/Commands/ColorNetworkCommand.cs b/Content.Server/Sandbox/Commands/ColorNetworkCommand.cs index 80d511a27a..d2ed7290fe 100644 --- a/Content.Server/Sandbox/Commands/ColorNetworkCommand.cs +++ b/Content.Server/Sandbox/Commands/ColorNetworkCommand.cs @@ -16,7 +16,7 @@ using Robust.Shared.Maths; namespace Content.Server.Sandbox.Commands { [AnyCommand] - public class ColorNetworkCommand : IConsoleCommand + public sealed class ColorNetworkCommand : IConsoleCommand { public string Command => "colornetwork"; public string Description => Loc.GetString("color-network-command-description"); diff --git a/Content.Server/Security/Components/DeployableBarrierComponent.cs b/Content.Server/Security/Components/DeployableBarrierComponent.cs index c54458213e..4c9dab2bc4 100644 --- a/Content.Server/Security/Components/DeployableBarrierComponent.cs +++ b/Content.Server/Security/Components/DeployableBarrierComponent.cs @@ -3,7 +3,7 @@ using Robust.Shared.GameObjects; namespace Content.Server.Security { [RegisterComponent] - public class DeployableBarrierComponent : Component + public sealed class DeployableBarrierComponent : Component { } } diff --git a/Content.Server/Security/Systems/DeployableBarrierSystem.cs b/Content.Server/Security/Systems/DeployableBarrierSystem.cs index 2420b66f91..941e108bf3 100644 --- a/Content.Server/Security/Systems/DeployableBarrierSystem.cs +++ b/Content.Server/Security/Systems/DeployableBarrierSystem.cs @@ -8,7 +8,7 @@ using Robust.Shared.IoC; namespace Content.Server.Security.Systems { - public class DeployableBarrierSystem : EntitySystem + public sealed class DeployableBarrierSystem : EntitySystem { public override void Initialize() { diff --git a/Content.Server/Singularity/Components/ContainmentFieldComponent.cs b/Content.Server/Singularity/Components/ContainmentFieldComponent.cs index 8d6dc682fe..3b4b2a47c5 100644 --- a/Content.Server/Singularity/Components/ContainmentFieldComponent.cs +++ b/Content.Server/Singularity/Components/ContainmentFieldComponent.cs @@ -5,7 +5,7 @@ namespace Content.Server.Singularity.Components { [RegisterComponent] [ComponentReference(typeof(SharedContainmentFieldComponent))] - public class ContainmentFieldComponent : SharedContainmentFieldComponent + public sealed class ContainmentFieldComponent : SharedContainmentFieldComponent { public ContainmentFieldConnection? Parent; } diff --git a/Content.Server/Singularity/Components/ContainmentFieldConnection.cs b/Content.Server/Singularity/Components/ContainmentFieldConnection.cs index f2f6a26eae..8e9a024598 100644 --- a/Content.Server/Singularity/Components/ContainmentFieldConnection.cs +++ b/Content.Server/Singularity/Components/ContainmentFieldConnection.cs @@ -9,7 +9,7 @@ using Timer = Robust.Shared.Timing.Timer; namespace Content.Server.Singularity.Components { - public class ContainmentFieldConnection : IDisposable + public sealed class ContainmentFieldConnection : IDisposable { public readonly ContainmentFieldGeneratorComponent Generator1; public readonly ContainmentFieldGeneratorComponent Generator2; diff --git a/Content.Server/Singularity/Components/ContainmentFieldGeneratorComponent.cs b/Content.Server/Singularity/Components/ContainmentFieldGeneratorComponent.cs index 3a02cc6d4d..7f7e040b9c 100644 --- a/Content.Server/Singularity/Components/ContainmentFieldGeneratorComponent.cs +++ b/Content.Server/Singularity/Components/ContainmentFieldGeneratorComponent.cs @@ -15,7 +15,7 @@ namespace Content.Server.Singularity.Components { [RegisterComponent] [ComponentReference(typeof(SharedContainmentFieldGeneratorComponent))] - public class ContainmentFieldGeneratorComponent : SharedContainmentFieldGeneratorComponent + public sealed class ContainmentFieldGeneratorComponent : SharedContainmentFieldGeneratorComponent { [Dependency] private readonly IEntityManager _entMan = default!; diff --git a/Content.Server/Singularity/Components/EmitterComponent.cs b/Content.Server/Singularity/Components/EmitterComponent.cs index 09d68fa92f..95c3c8bcf6 100644 --- a/Content.Server/Singularity/Components/EmitterComponent.cs +++ b/Content.Server/Singularity/Components/EmitterComponent.cs @@ -11,7 +11,7 @@ using Robust.Shared.ViewVariables; namespace Content.Server.Singularity.Components { [RegisterComponent] - public class EmitterComponent : Component + public sealed class EmitterComponent : Component { public CancellationTokenSource? TimerCancel; diff --git a/Content.Server/Singularity/Components/RadiationCollectorComponent.cs b/Content.Server/Singularity/Components/RadiationCollectorComponent.cs index 623ecf226c..c9e28a8c02 100644 --- a/Content.Server/Singularity/Components/RadiationCollectorComponent.cs +++ b/Content.Server/Singularity/Components/RadiationCollectorComponent.cs @@ -13,7 +13,7 @@ using Robust.Shared.ViewVariables; namespace Content.Server.Singularity.Components { [RegisterComponent] - public class RadiationCollectorComponent : Component, IInteractHand, IRadiationAct + public sealed class RadiationCollectorComponent : Component, IInteractHand, IRadiationAct { [Dependency] private readonly IGameTiming _gameTiming = default!; [Dependency] private readonly IEntityManager _entMan = default!; diff --git a/Content.Server/Singularity/Components/ServerSingularityComponent.cs b/Content.Server/Singularity/Components/ServerSingularityComponent.cs index 1fa0a855bf..81a7b0e496 100644 --- a/Content.Server/Singularity/Components/ServerSingularityComponent.cs +++ b/Content.Server/Singularity/Components/ServerSingularityComponent.cs @@ -12,7 +12,7 @@ namespace Content.Server.Singularity.Components { [RegisterComponent] [ComponentReference(typeof(SharedSingularityComponent))] - public class ServerSingularityComponent : SharedSingularityComponent + public sealed class ServerSingularityComponent : SharedSingularityComponent { [Dependency] private readonly IEntityManager _entMan = default!; diff --git a/Content.Server/Singularity/Components/SingularityGenerator.cs b/Content.Server/Singularity/Components/SingularityGenerator.cs index b7d7853ccc..c01f1a8dde 100644 --- a/Content.Server/Singularity/Components/SingularityGenerator.cs +++ b/Content.Server/Singularity/Components/SingularityGenerator.cs @@ -5,7 +5,7 @@ using Robust.Shared.ViewVariables; namespace Content.Server.Singularity.Components { [RegisterComponent] - public class SingularityGeneratorComponent : Component + public sealed class SingularityGeneratorComponent : Component { [Dependency] private readonly IEntityManager _entMan = default!; diff --git a/Content.Server/Singularity/Components/SinguloFoodComponent.cs b/Content.Server/Singularity/Components/SinguloFoodComponent.cs index 0723b6bb89..e10294e064 100644 --- a/Content.Server/Singularity/Components/SinguloFoodComponent.cs +++ b/Content.Server/Singularity/Components/SinguloFoodComponent.cs @@ -8,7 +8,7 @@ namespace Content.Server.Singularity.Components /// Overrides exactly how much energy this object gives to a singularity. /// [RegisterComponent] - public class SinguloFoodComponent : Component + public sealed class SinguloFoodComponent : Component { [ViewVariables(VVAccess.ReadWrite)] [DataField("energy")] diff --git a/Content.Server/Singularity/EntitySystems/EmitterSystem.cs b/Content.Server/Singularity/EntitySystems/EmitterSystem.cs index 62536da68f..7e663a6691 100644 --- a/Content.Server/Singularity/EntitySystems/EmitterSystem.cs +++ b/Content.Server/Singularity/EntitySystems/EmitterSystem.cs @@ -27,7 +27,7 @@ using Timer = Robust.Shared.Timing.Timer; namespace Content.Server.Singularity.EntitySystems { [UsedImplicitly] - public class EmitterSystem : EntitySystem + public sealed class EmitterSystem : EntitySystem { [Dependency] private readonly IRobustRandom _random = default!; [Dependency] private readonly AdminLogSystem _adminLog = default!; diff --git a/Content.Server/Singularity/StartSingularityEngineCommand.cs b/Content.Server/Singularity/StartSingularityEngineCommand.cs index b683cae410..041301c192 100644 --- a/Content.Server/Singularity/StartSingularityEngineCommand.cs +++ b/Content.Server/Singularity/StartSingularityEngineCommand.cs @@ -11,7 +11,7 @@ using Robust.Shared.IoC; namespace Content.Server.Singularity { [AdminCommand(AdminFlags.Admin)] - public class StartSingularityEngineCommand : IConsoleCommand + public sealed class StartSingularityEngineCommand : IConsoleCommand { public string Command => "startsingularityengine"; public string Description => "Automatically turns on the particle accelerator and containment field emitters."; diff --git a/Content.Server/Solar/Components/SolarControlConsoleComponent.cs b/Content.Server/Solar/Components/SolarControlConsoleComponent.cs index f294642108..f84dcc6e4f 100644 --- a/Content.Server/Solar/Components/SolarControlConsoleComponent.cs +++ b/Content.Server/Solar/Components/SolarControlConsoleComponent.cs @@ -11,7 +11,7 @@ using Robust.Shared.Maths; namespace Content.Server.Solar.Components { [RegisterComponent] - public class SolarControlConsoleComponent : Component + public sealed class SolarControlConsoleComponent : Component { } } diff --git a/Content.Server/Solar/Components/SolarPanelComponent.cs b/Content.Server/Solar/Components/SolarPanelComponent.cs index 75a77a3472..9823914afb 100644 --- a/Content.Server/Solar/Components/SolarPanelComponent.cs +++ b/Content.Server/Solar/Components/SolarPanelComponent.cs @@ -17,7 +17,7 @@ namespace Content.Server.Solar.Components /// [RegisterComponent] [Friend(typeof(PowerSolarSystem))] - public class SolarPanelComponent : Component + public sealed class SolarPanelComponent : Component { /// /// Maximum supply output by this panel (coverage = 1) diff --git a/Content.Server/Sound/Components/EmitSoundOnActivateComponent.cs b/Content.Server/Sound/Components/EmitSoundOnActivateComponent.cs index 439f65cc34..b86a10f4ff 100644 --- a/Content.Server/Sound/Components/EmitSoundOnActivateComponent.cs +++ b/Content.Server/Sound/Components/EmitSoundOnActivateComponent.cs @@ -6,7 +6,7 @@ namespace Content.Server.Sound.Components /// Simple sound emitter that emits sound on ActivateInWorld /// [RegisterComponent] - public class EmitSoundOnActivateComponent : BaseEmitSoundComponent + public sealed class EmitSoundOnActivateComponent : BaseEmitSoundComponent { } } diff --git a/Content.Server/Sound/Components/EmitSoundOnLandComponent.cs b/Content.Server/Sound/Components/EmitSoundOnLandComponent.cs index b97a837d16..dd156b6d1b 100644 --- a/Content.Server/Sound/Components/EmitSoundOnLandComponent.cs +++ b/Content.Server/Sound/Components/EmitSoundOnLandComponent.cs @@ -6,7 +6,7 @@ namespace Content.Server.Sound.Components /// Simple sound emitter that emits sound on LandEvent /// [RegisterComponent] - public class EmitSoundOnLandComponent : BaseEmitSoundComponent + public sealed class EmitSoundOnLandComponent : BaseEmitSoundComponent { } } diff --git a/Content.Server/Sound/EmitSoundSystem.cs b/Content.Server/Sound/EmitSoundSystem.cs index 980245a281..0bab9c2326 100644 --- a/Content.Server/Sound/EmitSoundSystem.cs +++ b/Content.Server/Sound/EmitSoundSystem.cs @@ -15,7 +15,7 @@ namespace Content.Server.Sound /// Will play a sound on various events if the affected entity has a component derived from BaseEmitSoundComponent /// [UsedImplicitly] - public class EmitSoundSystem : EntitySystem + public sealed class EmitSoundSystem : EntitySystem { /// public override void Initialize() diff --git a/Content.Server/Spawners/Components/ConditionalSpawnerComponent.cs b/Content.Server/Spawners/Components/ConditionalSpawnerComponent.cs index 9fce84395c..b15c76c9cb 100644 --- a/Content.Server/Spawners/Components/ConditionalSpawnerComponent.cs +++ b/Content.Server/Spawners/Components/ConditionalSpawnerComponent.cs @@ -9,6 +9,7 @@ using Robust.Shared.ViewVariables; namespace Content.Server.Spawners.Components { [RegisterComponent] + [Virtual] public class ConditionalSpawnerComponent : Component { [ViewVariables(VVAccess.ReadWrite)] diff --git a/Content.Server/Spawners/Components/RandomSpawnerComponent.cs b/Content.Server/Spawners/Components/RandomSpawnerComponent.cs index 11facff804..0f27ace2aa 100644 --- a/Content.Server/Spawners/Components/RandomSpawnerComponent.cs +++ b/Content.Server/Spawners/Components/RandomSpawnerComponent.cs @@ -9,7 +9,7 @@ using Robust.Shared.ViewVariables; namespace Content.Server.Spawners.Components { [RegisterComponent] - public class RandomSpawnerComponent : ConditionalSpawnerComponent + public sealed class RandomSpawnerComponent : ConditionalSpawnerComponent { [ViewVariables(VVAccess.ReadWrite)] [DataField("rarePrototypes", customTypeSerializer:typeof(PrototypeIdListSerializer))] diff --git a/Content.Server/Spawners/Components/TimedSpawnerComponent.cs b/Content.Server/Spawners/Components/TimedSpawnerComponent.cs index 3d78150b5e..ebb8690441 100644 --- a/Content.Server/Spawners/Components/TimedSpawnerComponent.cs +++ b/Content.Server/Spawners/Components/TimedSpawnerComponent.cs @@ -13,7 +13,7 @@ using Robust.Shared.ViewVariables; namespace Content.Server.Spawners.Components { [RegisterComponent] - public class TimedSpawnerComponent : Component, ISerializationHooks + public sealed class TimedSpawnerComponent : Component, ISerializationHooks { [Dependency] private readonly IRobustRandom _robustRandom = default!; diff --git a/Content.Server/Speech/AccentSystem.cs b/Content.Server/Speech/AccentSystem.cs index 65ea6c53eb..0a4c18448b 100644 --- a/Content.Server/Speech/AccentSystem.cs +++ b/Content.Server/Speech/AccentSystem.cs @@ -6,7 +6,7 @@ using Robust.Shared.IoC; namespace Content.Server.Speech { - public class AccentSystem : EntitySystem + public sealed class AccentSystem : EntitySystem { [Dependency] private readonly IChatManager _chatManager = default!; @@ -27,7 +27,7 @@ namespace Content.Server.Speech } } - public class AccentGetEvent : EntityEventArgs + public sealed class AccentGetEvent : EntityEventArgs { /// /// The entity to apply the accent to. diff --git a/Content.Server/Speech/Components/AddAccentClothingComponent.cs b/Content.Server/Speech/Components/AddAccentClothingComponent.cs index b027179a5e..f6d4c63a1b 100644 --- a/Content.Server/Speech/Components/AddAccentClothingComponent.cs +++ b/Content.Server/Speech/Components/AddAccentClothingComponent.cs @@ -8,7 +8,7 @@ namespace Content.Server.Speech.Components; /// Applies accent to user while they wear entity as a clothing. /// [RegisterComponent] -public class AddAccentClothingComponent : Component +public sealed class AddAccentClothingComponent : Component { /// /// Component name for accent that will be applied. diff --git a/Content.Server/Speech/Components/BackwardsAccentComponent.cs b/Content.Server/Speech/Components/BackwardsAccentComponent.cs index cf8ea0b1d1..1a93ad7701 100644 --- a/Content.Server/Speech/Components/BackwardsAccentComponent.cs +++ b/Content.Server/Speech/Components/BackwardsAccentComponent.cs @@ -3,7 +3,7 @@ namespace Content.Server.Speech.Components { [RegisterComponent] - public class BackwardsAccentComponent : Component + public sealed class BackwardsAccentComponent : Component { } } diff --git a/Content.Server/Speech/Components/OwOAccentComponent.cs b/Content.Server/Speech/Components/OwOAccentComponent.cs index bd50c5ba15..8f3a1f8cbf 100644 --- a/Content.Server/Speech/Components/OwOAccentComponent.cs +++ b/Content.Server/Speech/Components/OwOAccentComponent.cs @@ -3,7 +3,7 @@ namespace Content.Server.Speech.Components { [RegisterComponent] - public class OwOAccentComponent : Component + public sealed class OwOAccentComponent : Component { } } diff --git a/Content.Server/Speech/Components/ReplacementAccentComponent.cs b/Content.Server/Speech/Components/ReplacementAccentComponent.cs index 8000e82110..f98eee15aa 100644 --- a/Content.Server/Speech/Components/ReplacementAccentComponent.cs +++ b/Content.Server/Speech/Components/ReplacementAccentComponent.cs @@ -21,7 +21,7 @@ namespace Content.Server.Speech.Components /// Replaces any spoken sentences with a random word. /// [RegisterComponent] - public class ReplacementAccentComponent : Component + public sealed class ReplacementAccentComponent : Component { [DataField("accent", customTypeSerializer: typeof(PrototypeIdSerializer), required: true)] public string Accent = default!; diff --git a/Content.Server/Speech/Components/SpanishAccentComponent.cs b/Content.Server/Speech/Components/SpanishAccentComponent.cs index e4a5e0b7a2..9a10c6484b 100644 --- a/Content.Server/Speech/Components/SpanishAccentComponent.cs +++ b/Content.Server/Speech/Components/SpanishAccentComponent.cs @@ -3,7 +3,7 @@ namespace Content.Server.Speech.Components { [RegisterComponent] - public class SpanishAccentComponent : Component + public sealed class SpanishAccentComponent : Component { } } diff --git a/Content.Server/Speech/Components/StutteringAccentComponent.cs b/Content.Server/Speech/Components/StutteringAccentComponent.cs index 1e6cf6be18..fd64e4db70 100644 --- a/Content.Server/Speech/Components/StutteringAccentComponent.cs +++ b/Content.Server/Speech/Components/StutteringAccentComponent.cs @@ -3,7 +3,7 @@ using Robust.Shared.GameObjects; namespace Content.Server.Speech.Components { [RegisterComponent] - public class StutteringAccentComponent : Component + public sealed class StutteringAccentComponent : Component { } } diff --git a/Content.Server/Speech/EntitySystems/AddAccentClothingSystem.cs b/Content.Server/Speech/EntitySystems/AddAccentClothingSystem.cs index 263752f82b..8606ab004a 100644 --- a/Content.Server/Speech/EntitySystems/AddAccentClothingSystem.cs +++ b/Content.Server/Speech/EntitySystems/AddAccentClothingSystem.cs @@ -6,7 +6,7 @@ using Robust.Shared.IoC; namespace Content.Server.Speech.EntitySystems; -public class AddAccentClothingSystem : EntitySystem +public sealed class AddAccentClothingSystem : EntitySystem { [Dependency] private readonly IComponentFactory _componentFactory = default!; diff --git a/Content.Server/Speech/EntitySystems/BackwardsAccentSystem.cs b/Content.Server/Speech/EntitySystems/BackwardsAccentSystem.cs index 1de42822ef..db133acee1 100644 --- a/Content.Server/Speech/EntitySystems/BackwardsAccentSystem.cs +++ b/Content.Server/Speech/EntitySystems/BackwardsAccentSystem.cs @@ -4,7 +4,7 @@ using Robust.Shared.GameObjects; namespace Content.Server.Speech.EntitySystems { - public class BackwardsAccentSystem : EntitySystem + public sealed class BackwardsAccentSystem : EntitySystem { public override void Initialize() { diff --git a/Content.Server/Speech/EntitySystems/OwOAccentSystem.cs b/Content.Server/Speech/EntitySystems/OwOAccentSystem.cs index 4ebb8beff3..1fcdd045eb 100644 --- a/Content.Server/Speech/EntitySystems/OwOAccentSystem.cs +++ b/Content.Server/Speech/EntitySystems/OwOAccentSystem.cs @@ -6,7 +6,7 @@ using Robust.Shared.Random; namespace Content.Server.Speech.EntitySystems { - public class OwOAccentSystem : EntitySystem + public sealed class OwOAccentSystem : EntitySystem { [Dependency] private readonly IRobustRandom _random = default!; diff --git a/Content.Server/Speech/EntitySystems/ReplacementAccentSystem.cs b/Content.Server/Speech/EntitySystems/ReplacementAccentSystem.cs index 94443cb0a8..ca12bbc2fc 100644 --- a/Content.Server/Speech/EntitySystems/ReplacementAccentSystem.cs +++ b/Content.Server/Speech/EntitySystems/ReplacementAccentSystem.cs @@ -10,7 +10,7 @@ namespace Content.Server.Speech.EntitySystems /// /// Replaces any spoken sentences with a random word. /// - public class ReplacementAccentSystem : EntitySystem + public sealed class ReplacementAccentSystem : EntitySystem { [Dependency] private readonly IPrototypeManager _proto = default!; [Dependency] private readonly IRobustRandom _random = default!; diff --git a/Content.Server/Speech/EntitySystems/SpanishAccentSystem.cs b/Content.Server/Speech/EntitySystems/SpanishAccentSystem.cs index 902919bce6..52cbaa2813 100644 --- a/Content.Server/Speech/EntitySystems/SpanishAccentSystem.cs +++ b/Content.Server/Speech/EntitySystems/SpanishAccentSystem.cs @@ -3,7 +3,7 @@ using Robust.Shared.GameObjects; namespace Content.Server.Speech.EntitySystems { - public class SpanishAccentSystem : EntitySystem + public sealed class SpanishAccentSystem : EntitySystem { public override void Initialize() { diff --git a/Content.Server/Speech/EntitySystems/StutteringSystem.cs b/Content.Server/Speech/EntitySystems/StutteringSystem.cs index b860b8cf7f..63398a04c1 100644 --- a/Content.Server/Speech/EntitySystems/StutteringSystem.cs +++ b/Content.Server/Speech/EntitySystems/StutteringSystem.cs @@ -10,7 +10,7 @@ using Robust.Shared.Random; namespace Content.Server.Speech.EntitySystems { - public class StutteringSystem : SharedStutteringSystem + public sealed class StutteringSystem : SharedStutteringSystem { [Dependency] private readonly StatusEffectsSystem _statusEffectsSystem = default!; [Dependency] private readonly IRobustRandom _random = default!; diff --git a/Content.Server/Sprite/Components/RandomSpriteColorComponent.cs b/Content.Server/Sprite/Components/RandomSpriteColorComponent.cs index 0f02b7c95d..b342fd37e9 100644 --- a/Content.Server/Sprite/Components/RandomSpriteColorComponent.cs +++ b/Content.Server/Sprite/Components/RandomSpriteColorComponent.cs @@ -6,7 +6,7 @@ using Robust.Shared.Serialization.Manager.Attributes; namespace Content.Server.Sprite.Components { [RegisterComponent] - public class RandomSpriteColorComponent : Component + public sealed class RandomSpriteColorComponent : Component { // This should handle random states + colors for layers. // Saame with RandomSpriteState diff --git a/Content.Server/Sprite/Components/RandomSpriteStateComponent.cs b/Content.Server/Sprite/Components/RandomSpriteStateComponent.cs index 00224c7956..fc33c1b633 100644 --- a/Content.Server/Sprite/Components/RandomSpriteStateComponent.cs +++ b/Content.Server/Sprite/Components/RandomSpriteStateComponent.cs @@ -5,7 +5,7 @@ using Robust.Shared.Serialization.Manager.Attributes; namespace Content.Server.Sprite.Components { [RegisterComponent] - public class RandomSpriteStateComponent : Component + public sealed class RandomSpriteStateComponent : Component { [DataField("spriteStates")] public List? SpriteStates; diff --git a/Content.Server/Stack/StackComponent.cs b/Content.Server/Stack/StackComponent.cs index fb980032e7..a3e903feab 100644 --- a/Content.Server/Stack/StackComponent.cs +++ b/Content.Server/Stack/StackComponent.cs @@ -8,7 +8,7 @@ namespace Content.Server.Stack // TODO: Naming and presentation and such could use some improvement. [RegisterComponent, Friend(typeof(StackSystem))] [ComponentReference(typeof(SharedStackComponent))] - public class StackComponent : SharedStackComponent + public sealed class StackComponent : SharedStackComponent { [ViewVariables(VVAccess.ReadWrite)] public bool ThrowIndividually { get; set; } = false; diff --git a/Content.Server/Stack/StackSystem.cs b/Content.Server/Stack/StackSystem.cs index 8164517fb9..9495ebd50e 100644 --- a/Content.Server/Stack/StackSystem.cs +++ b/Content.Server/Stack/StackSystem.cs @@ -21,7 +21,7 @@ namespace Content.Server.Stack /// This is a good example for learning how to code in an ECS manner. /// [UsedImplicitly] - public class StackSystem : SharedStackSystem + public sealed class StackSystem : SharedStackSystem { [Dependency] private readonly IPrototypeManager _prototypeManager = default!; [Dependency] private readonly PopupSystem _popupSystem = default!; diff --git a/Content.Server/Standing/StandingStateSystem.cs b/Content.Server/Standing/StandingStateSystem.cs index 88dd64902e..e8e8a54fcb 100644 --- a/Content.Server/Standing/StandingStateSystem.cs +++ b/Content.Server/Standing/StandingStateSystem.cs @@ -7,7 +7,7 @@ using Robust.Shared.Random; namespace Content.Server.Standing; -public class StandingStateSystem : EntitySystem +public sealed class StandingStateSystem : EntitySystem { [Dependency] private readonly IRobustRandom _random = default!; diff --git a/Content.Server/Station/Components/BecomesStationComponent.cs b/Content.Server/Station/Components/BecomesStationComponent.cs index afd58da400..cbfbf5fd5d 100644 --- a/Content.Server/Station/Components/BecomesStationComponent.cs +++ b/Content.Server/Station/Components/BecomesStationComponent.cs @@ -11,7 +11,7 @@ namespace Content.Server.Station; /// [RegisterComponent] [Friend(typeof(GameTicker))] -public class BecomesStationComponent : Component +public sealed class BecomesStationComponent : Component { /// /// Mapping only. Should use StationIds in all other diff --git a/Content.Server/Station/Components/PartOfStationComponent.cs b/Content.Server/Station/Components/PartOfStationComponent.cs index af0599b37e..b86adf7591 100644 --- a/Content.Server/Station/Components/PartOfStationComponent.cs +++ b/Content.Server/Station/Components/PartOfStationComponent.cs @@ -12,7 +12,7 @@ namespace Content.Server.Station; /// [RegisterComponent] [Friend(typeof(GameTicker))] -public class PartOfStationComponent : Component +public sealed class PartOfStationComponent : Component { [DataField("id", required: true)] // does yamllinter even lint maps for required fields? [ViewVariables(VVAccess.ReadWrite)] diff --git a/Content.Server/Station/Components/StationComponent.cs b/Content.Server/Station/Components/StationComponent.cs index 6fadcfd1ac..2bf681b598 100644 --- a/Content.Server/Station/Components/StationComponent.cs +++ b/Content.Server/Station/Components/StationComponent.cs @@ -6,7 +6,7 @@ using Robust.Shared.ViewVariables; namespace Content.Server.Station; [RegisterComponent, Friend(typeof(StationSystem))] -public class StationComponent : Component +public sealed class StationComponent : Component { [ViewVariables] public StationId Station = StationId.Invalid; diff --git a/Content.Server/Station/StationSystem.cs b/Content.Server/Station/StationSystem.cs index 19fa9be7af..d6956d2fd5 100644 --- a/Content.Server/Station/StationSystem.cs +++ b/Content.Server/Station/StationSystem.cs @@ -16,7 +16,7 @@ namespace Content.Server.Station; /// /// System that manages the jobs available on a station, and maybe other things later. /// -public class StationSystem : EntitySystem +public sealed class StationSystem : EntitySystem { [Dependency] private GameTicker _gameTicker = default!; [Dependency] private IChatManager _chatManager = default!; @@ -44,7 +44,7 @@ public class StationSystem : EntitySystem _stationInfo = new(); } - public class StationInfoData + public sealed class StationInfoData { public string Name; diff --git a/Content.Server/StationEvents/Events/KudzuGrowth.cs b/Content.Server/StationEvents/Events/KudzuGrowth.cs index 7185b1278b..ef6b3194df 100644 --- a/Content.Server/StationEvents/Events/KudzuGrowth.cs +++ b/Content.Server/StationEvents/Events/KudzuGrowth.cs @@ -8,7 +8,7 @@ using Robust.Shared.Random; namespace Content.Server.StationEvents.Events; -public class KudzuGrowth : StationEvent +public sealed class KudzuGrowth : StationEvent { [Dependency] private IRobustRandom _robustRandom = default!; [Dependency] private IEntityManager _entityManager = default!; diff --git a/Content.Server/Storage/Components/CursedEntityStorageComponent.cs b/Content.Server/Storage/Components/CursedEntityStorageComponent.cs index d50b288868..1f67f4ff08 100644 --- a/Content.Server/Storage/Components/CursedEntityStorageComponent.cs +++ b/Content.Server/Storage/Components/CursedEntityStorageComponent.cs @@ -15,7 +15,7 @@ namespace Content.Server.Storage.Components [ComponentReference(typeof(IActivate))] [ComponentReference(typeof(IStorageComponent))] [RegisterComponent] - public class CursedEntityStorageComponent : EntityStorageComponent + public sealed class CursedEntityStorageComponent : EntityStorageComponent { [Dependency] private readonly IEntityManager _entMan = default!; [Dependency] private readonly IRobustRandom _robustRandom = default!; diff --git a/Content.Server/Storage/Components/EntityStorageComponent.cs b/Content.Server/Storage/Components/EntityStorageComponent.cs index 5defdc4064..7540779d43 100644 --- a/Content.Server/Storage/Components/EntityStorageComponent.cs +++ b/Content.Server/Storage/Components/EntityStorageComponent.cs @@ -32,6 +32,7 @@ using Robust.Shared.ViewVariables; namespace Content.Server.Storage.Components { [RegisterComponent] + [Virtual] [ComponentReference(typeof(IActivate))] [ComponentReference(typeof(IStorageComponent))] public class EntityStorageComponent : Component, IActivate, IStorageComponent, IInteractUsing, IDestroyAct, IExAct diff --git a/Content.Server/Storage/Components/SecretStashComponent.cs b/Content.Server/Storage/Components/SecretStashComponent.cs index 3211fb59a0..d2d8333d2e 100644 --- a/Content.Server/Storage/Components/SecretStashComponent.cs +++ b/Content.Server/Storage/Components/SecretStashComponent.cs @@ -17,7 +17,7 @@ namespace Content.Server.Storage.Components /// [RegisterComponent] [Friend(typeof(SecretStashSystem))] - public class SecretStashComponent : Component + public sealed class SecretStashComponent : Component { /// /// Max item size that can be fitted into secret stash. diff --git a/Content.Server/Storage/Components/ServerStorageComponent.cs b/Content.Server/Storage/Components/ServerStorageComponent.cs index b40c7eb428..424084c0c1 100644 --- a/Content.Server/Storage/Components/ServerStorageComponent.cs +++ b/Content.Server/Storage/Components/ServerStorageComponent.cs @@ -43,7 +43,7 @@ namespace Content.Server.Storage.Components [ComponentReference(typeof(IActivate))] [ComponentReference(typeof(IStorageComponent))] [ComponentReference(typeof(SharedStorageComponent))] - public class ServerStorageComponent : SharedStorageComponent, IInteractUsing, IActivate, IStorageComponent, IDestroyAct, IExAct, IAfterInteract + public sealed class ServerStorageComponent : SharedStorageComponent, IInteractUsing, IActivate, IStorageComponent, IDestroyAct, IExAct, IAfterInteract { [Dependency] private readonly IEntityManager _entityManager = default!; diff --git a/Content.Server/Storage/Components/SpawnItemsOnUseComponent.cs b/Content.Server/Storage/Components/SpawnItemsOnUseComponent.cs index 49cd42a20f..2fafd76d92 100644 --- a/Content.Server/Storage/Components/SpawnItemsOnUseComponent.cs +++ b/Content.Server/Storage/Components/SpawnItemsOnUseComponent.cs @@ -9,7 +9,7 @@ namespace Content.Server.Storage.Components /// Spawns items when used in hand. /// [RegisterComponent] - public class SpawnItemsOnUseComponent : Component + public sealed class SpawnItemsOnUseComponent : Component { /// /// The list of entities to spawn, with amounts and orGroups. diff --git a/Content.Server/Storage/EntitySystems/ItemCounterSystem.cs b/Content.Server/Storage/EntitySystems/ItemCounterSystem.cs index 5b697eeb22..f32c8f4629 100644 --- a/Content.Server/Storage/EntitySystems/ItemCounterSystem.cs +++ b/Content.Server/Storage/EntitySystems/ItemCounterSystem.cs @@ -9,7 +9,7 @@ using Robust.Shared.IoC; namespace Content.Server.Storage.EntitySystems { [UsedImplicitly] - public class ItemCounterSystem : SharedItemCounterSystem + public sealed class ItemCounterSystem : SharedItemCounterSystem { protected override int? GetCount(ContainerModifiedMessage msg, ItemCounterComponent itemCounter) { diff --git a/Content.Server/Storage/EntitySystems/ItemMapperSystem.cs b/Content.Server/Storage/EntitySystems/ItemMapperSystem.cs index 5ffebc1088..088870719c 100644 --- a/Content.Server/Storage/EntitySystems/ItemMapperSystem.cs +++ b/Content.Server/Storage/EntitySystems/ItemMapperSystem.cs @@ -10,7 +10,7 @@ using Robust.Shared.IoC; namespace Content.Server.Storage.EntitySystems { [UsedImplicitly] - public class ItemMapperSystem : SharedItemMapperSystem + public sealed class ItemMapperSystem : SharedItemMapperSystem { protected override bool TryGetLayers(ContainerModifiedMessage msg, ItemMapperComponent itemMapper, diff --git a/Content.Server/Storage/EntitySystems/SecretStashSystem.cs b/Content.Server/Storage/EntitySystems/SecretStashSystem.cs index 6c23e64cb4..0efc65e73c 100644 --- a/Content.Server/Storage/EntitySystems/SecretStashSystem.cs +++ b/Content.Server/Storage/EntitySystems/SecretStashSystem.cs @@ -11,7 +11,7 @@ using Robust.Shared.Player; namespace Content.Server.Storage.EntitySystems { - public class SecretStashSystem : EntitySystem + public sealed class SecretStashSystem : EntitySystem { [Dependency] private readonly PopupSystem _popupSystem = default!; diff --git a/Content.Server/Storage/EntitySystems/SpawnItemsOnUseSystem.cs b/Content.Server/Storage/EntitySystems/SpawnItemsOnUseSystem.cs index 4671a99813..bac89a8595 100644 --- a/Content.Server/Storage/EntitySystems/SpawnItemsOnUseSystem.cs +++ b/Content.Server/Storage/EntitySystems/SpawnItemsOnUseSystem.cs @@ -10,7 +10,7 @@ using Robust.Shared.Random; namespace Content.Server.Storage.EntitySystems { - public class SpawnItemsOnUseSystem : EntitySystem + public sealed class SpawnItemsOnUseSystem : EntitySystem { [Dependency] private readonly IRobustRandom _random = default!; diff --git a/Content.Server/Stunnable/Components/StunbatonComponent.cs b/Content.Server/Stunnable/Components/StunbatonComponent.cs index fee75a8238..8dd4a4445f 100644 --- a/Content.Server/Stunnable/Components/StunbatonComponent.cs +++ b/Content.Server/Stunnable/Components/StunbatonComponent.cs @@ -6,7 +6,7 @@ using Robust.Shared.ViewVariables; namespace Content.Server.Stunnable.Components { [RegisterComponent] - public class StunbatonComponent : Component + public sealed class StunbatonComponent : Component { public bool Activated = false; diff --git a/Content.Server/Stunnable/StunbatonSystem.cs b/Content.Server/Stunnable/StunbatonSystem.cs index 1d197ff78d..b7752211ae 100644 --- a/Content.Server/Stunnable/StunbatonSystem.cs +++ b/Content.Server/Stunnable/StunbatonSystem.cs @@ -25,7 +25,7 @@ using Robust.Shared.Random; namespace Content.Server.Stunnable { - public class StunbatonSystem : EntitySystem + public sealed class StunbatonSystem : EntitySystem { [Dependency] private readonly StunSystem _stunSystem = default!; [Dependency] private readonly StutteringSystem _stutteringSystem = default!; diff --git a/Content.Server/Suspicion/Roles/SuspicionInnocentRole.cs b/Content.Server/Suspicion/Roles/SuspicionInnocentRole.cs index da2cea6794..11cf3e90e4 100644 --- a/Content.Server/Suspicion/Roles/SuspicionInnocentRole.cs +++ b/Content.Server/Suspicion/Roles/SuspicionInnocentRole.cs @@ -4,7 +4,7 @@ using Robust.Shared.IoC; namespace Content.Server.Suspicion.Roles { - public class SuspicionInnocentRole : SuspicionRole + public sealed class SuspicionInnocentRole : SuspicionRole { public AntagPrototype Prototype { get; } diff --git a/Content.Server/Suspicion/SuspicionRoleComponent.cs b/Content.Server/Suspicion/SuspicionRoleComponent.cs index 0f9e022603..a7e28c9245 100644 --- a/Content.Server/Suspicion/SuspicionRoleComponent.cs +++ b/Content.Server/Suspicion/SuspicionRoleComponent.cs @@ -18,7 +18,7 @@ namespace Content.Server.Suspicion { [RegisterComponent] #pragma warning disable 618 - public class SuspicionRoleComponent : SharedSuspicionRoleComponent, IExamine + public sealed class SuspicionRoleComponent : SharedSuspicionRoleComponent, IExamine #pragma warning restore 618 { [Dependency] private readonly IEntityManager _entMan = default!; diff --git a/Content.Server/Tabletop/Components/TabletopDraggableComponent.cs b/Content.Server/Tabletop/Components/TabletopDraggableComponent.cs index b28205d555..9504b46662 100644 --- a/Content.Server/Tabletop/Components/TabletopDraggableComponent.cs +++ b/Content.Server/Tabletop/Components/TabletopDraggableComponent.cs @@ -9,7 +9,7 @@ namespace Content.Server.Tabletop.Components { [RegisterComponent] [ComponentReference(typeof(SharedTabletopDraggableComponent))] - public class TabletopDraggableComponent : SharedTabletopDraggableComponent + public sealed class TabletopDraggableComponent : SharedTabletopDraggableComponent { private NetUserId? _draggingPlayer; diff --git a/Content.Server/Tabletop/Components/TabletopGameComponent.cs b/Content.Server/Tabletop/Components/TabletopGameComponent.cs index ddf70d7f64..6417778721 100644 --- a/Content.Server/Tabletop/Components/TabletopGameComponent.cs +++ b/Content.Server/Tabletop/Components/TabletopGameComponent.cs @@ -10,7 +10,7 @@ namespace Content.Server.Tabletop.Components /// A component that makes an object playable as a tabletop game. /// [RegisterComponent, Friend(typeof(TabletopSystem))] - public class TabletopGameComponent : Component + public sealed class TabletopGameComponent : Component { [DataField("boardName")] public string BoardName { get; } = "tabletop-default-board-name"; diff --git a/Content.Server/Tabletop/Components/TabletopGamerComponent.cs b/Content.Server/Tabletop/Components/TabletopGamerComponent.cs index f0207cac96..bc575fbb4b 100644 --- a/Content.Server/Tabletop/Components/TabletopGamerComponent.cs +++ b/Content.Server/Tabletop/Components/TabletopGamerComponent.cs @@ -8,7 +8,7 @@ namespace Content.Server.Tabletop.Components /// Component for marking an entity as currently playing a tabletop. /// [RegisterComponent, Friend(typeof(TabletopSystem))] - public class TabletopGamerComponent : Component + public sealed class TabletopGamerComponent : Component { [DataField("tabletop")] public EntityUid Tabletop { get; set; } = EntityUid.Invalid; diff --git a/Content.Server/Tabletop/TabletopBackgammonSetup.cs b/Content.Server/Tabletop/TabletopBackgammonSetup.cs index 612cb7887d..ce945c2686 100644 --- a/Content.Server/Tabletop/TabletopBackgammonSetup.cs +++ b/Content.Server/Tabletop/TabletopBackgammonSetup.cs @@ -5,7 +5,7 @@ using Robust.Shared.Serialization.Manager.Attributes; namespace Content.Server.Tabletop { [UsedImplicitly] - public class TabletopBackgammonSetup : TabletopSetup + public sealed class TabletopBackgammonSetup : TabletopSetup { [DataField("boardPrototype")] public string BackgammonBoardPrototype { get; } = "BackgammonBoardTabletop"; diff --git a/Content.Server/Tabletop/TabletopCheckerSetup.cs b/Content.Server/Tabletop/TabletopCheckerSetup.cs index 6a112073ee..c390aa0dc6 100644 --- a/Content.Server/Tabletop/TabletopCheckerSetup.cs +++ b/Content.Server/Tabletop/TabletopCheckerSetup.cs @@ -8,7 +8,7 @@ using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototy namespace Content.Server.Tabletop { [UsedImplicitly] - public class TabletopCheckerSetup : TabletopSetup + public sealed class TabletopCheckerSetup : TabletopSetup { [DataField("boardPrototype", customTypeSerializer:typeof(PrototypeIdSerializer))] public string CheckerBoardPrototype { get; } = "CheckerBoardTabletop"; diff --git a/Content.Server/Tabletop/TabletopChessSetup.cs b/Content.Server/Tabletop/TabletopChessSetup.cs index e71fc43f7a..a87aca6967 100644 --- a/Content.Server/Tabletop/TabletopChessSetup.cs +++ b/Content.Server/Tabletop/TabletopChessSetup.cs @@ -8,7 +8,7 @@ using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototy namespace Content.Server.Tabletop { [UsedImplicitly] - public class TabletopChessSetup : TabletopSetup + public sealed class TabletopChessSetup : TabletopSetup { [DataField("boardPrototype", customTypeSerializer:typeof(PrototypeIdSerializer))] public string ChessBoardPrototype { get; } = "ChessBoardTabletop"; diff --git a/Content.Server/Tabletop/TabletopParchisSetup.cs b/Content.Server/Tabletop/TabletopParchisSetup.cs index c4dc63ab7e..fbe2f1ae7d 100644 --- a/Content.Server/Tabletop/TabletopParchisSetup.cs +++ b/Content.Server/Tabletop/TabletopParchisSetup.cs @@ -7,7 +7,7 @@ using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototy namespace Content.Server.Tabletop { [UsedImplicitly] - public class TabletopParchisSetup : TabletopSetup + public sealed class TabletopParchisSetup : TabletopSetup { [DataField("boardPrototype", customTypeSerializer:typeof(PrototypeIdSerializer))] public string ParchisBoardPrototype { get; } = "ParchisBoardTabletop"; diff --git a/Content.Server/Tabletop/TabletopSession.cs b/Content.Server/Tabletop/TabletopSession.cs index 8aa1bbfe8a..d711cbcde8 100644 --- a/Content.Server/Tabletop/TabletopSession.cs +++ b/Content.Server/Tabletop/TabletopSession.cs @@ -9,7 +9,7 @@ namespace Content.Server.Tabletop /// /// A class for storing data about a running tabletop game. /// - public class TabletopSession + public sealed class TabletopSession { /// /// The center position of this session. diff --git a/Content.Server/Tabletop/TabletopSessionPlayerData.cs b/Content.Server/Tabletop/TabletopSessionPlayerData.cs index 556b53d16c..b7a81f7824 100644 --- a/Content.Server/Tabletop/TabletopSessionPlayerData.cs +++ b/Content.Server/Tabletop/TabletopSessionPlayerData.cs @@ -5,7 +5,7 @@ namespace Content.Server.Tabletop /// /// A class that stores per-player data for tabletops. /// - public class TabletopSessionPlayerData + public sealed class TabletopSessionPlayerData { public EntityUid Camera { get; set; } } diff --git a/Content.Server/Tabletop/TabletopSystem.Draggable.cs b/Content.Server/Tabletop/TabletopSystem.Draggable.cs index e11cb43311..b96c883639 100644 --- a/Content.Server/Tabletop/TabletopSystem.Draggable.cs +++ b/Content.Server/Tabletop/TabletopSystem.Draggable.cs @@ -10,7 +10,7 @@ using DrawDepth = Content.Shared.DrawDepth.DrawDepth; namespace Content.Server.Tabletop { - public partial class TabletopSystem + public sealed partial class TabletopSystem { public void InitializeDraggable() { diff --git a/Content.Server/Tabletop/TabletopSystem.Map.cs b/Content.Server/Tabletop/TabletopSystem.Map.cs index 0aaeea7dee..90ba63e9c6 100644 --- a/Content.Server/Tabletop/TabletopSystem.Map.cs +++ b/Content.Server/Tabletop/TabletopSystem.Map.cs @@ -6,7 +6,7 @@ using Robust.Shared.Maths; namespace Content.Server.Tabletop { - public partial class TabletopSystem + public sealed partial class TabletopSystem { /// /// Separation between tabletops in the tabletop map. diff --git a/Content.Server/Tabletop/TabletopSystem.Session.cs b/Content.Server/Tabletop/TabletopSystem.Session.cs index 7ca26cb0ec..577817a7e1 100644 --- a/Content.Server/Tabletop/TabletopSystem.Session.cs +++ b/Content.Server/Tabletop/TabletopSystem.Session.cs @@ -11,7 +11,7 @@ using Robust.Shared.Utility; namespace Content.Server.Tabletop { - public partial class TabletopSystem + public sealed partial class TabletopSystem { /// /// Ensures that a exists on a . diff --git a/Content.Server/Tabletop/TabletopSystem.cs b/Content.Server/Tabletop/TabletopSystem.cs index bd0618777b..b80cefedcd 100644 --- a/Content.Server/Tabletop/TabletopSystem.cs +++ b/Content.Server/Tabletop/TabletopSystem.cs @@ -16,7 +16,7 @@ using Robust.Shared.Map; namespace Content.Server.Tabletop { [UsedImplicitly] - public partial class TabletopSystem : SharedTabletopSystem + public sealed partial class TabletopSystem : SharedTabletopSystem { [Dependency] private readonly IMapManager _mapManager = default!; [Dependency] private readonly ViewSubscriberSystem _viewSubscriberSystem = default!; diff --git a/Content.Server/Temperature/Components/HeatResistanceComponent.cs b/Content.Server/Temperature/Components/HeatResistanceComponent.cs index c01faaf6b8..9a068254e7 100644 --- a/Content.Server/Temperature/Components/HeatResistanceComponent.cs +++ b/Content.Server/Temperature/Components/HeatResistanceComponent.cs @@ -6,7 +6,7 @@ using Robust.Shared.IoC; namespace Content.Server.Temperature.Components { [RegisterComponent] - public class HeatResistanceComponent : Component + public sealed class HeatResistanceComponent : Component { public int GetHeatResistance() { diff --git a/Content.Server/Temperature/Components/TemperatureComponent.cs b/Content.Server/Temperature/Components/TemperatureComponent.cs index 231aec3d44..fcf8bbd675 100644 --- a/Content.Server/Temperature/Components/TemperatureComponent.cs +++ b/Content.Server/Temperature/Components/TemperatureComponent.cs @@ -15,7 +15,7 @@ namespace Content.Server.Temperature.Components /// and taking fire damage from high temperature. /// [RegisterComponent] - public class TemperatureComponent : Component + public sealed class TemperatureComponent : Component { [ViewVariables(VVAccess.ReadWrite)] public float CurrentTemperature { get; set; } = Atmospherics.T20C; diff --git a/Content.Server/Temperature/Systems/TemperatureSystem.cs b/Content.Server/Temperature/Systems/TemperatureSystem.cs index ae288b8f36..781f5992ee 100644 --- a/Content.Server/Temperature/Systems/TemperatureSystem.cs +++ b/Content.Server/Temperature/Systems/TemperatureSystem.cs @@ -14,7 +14,7 @@ using Robust.Shared.IoC; namespace Content.Server.Temperature.Systems { - public class TemperatureSystem : EntitySystem + public sealed class TemperatureSystem : EntitySystem { [Dependency] private readonly DamageableSystem _damageableSystem = default!; [Dependency] private readonly AtmosphereSystem _atmosphereSystem = default!; @@ -201,7 +201,7 @@ namespace Content.Server.Temperature.Systems } } - public class OnTemperatureChangeEvent : EntityEventArgs + public sealed class OnTemperatureChangeEvent : EntityEventArgs { public float CurrentTemperature { get; } public float LastTemperature { get; } @@ -215,7 +215,7 @@ namespace Content.Server.Temperature.Systems } } - public class ModifyChangedTemperatureEvent : EntityEventArgs, IInventoryRelayEvent + public sealed class ModifyChangedTemperatureEvent : EntityEventArgs, IInventoryRelayEvent { public SlotFlags TargetSlots { get; } = ~SlotFlags.POCKET; diff --git a/Content.Server/Throwing/EmitSoundOnThrowComponent.cs b/Content.Server/Throwing/EmitSoundOnThrowComponent.cs index 1f29fb7376..0fdc9817ac 100644 --- a/Content.Server/Throwing/EmitSoundOnThrowComponent.cs +++ b/Content.Server/Throwing/EmitSoundOnThrowComponent.cs @@ -7,7 +7,7 @@ namespace Content.Server.Throwing /// Simple sound emitter that emits sound on ThrowEvent /// [RegisterComponent] - public class EmitSoundOnThrowComponent : BaseEmitSoundComponent + public sealed class EmitSoundOnThrowComponent : BaseEmitSoundComponent { } } diff --git a/Content.Server/Tiles/FloorTileItemComponent.cs b/Content.Server/Tiles/FloorTileItemComponent.cs index ac86f75f97..4370593110 100644 --- a/Content.Server/Tiles/FloorTileItemComponent.cs +++ b/Content.Server/Tiles/FloorTileItemComponent.cs @@ -19,7 +19,7 @@ namespace Content.Server.Tiles { [RegisterComponent] [ComponentProtoName("FloorTile")] - public class FloorTileItemComponent : Component, IAfterInteract + public sealed class FloorTileItemComponent : Component, IAfterInteract { [Dependency] private readonly IEntityManager _entMan = default!; [Dependency] private readonly ITileDefinitionManager _tileDefinitionManager = default!; diff --git a/Content.Server/Toilet/ToiletSystem.cs b/Content.Server/Toilet/ToiletSystem.cs index 9dc6121e6a..e97cad00e4 100644 --- a/Content.Server/Toilet/ToiletSystem.cs +++ b/Content.Server/Toilet/ToiletSystem.cs @@ -20,7 +20,7 @@ using Robust.Shared.Random; namespace Content.Server.Toilet { - public class ToiletSystem : EntitySystem + public sealed class ToiletSystem : EntitySystem { [Dependency] private readonly IRobustRandom _random = default!; [Dependency] private readonly SecretStashSystem _secretStash = default!; @@ -197,7 +197,7 @@ namespace Content.Server.Toilet } } - public class ToiletPryFinished : EntityEventArgs + public sealed class ToiletPryFinished : EntityEventArgs { public EntityUid Uid; @@ -207,7 +207,7 @@ namespace Content.Server.Toilet } } - public class ToiletPryInterrupted : EntityEventArgs + public sealed class ToiletPryInterrupted : EntityEventArgs { public EntityUid Uid; diff --git a/Content.Server/Tools/Components/MultipleToolComponent.cs b/Content.Server/Tools/Components/MultipleToolComponent.cs index 9e2dfb4e42..9d3164183c 100644 --- a/Content.Server/Tools/Components/MultipleToolComponent.cs +++ b/Content.Server/Tools/Components/MultipleToolComponent.cs @@ -15,10 +15,10 @@ namespace Content.Server.Tools.Components /// Not to be confused with Multitool (power) /// [RegisterComponent] - public class MultipleToolComponent : SharedMultipleToolComponent + public sealed class MultipleToolComponent : SharedMultipleToolComponent { [DataDefinition] - public class ToolEntry + public sealed class ToolEntry { [DataField("behavior", required:true)] public PrototypeFlags Behavior { get; } = new(); @@ -32,7 +32,7 @@ namespace Content.Server.Tools.Components [DataField("sprite")] public SpriteSpecifier? Sprite { get; } = null; } - + [DataField("entries", required:true)] public ToolEntry[] Entries { get; } = Array.Empty(); diff --git a/Content.Server/Tools/Components/ToolComponent.cs b/Content.Server/Tools/Components/ToolComponent.cs index 7d1717a3c2..e597284dd2 100644 --- a/Content.Server/Tools/Components/ToolComponent.cs +++ b/Content.Server/Tools/Components/ToolComponent.cs @@ -9,7 +9,7 @@ using Robust.Shared.ViewVariables; namespace Content.Server.Tools.Components { [RegisterComponent, Friend(typeof(ToolSystem))] - public class ToolComponent : Component + public sealed class ToolComponent : Component { [DataField("qualities")] public PrototypeFlags Qualities { get; set; } = new(); diff --git a/Content.Server/Tools/Components/WelderComponent.cs b/Content.Server/Tools/Components/WelderComponent.cs index 1eaf4bf6c3..c519f4384a 100644 --- a/Content.Server/Tools/Components/WelderComponent.cs +++ b/Content.Server/Tools/Components/WelderComponent.cs @@ -10,7 +10,7 @@ using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototy namespace Content.Server.Tools.Components { [RegisterComponent] - public class WelderComponent : SharedWelderComponent + public sealed class WelderComponent : SharedWelderComponent { /// /// Solution on the entity that contains the fuel. @@ -56,7 +56,7 @@ namespace Content.Server.Tools.Components /// /// /// If this is a standard welder, this damage bonus should probably subtract the entity's standard melee weapon damage - /// and replace it all with heat damage. + /// and replace it all with heat damage. /// [DataField("litMeleeDamageBonus")] public DamageSpecifier LitMeleeDamageBonus = new(); diff --git a/Content.Server/Tools/ToolSystem.MultipleTool.cs b/Content.Server/Tools/ToolSystem.MultipleTool.cs index 1e8ad1a2c9..a3b5fef9ab 100644 --- a/Content.Server/Tools/ToolSystem.MultipleTool.cs +++ b/Content.Server/Tools/ToolSystem.MultipleTool.cs @@ -15,7 +15,7 @@ using Robust.Shared.Prototypes; namespace Content.Server.Tools { - public partial class ToolSystem + public sealed partial class ToolSystem { private void InitializeMultipleTools() { diff --git a/Content.Server/Tools/ToolSystem.Welder.cs b/Content.Server/Tools/ToolSystem.Welder.cs index 4990ab0e84..5205e135ed 100644 --- a/Content.Server/Tools/ToolSystem.Welder.cs +++ b/Content.Server/Tools/ToolSystem.Welder.cs @@ -22,7 +22,7 @@ using Robust.Shared.Player; namespace Content.Server.Tools { - public partial class ToolSystem + public sealed partial class ToolSystem { private readonly HashSet _activeWelders = new(); diff --git a/Content.Server/Tools/ToolSystem.cs b/Content.Server/Tools/ToolSystem.cs index fc11270f29..6f1b3432a6 100644 --- a/Content.Server/Tools/ToolSystem.cs +++ b/Content.Server/Tools/ToolSystem.cs @@ -18,7 +18,7 @@ using Robust.Shared.Prototypes; namespace Content.Server.Tools { - public partial class ToolSystem : EntitySystem + public sealed partial class ToolSystem : EntitySystem { [Dependency] private readonly ITileDefinitionManager _tileDefinitionManager = default!; [Dependency] private readonly IMapManager _mapManager = default!; @@ -259,7 +259,7 @@ namespace Content.Server.Tools UpdateWelders(frameTime); } - private class ToolDoAfterComplete : EntityEventArgs + private sealed class ToolDoAfterComplete : EntityEventArgs { public readonly object CompletedEvent; public readonly object? CancelledEvent; @@ -279,7 +279,7 @@ namespace Content.Server.Tools } } - private class ToolDoAfterCancelled : EntityEventArgs + private sealed class ToolDoAfterCancelled : EntityEventArgs { public readonly object Event; public readonly EntityUid? EventTarget; @@ -296,7 +296,7 @@ namespace Content.Server.Tools /// Attempt event called *before* any do afters to see if the tool usage should succeed or not. /// You can change the fuel consumption by changing the Fuel property. /// - public class ToolUseAttemptEvent : CancellableEntityEventArgs + public sealed class ToolUseAttemptEvent : CancellableEntityEventArgs { public float Fuel { get; set; } public EntityUid User { get; } @@ -312,7 +312,7 @@ namespace Content.Server.Tools /// Attempt event called *after* any do afters to see if the tool usage should succeed or not. /// You can use this event to consume any fuel needed. /// - public class ToolUseFinishAttemptEvent : CancellableEntityEventArgs + public sealed class ToolUseFinishAttemptEvent : CancellableEntityEventArgs { public float Fuel { get; } public EntityUid User { get; } diff --git a/Content.Server/Traitor/TraitorRole.cs b/Content.Server/Traitor/TraitorRole.cs index 7c63426e13..0aa1d68d48 100644 --- a/Content.Server/Traitor/TraitorRole.cs +++ b/Content.Server/Traitor/TraitorRole.cs @@ -6,7 +6,7 @@ using Robust.Shared.Localization; namespace Content.Server.Traitor { - public class TraitorRole : Role + public sealed class TraitorRole : Role { public AntagPrototype Prototype { get; } diff --git a/Content.Server/Traitor/Uplink/Account/UplinkAccountEvents.cs b/Content.Server/Traitor/Uplink/Account/UplinkAccountEvents.cs index f70fe809cd..a6a4909791 100644 --- a/Content.Server/Traitor/Uplink/Account/UplinkAccountEvents.cs +++ b/Content.Server/Traitor/Uplink/Account/UplinkAccountEvents.cs @@ -6,7 +6,7 @@ namespace Content.Server.Traitor.Uplink.Account /// /// Invokes when one of the UplinkAccounts changed its TC balance /// - public class UplinkAccountBalanceChanged : EntityEventArgs + public sealed class UplinkAccountBalanceChanged : EntityEventArgs { public readonly UplinkAccount Account; diff --git a/Content.Server/Traitor/Uplink/Account/UplinkAccountsSystem.cs b/Content.Server/Traitor/Uplink/Account/UplinkAccountsSystem.cs index a3c4c996bb..817fedc288 100644 --- a/Content.Server/Traitor/Uplink/Account/UplinkAccountsSystem.cs +++ b/Content.Server/Traitor/Uplink/Account/UplinkAccountsSystem.cs @@ -13,7 +13,7 @@ namespace Content.Server.Traitor.Uplink.Account /// /// Manage all registred uplink accounts and their balance /// - public class UplinkAccountsSystem : EntitySystem + public sealed class UplinkAccountsSystem : EntitySystem { public const string TelecrystalProtoId = "Telecrystal"; diff --git a/Content.Server/Traitor/Uplink/Commands/AddUplinkCommand.cs b/Content.Server/Traitor/Uplink/Commands/AddUplinkCommand.cs index 7f5346c7cc..0a649f6a64 100644 --- a/Content.Server/Traitor/Uplink/Commands/AddUplinkCommand.cs +++ b/Content.Server/Traitor/Uplink/Commands/AddUplinkCommand.cs @@ -13,7 +13,7 @@ using Robust.Shared.Localization; namespace Content.Server.Traitor.Uplink.Commands { [AdminCommand(AdminFlags.Fun)] - public class AddUplinkCommand : IConsoleCommand + public sealed class AddUplinkCommand : IConsoleCommand { public string Command => "adduplink"; diff --git a/Content.Server/Traitor/Uplink/Telecrystal/TelecrystalComponent.cs b/Content.Server/Traitor/Uplink/Telecrystal/TelecrystalComponent.cs index de2c8324c6..3fc21955ec 100644 --- a/Content.Server/Traitor/Uplink/Telecrystal/TelecrystalComponent.cs +++ b/Content.Server/Traitor/Uplink/Telecrystal/TelecrystalComponent.cs @@ -3,7 +3,7 @@ using Robust.Shared.GameObjects; namespace Content.Server.Traitor.Uplink.Telecrystal { [RegisterComponent] - public class TelecrystalComponent : Component + public sealed class TelecrystalComponent : Component { } } diff --git a/Content.Server/Traitor/Uplink/Telecrystal/TelecrystalSystem.cs b/Content.Server/Traitor/Uplink/Telecrystal/TelecrystalSystem.cs index 26e06b6915..caf3fdd8dd 100644 --- a/Content.Server/Traitor/Uplink/Telecrystal/TelecrystalSystem.cs +++ b/Content.Server/Traitor/Uplink/Telecrystal/TelecrystalSystem.cs @@ -10,7 +10,7 @@ using System; namespace Content.Server.Traitor.Uplink.Telecrystal { - public class TelecrystalSystem : EntitySystem + public sealed class TelecrystalSystem : EntitySystem { [Dependency] private readonly UplinkAccountsSystem _accounts = default!; diff --git a/Content.Server/Traitor/Uplink/UplinkComponent.cs b/Content.Server/Traitor/Uplink/UplinkComponent.cs index 7abffbd649..fc87ed3983 100644 --- a/Content.Server/Traitor/Uplink/UplinkComponent.cs +++ b/Content.Server/Traitor/Uplink/UplinkComponent.cs @@ -8,7 +8,7 @@ using System; namespace Content.Server.Traitor.Uplink.Components { [RegisterComponent] - public class UplinkComponent : Component + public sealed class UplinkComponent : Component { [ViewVariables] [DataField("buySuccessSound")] @@ -28,7 +28,7 @@ namespace Content.Server.Traitor.Uplink.Components [Serializable] [DataDefinition] - public class PresetUplinkInfo + public sealed class PresetUplinkInfo { [DataField("balance")] public int StartingBalance; diff --git a/Content.Server/Traitor/Uplink/UplinkEvents.cs b/Content.Server/Traitor/Uplink/UplinkEvents.cs index 12c9d52f07..8c7990433b 100644 --- a/Content.Server/Traitor/Uplink/UplinkEvents.cs +++ b/Content.Server/Traitor/Uplink/UplinkEvents.cs @@ -5,7 +5,7 @@ using Robust.Shared.GameObjects; namespace Content.Server.Traitor.Uplink { - public class UplinkInitEvent : EntityEventArgs + public sealed class UplinkInitEvent : EntityEventArgs { public UplinkComponent Uplink; @@ -15,7 +15,7 @@ namespace Content.Server.Traitor.Uplink } } - public class UplinkRemovedEvent : EntityEventArgs + public sealed class UplinkRemovedEvent : EntityEventArgs { } } diff --git a/Content.Server/Traitor/Uplink/UplinkListingSytem.cs b/Content.Server/Traitor/Uplink/UplinkListingSytem.cs index dea8f57458..abc3f34b1c 100644 --- a/Content.Server/Traitor/Uplink/UplinkListingSytem.cs +++ b/Content.Server/Traitor/Uplink/UplinkListingSytem.cs @@ -11,7 +11,7 @@ namespace Content.Server.Traitor.Uplink /// /// Contains and controls all items in traitors uplink shop /// - public class UplinkListingSytem : EntitySystem + public sealed class UplinkListingSytem : EntitySystem { [Dependency] private readonly IPrototypeManager _prototypeManager = default!; diff --git a/Content.Server/Traitor/Uplink/UplinkSystem.cs b/Content.Server/Traitor/Uplink/UplinkSystem.cs index 0534d06fc3..538441500c 100644 --- a/Content.Server/Traitor/Uplink/UplinkSystem.cs +++ b/Content.Server/Traitor/Uplink/UplinkSystem.cs @@ -20,7 +20,7 @@ using Robust.Shared.Player; namespace Content.Server.Traitor.Uplink { - public class UplinkSystem : EntitySystem + public sealed class UplinkSystem : EntitySystem { [Dependency] private readonly UplinkAccountsSystem _accounts = default!; diff --git a/Content.Server/TraitorDeathMatch/Components/TraitorDeathMatchRedemptionComponent.cs b/Content.Server/TraitorDeathMatch/Components/TraitorDeathMatchRedemptionComponent.cs index eb8ec05090..27e264eddc 100644 --- a/Content.Server/TraitorDeathMatch/Components/TraitorDeathMatchRedemptionComponent.cs +++ b/Content.Server/TraitorDeathMatch/Components/TraitorDeathMatchRedemptionComponent.cs @@ -13,7 +13,7 @@ using InventoryComponent = Content.Shared.Inventory.InventoryComponent; namespace Content.Server.TraitorDeathMatch.Components { [RegisterComponent] - public class TraitorDeathMatchRedemptionComponent : Component, IInteractUsing + public sealed class TraitorDeathMatchRedemptionComponent : Component, IInteractUsing { [Dependency] private readonly IEntityManager _entMan = default!; diff --git a/Content.Server/TraitorDeathMatch/Components/TraitorDeathMatchReliableOwnerTagComponent.cs b/Content.Server/TraitorDeathMatch/Components/TraitorDeathMatchReliableOwnerTagComponent.cs index aa45b55c31..6fbcd890e4 100644 --- a/Content.Server/TraitorDeathMatch/Components/TraitorDeathMatchReliableOwnerTagComponent.cs +++ b/Content.Server/TraitorDeathMatch/Components/TraitorDeathMatchReliableOwnerTagComponent.cs @@ -5,7 +5,7 @@ using Robust.Shared.ViewVariables; namespace Content.Server.TraitorDeathMatch.Components { [RegisterComponent] - public class TraitorDeathMatchReliableOwnerTagComponent : Component + public sealed class TraitorDeathMatchReliableOwnerTagComponent : Component { [ViewVariables] public NetUserId? UserId { get; set; } diff --git a/Content.Server/UserInterface/ActivatableUIComponent.cs b/Content.Server/UserInterface/ActivatableUIComponent.cs index cd650563a5..4bbfc0eae4 100644 --- a/Content.Server/UserInterface/ActivatableUIComponent.cs +++ b/Content.Server/UserInterface/ActivatableUIComponent.cs @@ -17,7 +17,7 @@ using Robust.Shared.ViewVariables; namespace Content.Server.UserInterface { [RegisterComponent] - public class ActivatableUIComponent : Component, + public sealed class ActivatableUIComponent : Component, ISerializationHooks { [ViewVariables] diff --git a/Content.Server/UserInterface/ActivatableUISystem.cs b/Content.Server/UserInterface/ActivatableUISystem.cs index 2df6b3dff0..56b9982b03 100644 --- a/Content.Server/UserInterface/ActivatableUISystem.cs +++ b/Content.Server/UserInterface/ActivatableUISystem.cs @@ -122,7 +122,7 @@ namespace Content.Server.UserInterface } } - public class ActivatableUIOpenAttemptEvent : CancellableEntityEventArgs + public sealed class ActivatableUIOpenAttemptEvent : CancellableEntityEventArgs { public EntityUid User { get; } public ActivatableUIOpenAttemptEvent(EntityUid who) @@ -131,7 +131,7 @@ namespace Content.Server.UserInterface } } - public class ActivatableUIPlayerChangedEvent : EntityEventArgs + public sealed class ActivatableUIPlayerChangedEvent : EntityEventArgs { } } diff --git a/Content.Server/Utility/Commands/EchoCommand.cs b/Content.Server/Utility/Commands/EchoCommand.cs index 50d73a9f04..11625aceeb 100644 --- a/Content.Server/Utility/Commands/EchoCommand.cs +++ b/Content.Server/Utility/Commands/EchoCommand.cs @@ -6,7 +6,7 @@ using Robust.Shared.Localization; namespace Content.Server.Utility.Commands { [AnyCommand] - class EchoCommand : IConsoleCommand + sealed class EchoCommand : IConsoleCommand { public string Command => "echo"; diff --git a/Content.Server/VendingMachines/VendingMachineComponent.cs b/Content.Server/VendingMachines/VendingMachineComponent.cs index b810595941..0c5e9d876e 100644 --- a/Content.Server/VendingMachines/VendingMachineComponent.cs +++ b/Content.Server/VendingMachines/VendingMachineComponent.cs @@ -13,7 +13,7 @@ using static Content.Shared.Wires.SharedWiresComponent; namespace Content.Server.VendingMachines { [RegisterComponent] - public class VendingMachineComponent : SharedVendingMachineComponent, IWires + public sealed class VendingMachineComponent : SharedVendingMachineComponent, IWires { public bool Ejecting; public TimeSpan AnimationDuration = TimeSpan.Zero; @@ -58,7 +58,7 @@ namespace Content.Server.VendingMachines } } - public class WiresUpdateEventArgs : EventArgs + public sealed class WiresUpdateEventArgs : EventArgs { public readonly object Identifier; public readonly WiresAction Action; diff --git a/Content.Server/Verbs/Commands/InvokeVerbCommand.cs b/Content.Server/Verbs/Commands/InvokeVerbCommand.cs index c450b0532a..543e907a7e 100644 --- a/Content.Server/Verbs/Commands/InvokeVerbCommand.cs +++ b/Content.Server/Verbs/Commands/InvokeVerbCommand.cs @@ -7,7 +7,7 @@ using Robust.Shared.Console; namespace Content.Server.Verbs.Commands { [AdminCommand(AdminFlags.Admin)] - public class InvokeVerbCommand : IConsoleCommand + public sealed class InvokeVerbCommand : IConsoleCommand { public string Command => "invokeverb"; public string Description => Loc.GetString("invoke-verb-command-description"); diff --git a/Content.Server/Verbs/Commands/ListVerbsCommand.cs b/Content.Server/Verbs/Commands/ListVerbsCommand.cs index c8ffdfc116..1a69a92d14 100644 --- a/Content.Server/Verbs/Commands/ListVerbsCommand.cs +++ b/Content.Server/Verbs/Commands/ListVerbsCommand.cs @@ -10,7 +10,7 @@ using System.Linq; namespace Content.Server.Verbs.Commands { [AdminCommand(AdminFlags.Admin)] - public class ListVerbsCommand : IConsoleCommand + public sealed class ListVerbsCommand : IConsoleCommand { public string Command => "listverbs"; public string Description => Loc.GetString("list-verbs-command-description"); diff --git a/Content.Server/Weapon/Melee/Components/MeleeWeaponComponent.cs b/Content.Server/Weapon/Melee/Components/MeleeWeaponComponent.cs index bc28ad92cb..5984f10a9a 100644 --- a/Content.Server/Weapon/Melee/Components/MeleeWeaponComponent.cs +++ b/Content.Server/Weapon/Melee/Components/MeleeWeaponComponent.cs @@ -8,6 +8,7 @@ using Robust.Shared.ViewVariables; namespace Content.Server.Weapon.Melee.Components { [RegisterComponent] + [Virtual] public class MeleeWeaponComponent : Component { [ViewVariables(VVAccess.ReadWrite)] diff --git a/Content.Server/Weapon/Melee/Components/UnarmedCombatComponent.cs b/Content.Server/Weapon/Melee/Components/UnarmedCombatComponent.cs index 8ccf820c8a..bf8631c7b0 100644 --- a/Content.Server/Weapon/Melee/Components/UnarmedCombatComponent.cs +++ b/Content.Server/Weapon/Melee/Components/UnarmedCombatComponent.cs @@ -5,7 +5,7 @@ namespace Content.Server.Weapon.Melee.Components // TODO: Remove this, just use MeleeWeapon... [RegisterComponent] [ComponentReference(typeof(MeleeWeaponComponent))] - public class UnarmedCombatComponent : MeleeWeaponComponent + public sealed class UnarmedCombatComponent : MeleeWeaponComponent { } } diff --git a/Content.Server/Weapon/Melee/EnergySword/Components/EnergySwordComponent.cs b/Content.Server/Weapon/Melee/EnergySword/Components/EnergySwordComponent.cs index 91624df34d..d3e2d52c38 100644 --- a/Content.Server/Weapon/Melee/EnergySword/Components/EnergySwordComponent.cs +++ b/Content.Server/Weapon/Melee/EnergySword/Components/EnergySwordComponent.cs @@ -8,7 +8,7 @@ using Robust.Shared.Serialization.Manager.Attributes; namespace Content.Server.Weapon.Melee.EnergySword { [RegisterComponent] - internal class EnergySwordComponent : Component + internal sealed class EnergySwordComponent : Component { public Color BladeColor = Color.DodgerBlue; diff --git a/Content.Server/Weapon/Melee/EnergySword/EnergySwordSystem.cs b/Content.Server/Weapon/Melee/EnergySword/EnergySwordSystem.cs index 8a50244fbf..2f37aa8340 100644 --- a/Content.Server/Weapon/Melee/EnergySword/EnergySwordSystem.cs +++ b/Content.Server/Weapon/Melee/EnergySword/EnergySwordSystem.cs @@ -11,7 +11,7 @@ using Robust.Shared.Random; namespace Content.Server.Weapon.Melee.EnergySword { - internal class EnergySwordSystem : EntitySystem + internal sealed class EnergySwordSystem : EntitySystem { [Dependency] private readonly ActionBlockerSystem _blockerSystem = default!; [Dependency] private readonly IRobustRandom _random = default!; diff --git a/Content.Server/Weapon/Melee/MeleeWeaponSystem.cs b/Content.Server/Weapon/Melee/MeleeWeaponSystem.cs index 8961154554..1818e440e3 100644 --- a/Content.Server/Weapon/Melee/MeleeWeaponSystem.cs +++ b/Content.Server/Weapon/Melee/MeleeWeaponSystem.cs @@ -315,7 +315,7 @@ namespace Content.Server.Weapon.Melee /// Raised directed on the melee weapon entity used to attack something in combat mode, /// whether through a click attack or wide attack. /// - public class MeleeHitEvent : HandledEntityEventArgs + public sealed class MeleeHitEvent : HandledEntityEventArgs { /// /// Modifier sets to apply to the hit event when it's all said and done. @@ -358,7 +358,7 @@ namespace Content.Server.Weapon.Melee /// Raised directed on the melee weapon entity used to attack something in combat mode, /// whether through a click attack or wide attack. /// - public class MeleeInteractEvent : EntityEventArgs + public sealed class MeleeInteractEvent : EntityEventArgs { /// /// The entity interacted with. diff --git a/Content.Server/Weapon/Ranged/Ammunition/Components/AmmoComponentData.cs b/Content.Server/Weapon/Ranged/Ammunition/Components/AmmoComponentData.cs index ffeb48d9bd..ebe5a62a59 100644 --- a/Content.Server/Weapon/Ranged/Ammunition/Components/AmmoComponentData.cs +++ b/Content.Server/Weapon/Ranged/Ammunition/Components/AmmoComponentData.cs @@ -2,7 +2,7 @@ using Robust.Shared.Serialization; namespace Content.Server.Weapon.Ranged.Ammunition.Components { - public partial class AmmoComponentData : ISerializationHooks + public sealed partial class AmmoComponentData : ISerializationHooks { } } diff --git a/Content.Server/Weapon/Ranged/Ammunition/Components/RangedMagazineComponent.cs b/Content.Server/Weapon/Ranged/Ammunition/Components/RangedMagazineComponent.cs index 3ba6000545..6f73c9fdf7 100644 --- a/Content.Server/Weapon/Ranged/Ammunition/Components/RangedMagazineComponent.cs +++ b/Content.Server/Weapon/Ranged/Ammunition/Components/RangedMagazineComponent.cs @@ -11,7 +11,7 @@ using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototy namespace Content.Server.Weapon.Ranged.Ammunition.Components { [RegisterComponent] - public class RangedMagazineComponent : Component + public sealed class RangedMagazineComponent : Component { public readonly Stack SpawnedAmmo = new(); public Container AmmoContainer = default!; diff --git a/Content.Server/Weapon/Ranged/Ammunition/Components/SpeedLoaderComponent.cs b/Content.Server/Weapon/Ranged/Ammunition/Components/SpeedLoaderComponent.cs index bacbe786a4..9d2dce75c8 100644 --- a/Content.Server/Weapon/Ranged/Ammunition/Components/SpeedLoaderComponent.cs +++ b/Content.Server/Weapon/Ranged/Ammunition/Components/SpeedLoaderComponent.cs @@ -11,7 +11,7 @@ namespace Content.Server.Weapon.Ranged.Ammunition.Components /// Used to load certain ranged weapons quickly /// [RegisterComponent] - public class SpeedLoaderComponent : Component + public sealed class SpeedLoaderComponent : Component { [DataField("caliber")] public BallisticCaliber Caliber = BallisticCaliber.Unspecified; public int Capacity => _capacity; diff --git a/Content.Server/Whitelist/WhitelistCommands.cs b/Content.Server/Whitelist/WhitelistCommands.cs index b5c0a2a139..f37218a6d0 100644 --- a/Content.Server/Whitelist/WhitelistCommands.cs +++ b/Content.Server/Whitelist/WhitelistCommands.cs @@ -13,7 +13,7 @@ using Robust.Shared.Player; namespace Content.Server.Whitelist; [AdminCommand(AdminFlags.Ban)] -public class AddWhitelistCommand : IConsoleCommand +public sealed class AddWhitelistCommand : IConsoleCommand { public string Command => "whitelistadd"; public string Description => Loc.GetString("command-whitelistadd-description"); @@ -42,7 +42,7 @@ public class AddWhitelistCommand : IConsoleCommand } [AdminCommand(AdminFlags.Ban)] -public class RemoveWhitelistCommand : IConsoleCommand +public sealed class RemoveWhitelistCommand : IConsoleCommand { public string Command => "whitelistremove"; public string Description => Loc.GetString("command-whitelistremove-description"); @@ -71,7 +71,7 @@ public class RemoveWhitelistCommand : IConsoleCommand } [AdminCommand(AdminFlags.Ban)] -public class KickNonWhitelistedCommand : IConsoleCommand +public sealed class KickNonWhitelistedCommand : IConsoleCommand { public string Command => "kicknonwhitelisted"; public string Description => Loc.GetString("command-kicknonwhitelisted-description"); diff --git a/Content.Server/Wieldable/Components/IncreaseDamageOnWieldComponent.cs b/Content.Server/Wieldable/Components/IncreaseDamageOnWieldComponent.cs index 77442f6cc8..1961bd679b 100644 --- a/Content.Server/Wieldable/Components/IncreaseDamageOnWieldComponent.cs +++ b/Content.Server/Wieldable/Components/IncreaseDamageOnWieldComponent.cs @@ -7,7 +7,7 @@ using Robust.Shared.Serialization.Manager.Attributes; namespace Content.Server.Wieldable.Components { [RegisterComponent, Friend(typeof(WieldableSystem))] - public class IncreaseDamageOnWieldComponent : Component + public sealed class IncreaseDamageOnWieldComponent : Component { [DataField("modifiers", required: true)] public DamageModifierSet Modifiers = default!; diff --git a/Content.Server/Wieldable/Components/WieldableComponent.cs b/Content.Server/Wieldable/Components/WieldableComponent.cs index a3210e6999..ecc4b4cac3 100644 --- a/Content.Server/Wieldable/Components/WieldableComponent.cs +++ b/Content.Server/Wieldable/Components/WieldableComponent.cs @@ -9,7 +9,7 @@ namespace Content.Server.Wieldable.Components /// Used for objects that can be wielded in two or more hands, /// [RegisterComponent, Friend(typeof(WieldableSystem))] - public class WieldableComponent : Component + public sealed class WieldableComponent : Component { [DataField("wieldSound")] public SoundSpecifier? WieldSound = new SoundPathSpecifier("/Audio/Effects/thudswoosh.ogg"); diff --git a/Content.Server/Wieldable/WieldableSystem.cs b/Content.Server/Wieldable/WieldableSystem.cs index 3812f18cca..d993bc7eba 100644 --- a/Content.Server/Wieldable/WieldableSystem.cs +++ b/Content.Server/Wieldable/WieldableSystem.cs @@ -16,7 +16,7 @@ using Robust.Shared.Player; namespace Content.Server.Wieldable { - public class WieldableSystem : EntitySystem + public sealed class WieldableSystem : EntitySystem { [Dependency] private readonly DoAfterSystem _doAfter = default!; [Dependency] private readonly HandVirtualItemSystem _virtualItemSystem = default!; @@ -237,14 +237,14 @@ namespace Content.Server.Wieldable #region Events - public class BeforeWieldEvent : CancellableEntityEventArgs + public sealed class BeforeWieldEvent : CancellableEntityEventArgs { } /// /// Raised on the item that has been wielded. /// - public class ItemWieldedEvent : EntityEventArgs + public sealed class ItemWieldedEvent : EntityEventArgs { public EntityUid? User; @@ -257,7 +257,7 @@ namespace Content.Server.Wieldable /// /// Raised on the user who wielded the item. /// - public class WieldedItemEvent : EntityEventArgs + public sealed class WieldedItemEvent : EntityEventArgs { public EntityUid Item; @@ -267,14 +267,14 @@ namespace Content.Server.Wieldable } } - public class BeforeUnwieldEvent : CancellableEntityEventArgs + public sealed class BeforeUnwieldEvent : CancellableEntityEventArgs { } /// /// Raised on the item that has been unwielded. /// - public class ItemUnwieldedEvent : EntityEventArgs + public sealed class ItemUnwieldedEvent : EntityEventArgs { public EntityUid? User; /// @@ -292,7 +292,7 @@ namespace Content.Server.Wieldable /// /// Raised on the user who unwielded the item. /// - public class UnwieldedItemEvent : EntityEventArgs + public sealed class UnwieldedItemEvent : EntityEventArgs { public EntityUid Item; diff --git a/Content.Server/WireHacking/WireHackingSystem.cs b/Content.Server/WireHacking/WireHackingSystem.cs index 781932ec9e..60dd9f8ee6 100644 --- a/Content.Server/WireHacking/WireHackingSystem.cs +++ b/Content.Server/WireHacking/WireHackingSystem.cs @@ -16,7 +16,7 @@ using static Content.Shared.Wires.SharedWiresComponent; namespace Content.Server.WireHacking { - public class WireHackingSystem : EntitySystem + public sealed class WireHackingSystem : EntitySystem { [Dependency] private readonly IRobustRandom _random = default!; [Dependency] private readonly ActionBlockerSystem _blocker = default!; diff --git a/Content.Server/WireHacking/WiresComponent.cs b/Content.Server/WireHacking/WiresComponent.cs index 878ca2614a..54af7dbd26 100644 --- a/Content.Server/WireHacking/WiresComponent.cs +++ b/Content.Server/WireHacking/WiresComponent.cs @@ -30,7 +30,7 @@ using Robust.Shared.ViewVariables; namespace Content.Server.WireHacking { [RegisterComponent] - public class WiresComponent : SharedWiresComponent, IInteractUsing + public sealed class WiresComponent : SharedWiresComponent, IInteractUsing { [Dependency] private readonly IRobustRandom _random = default!; [Dependency] private readonly IEntityManager _entities = default!; @@ -202,7 +202,7 @@ namespace Content.Server.WireHacking return wire.IsCut; } - public class Wire + public sealed class Wire { /// /// The component that registered the wire. @@ -251,7 +251,7 @@ namespace Content.Server.WireHacking /// /// Used by . /// - public class WiresBuilder + public sealed class WiresBuilder { private readonly WiresComponent _wires; private readonly IWires _owner; diff --git a/Content.Server/Xenoarchaeology/XenoArtifacts/ArtifactComponent.cs b/Content.Server/Xenoarchaeology/XenoArtifacts/ArtifactComponent.cs index 5cd134cc6a..3d6bc321b4 100644 --- a/Content.Server/Xenoarchaeology/XenoArtifacts/ArtifactComponent.cs +++ b/Content.Server/Xenoarchaeology/XenoArtifacts/ArtifactComponent.cs @@ -6,7 +6,7 @@ using Robust.Shared.ViewVariables; namespace Content.Server.Xenoarchaeology.XenoArtifacts; [RegisterComponent] -public class ArtifactComponent : Component +public sealed class ArtifactComponent : Component { /// /// Should artifact pick a random trigger on startup? diff --git a/Content.Server/Xenoarchaeology/XenoArtifacts/ArtifactSystem.cs b/Content.Server/Xenoarchaeology/XenoArtifacts/ArtifactSystem.cs index 6ba1800f0d..c11fc65ad7 100644 --- a/Content.Server/Xenoarchaeology/XenoArtifacts/ArtifactSystem.cs +++ b/Content.Server/Xenoarchaeology/XenoArtifacts/ArtifactSystem.cs @@ -6,7 +6,7 @@ using Robust.Shared.Timing; namespace Content.Server.Xenoarchaeology.XenoArtifacts; -public class ArtifactSystem : EntitySystem +public sealed class ArtifactSystem : EntitySystem { [Dependency] private readonly IGameTiming _gameTiming = default!; [Dependency] private readonly IRobustRandom _random = default!; diff --git a/Content.Server/Xenoarchaeology/XenoArtifacts/Effects/Components/GasArtifactComponent.cs b/Content.Server/Xenoarchaeology/XenoArtifacts/Effects/Components/GasArtifactComponent.cs index dad141f1d3..42e8cd31e4 100644 --- a/Content.Server/Xenoarchaeology/XenoArtifacts/Effects/Components/GasArtifactComponent.cs +++ b/Content.Server/Xenoarchaeology/XenoArtifacts/Effects/Components/GasArtifactComponent.cs @@ -9,7 +9,7 @@ namespace Content.Server.Xenoarchaeology.XenoArtifacts.Effects.Components; /// Spawn a random gas with random temperature when artifact activated. /// [RegisterComponent] -public class GasArtifactComponent : Component +public sealed class GasArtifactComponent : Component { public override string Name => "GasArtifact"; diff --git a/Content.Server/Xenoarchaeology/XenoArtifacts/Effects/Components/RadiateArtifactComponent.cs b/Content.Server/Xenoarchaeology/XenoArtifacts/Effects/Components/RadiateArtifactComponent.cs index 249e9f4abe..2e4a3587ab 100644 --- a/Content.Server/Xenoarchaeology/XenoArtifacts/Effects/Components/RadiateArtifactComponent.cs +++ b/Content.Server/Xenoarchaeology/XenoArtifacts/Effects/Components/RadiateArtifactComponent.cs @@ -10,7 +10,7 @@ namespace Content.Server.Xenoarchaeology.XenoArtifacts.Effects.Components; /// Spawn RadiationPulse when artifact activated. /// [RegisterComponent] -public class RadiateArtifactComponent : Component +public sealed class RadiateArtifactComponent : Component { public override string Name => "RadiateArtifact"; diff --git a/Content.Server/Xenoarchaeology/XenoArtifacts/Effects/Components/SpawnArtifactComponent.cs b/Content.Server/Xenoarchaeology/XenoArtifacts/Effects/Components/SpawnArtifactComponent.cs index 35d9293e36..58ac8cef61 100644 --- a/Content.Server/Xenoarchaeology/XenoArtifacts/Effects/Components/SpawnArtifactComponent.cs +++ b/Content.Server/Xenoarchaeology/XenoArtifacts/Effects/Components/SpawnArtifactComponent.cs @@ -13,7 +13,7 @@ namespace Content.Server.Xenoarchaeology.XenoArtifacts.Effects.Components; /// It could be an angry mob or some random item. /// [RegisterComponent] -public class SpawnArtifactComponent : Component +public sealed class SpawnArtifactComponent : Component { [DataField("random")] public bool RandomPrototype = true; diff --git a/Content.Server/Xenoarchaeology/XenoArtifacts/Effects/Components/TelepathicArtifactComponent.cs b/Content.Server/Xenoarchaeology/XenoArtifacts/Effects/Components/TelepathicArtifactComponent.cs index 3ad2c30d04..3552569ce2 100644 --- a/Content.Server/Xenoarchaeology/XenoArtifacts/Effects/Components/TelepathicArtifactComponent.cs +++ b/Content.Server/Xenoarchaeology/XenoArtifacts/Effects/Components/TelepathicArtifactComponent.cs @@ -9,7 +9,7 @@ namespace Content.Server.Xenoarchaeology.XenoArtifacts.Effects.Components; /// Thoughts are shown as popups and unique for each player. /// [RegisterComponent] -public class TelepathicArtifactComponent : Component +public sealed class TelepathicArtifactComponent : Component { /// /// Loc string ids of telepathic messages. diff --git a/Content.Server/Xenoarchaeology/XenoArtifacts/Effects/Components/TemperatureArtifactComponent.cs b/Content.Server/Xenoarchaeology/XenoArtifacts/Effects/Components/TemperatureArtifactComponent.cs index 4d62253045..6b64788aec 100644 --- a/Content.Server/Xenoarchaeology/XenoArtifacts/Effects/Components/TemperatureArtifactComponent.cs +++ b/Content.Server/Xenoarchaeology/XenoArtifacts/Effects/Components/TemperatureArtifactComponent.cs @@ -8,7 +8,7 @@ namespace Content.Server.Xenoarchaeology.XenoArtifacts.Effects.Components; /// Change atmospherics temperature until it reach target. /// [RegisterComponent] -public class TemperatureArtifactComponent : Component +public sealed class TemperatureArtifactComponent : Component { public override string Name => "TemperatureArtifact"; diff --git a/Content.Server/Xenoarchaeology/XenoArtifacts/Effects/Systems/GasArtifactSystem.cs b/Content.Server/Xenoarchaeology/XenoArtifacts/Effects/Systems/GasArtifactSystem.cs index bce2a3a5de..ea0bf936de 100644 --- a/Content.Server/Xenoarchaeology/XenoArtifacts/Effects/Systems/GasArtifactSystem.cs +++ b/Content.Server/Xenoarchaeology/XenoArtifacts/Effects/Systems/GasArtifactSystem.cs @@ -8,7 +8,7 @@ using Robust.Shared.Random; namespace Content.Server.Xenoarchaeology.XenoArtifacts.Effects.Systems; -public class GasArtifactSystem : EntitySystem +public sealed class GasArtifactSystem : EntitySystem { [Dependency] private readonly AtmosphereSystem _atmosphereSystem = default!; [Dependency] private readonly IRobustRandom _random = default!; diff --git a/Content.Server/Xenoarchaeology/XenoArtifacts/Effects/Systems/RadiateArtifactSystem.cs b/Content.Server/Xenoarchaeology/XenoArtifacts/Effects/Systems/RadiateArtifactSystem.cs index 0e7dc5faf2..28579aaa6d 100644 --- a/Content.Server/Xenoarchaeology/XenoArtifacts/Effects/Systems/RadiateArtifactSystem.cs +++ b/Content.Server/Xenoarchaeology/XenoArtifacts/Effects/Systems/RadiateArtifactSystem.cs @@ -5,7 +5,7 @@ using Robust.Shared.GameObjects; namespace Content.Server.Xenoarchaeology.XenoArtifacts.Effects.Systems; -public class RadiateArtifactSystem : EntitySystem +public sealed class RadiateArtifactSystem : EntitySystem { public override void Initialize() { diff --git a/Content.Server/Xenoarchaeology/XenoArtifacts/Effects/Systems/SpawnArtifactSystem.cs b/Content.Server/Xenoarchaeology/XenoArtifacts/Effects/Systems/SpawnArtifactSystem.cs index de2fda3ffe..a17e50fe68 100644 --- a/Content.Server/Xenoarchaeology/XenoArtifacts/Effects/Systems/SpawnArtifactSystem.cs +++ b/Content.Server/Xenoarchaeology/XenoArtifacts/Effects/Systems/SpawnArtifactSystem.cs @@ -9,7 +9,7 @@ using Robust.Shared.Random; namespace Content.Server.Xenoarchaeology.XenoArtifacts.Effects.Systems; -public class SpawnArtifactSystem : EntitySystem +public sealed class SpawnArtifactSystem : EntitySystem { [Dependency] private readonly IRobustRandom _random = default!; diff --git a/Content.Server/Xenoarchaeology/XenoArtifacts/Effects/Systems/TelepathicArtifactSystem.cs b/Content.Server/Xenoarchaeology/XenoArtifacts/Effects/Systems/TelepathicArtifactSystem.cs index 90736f6edc..8c5a77efe9 100644 --- a/Content.Server/Xenoarchaeology/XenoArtifacts/Effects/Systems/TelepathicArtifactSystem.cs +++ b/Content.Server/Xenoarchaeology/XenoArtifacts/Effects/Systems/TelepathicArtifactSystem.cs @@ -10,7 +10,7 @@ using Robust.Shared.Random; namespace Content.Server.Xenoarchaeology.XenoArtifacts.Effects.Systems; -public class TelepathicArtifactSystem : EntitySystem +public sealed class TelepathicArtifactSystem : EntitySystem { [Dependency] private readonly IRobustRandom _random = default!; [Dependency] private readonly IEntityLookup _lookup = default!; diff --git a/Content.Server/Xenoarchaeology/XenoArtifacts/Effects/Systems/TemperatureArtifactSystem.cs b/Content.Server/Xenoarchaeology/XenoArtifacts/Effects/Systems/TemperatureArtifactSystem.cs index 40c9146bb7..6e4da2b522 100644 --- a/Content.Server/Xenoarchaeology/XenoArtifacts/Effects/Systems/TemperatureArtifactSystem.cs +++ b/Content.Server/Xenoarchaeology/XenoArtifacts/Effects/Systems/TemperatureArtifactSystem.cs @@ -7,7 +7,7 @@ using Robust.Shared.IoC; namespace Content.Server.Xenoarchaeology.XenoArtifacts.Effects.Systems; -public class TemperatureArtifactSystem : EntitySystem +public sealed class TemperatureArtifactSystem : EntitySystem { [Dependency] private readonly AtmosphereSystem _atmosphereSystem = default!; diff --git a/Content.Server/Xenoarchaeology/XenoArtifacts/Events/ArtifactActivatedEvent.cs b/Content.Server/Xenoarchaeology/XenoArtifacts/Events/ArtifactActivatedEvent.cs index 32da8b5fde..812e71f9f7 100644 --- a/Content.Server/Xenoarchaeology/XenoArtifacts/Events/ArtifactActivatedEvent.cs +++ b/Content.Server/Xenoarchaeology/XenoArtifacts/Events/ArtifactActivatedEvent.cs @@ -6,7 +6,7 @@ namespace Content.Server.Xenoarchaeology.XenoArtifacts.Events; /// Invokes when artifact was successfully activated. /// Used to start attached effects. /// -public class ArtifactActivatedEvent : EntityEventArgs +public sealed class ArtifactActivatedEvent : EntityEventArgs { /// /// Entity that activate this artifact. diff --git a/Content.Server/Xenoarchaeology/XenoArtifacts/Events/RandomizeTriggerEvent.cs b/Content.Server/Xenoarchaeology/XenoArtifacts/Events/RandomizeTriggerEvent.cs index 3aa03fd46d..c5ba79bb31 100644 --- a/Content.Server/Xenoarchaeology/XenoArtifacts/Events/RandomizeTriggerEvent.cs +++ b/Content.Server/Xenoarchaeology/XenoArtifacts/Events/RandomizeTriggerEvent.cs @@ -5,7 +5,7 @@ namespace Content.Server.Xenoarchaeology.XenoArtifacts.Events; /// /// Force to randomize artifact triggers. /// -public class RandomizeTriggerEvent : EntityEventArgs +public sealed class RandomizeTriggerEvent : EntityEventArgs { } diff --git a/Content.Server/Xenoarchaeology/XenoArtifacts/RandomArtifactSpriteComponent.cs b/Content.Server/Xenoarchaeology/XenoArtifacts/RandomArtifactSpriteComponent.cs index f328a1da53..21ccf65595 100644 --- a/Content.Server/Xenoarchaeology/XenoArtifacts/RandomArtifactSpriteComponent.cs +++ b/Content.Server/Xenoarchaeology/XenoArtifacts/RandomArtifactSpriteComponent.cs @@ -5,7 +5,7 @@ using Robust.Shared.Serialization.Manager.Attributes; namespace Content.Server.Xenoarchaeology.XenoArtifacts; [RegisterComponent] -public class RandomArtifactSpriteComponent : Component +public sealed class RandomArtifactSpriteComponent : Component { [DataField("minSprite")] public int MinSprite = 1; diff --git a/Content.Server/Xenoarchaeology/XenoArtifacts/RandomArtifactSpriteSystem.cs b/Content.Server/Xenoarchaeology/XenoArtifacts/RandomArtifactSpriteSystem.cs index 59cfb94952..688dd2e396 100644 --- a/Content.Server/Xenoarchaeology/XenoArtifacts/RandomArtifactSpriteSystem.cs +++ b/Content.Server/Xenoarchaeology/XenoArtifacts/RandomArtifactSpriteSystem.cs @@ -8,7 +8,7 @@ using Robust.Shared.Timing; namespace Content.Server.Xenoarchaeology.XenoArtifacts; -public class RandomArtifactSpriteSystem : EntitySystem +public sealed class RandomArtifactSpriteSystem : EntitySystem { [Dependency] private readonly IRobustRandom _random = default!; [Dependency] private readonly IGameTiming _time = default!; diff --git a/Content.Server/Xenoarchaeology/XenoArtifacts/Triggers/Components/ArtifactGasTriggerComponent.cs b/Content.Server/Xenoarchaeology/XenoArtifacts/Triggers/Components/ArtifactGasTriggerComponent.cs index ec859e0066..8cbb607215 100644 --- a/Content.Server/Xenoarchaeology/XenoArtifacts/Triggers/Components/ArtifactGasTriggerComponent.cs +++ b/Content.Server/Xenoarchaeology/XenoArtifacts/Triggers/Components/ArtifactGasTriggerComponent.cs @@ -9,7 +9,7 @@ namespace Content.Server.Xenoarchaeology.XenoArtifacts.Triggers.Components; /// Activates artifact when it surrounded by certain gas. /// [RegisterComponent] -public class ArtifactGasTriggerComponent : Component +public sealed class ArtifactGasTriggerComponent : Component { /// /// List of possible activation gases to pick on startup. diff --git a/Content.Server/Xenoarchaeology/XenoArtifacts/Triggers/Components/ArtifactInteractionTriggerComponent.cs b/Content.Server/Xenoarchaeology/XenoArtifacts/Triggers/Components/ArtifactInteractionTriggerComponent.cs index fe682a3783..9ab33f6a22 100644 --- a/Content.Server/Xenoarchaeology/XenoArtifacts/Triggers/Components/ArtifactInteractionTriggerComponent.cs +++ b/Content.Server/Xenoarchaeology/XenoArtifacts/Triggers/Components/ArtifactInteractionTriggerComponent.cs @@ -6,6 +6,6 @@ namespace Content.Server.Xenoarchaeology.XenoArtifacts.Triggers.Components; /// Activate artifact just by touching it. /// [RegisterComponent] -public class ArtifactInteractionTriggerComponent : Component +public sealed class ArtifactInteractionTriggerComponent : Component { } diff --git a/Content.Server/Xenoarchaeology/XenoArtifacts/Triggers/Systems/ArtifactGasTriggerSystem.cs b/Content.Server/Xenoarchaeology/XenoArtifacts/Triggers/Systems/ArtifactGasTriggerSystem.cs index 0d47f20975..7b39b0cf7c 100644 --- a/Content.Server/Xenoarchaeology/XenoArtifacts/Triggers/Systems/ArtifactGasTriggerSystem.cs +++ b/Content.Server/Xenoarchaeology/XenoArtifacts/Triggers/Systems/ArtifactGasTriggerSystem.cs @@ -7,7 +7,7 @@ using Robust.Shared.Random; namespace Content.Server.Xenoarchaeology.XenoArtifacts.Triggers.Systems; -public class ArtifactGasTriggerSystem : EntitySystem +public sealed class ArtifactGasTriggerSystem : EntitySystem { [Dependency] private readonly IRobustRandom _random = default!; [Dependency] private readonly AtmosphereSystem _atmosphereSystem = default!; diff --git a/Content.Server/Xenoarchaeology/XenoArtifacts/Triggers/Systems/ArtifactInteractionTriggerSystem.cs b/Content.Server/Xenoarchaeology/XenoArtifacts/Triggers/Systems/ArtifactInteractionTriggerSystem.cs index 1d51cbe097..6cdabf7b15 100644 --- a/Content.Server/Xenoarchaeology/XenoArtifacts/Triggers/Systems/ArtifactInteractionTriggerSystem.cs +++ b/Content.Server/Xenoarchaeology/XenoArtifacts/Triggers/Systems/ArtifactInteractionTriggerSystem.cs @@ -7,7 +7,7 @@ using Robust.Shared.IoC; namespace Content.Server.Xenoarchaeology.XenoArtifacts.Triggers.Systems; -public class ArtifactInteractionTriggerSystem : EntitySystem +public sealed class ArtifactInteractionTriggerSystem : EntitySystem { [Dependency] private readonly ArtifactSystem _artifactSystem = default!; diff --git a/Content.Shared/AI/SharedAiDebug.cs b/Content.Shared/AI/SharedAiDebug.cs index 48c70c2960..5f681fa959 100644 --- a/Content.Shared/AI/SharedAiDebug.cs +++ b/Content.Shared/AI/SharedAiDebug.cs @@ -11,7 +11,7 @@ namespace Content.Shared.AI { #region Mob Debug [Serializable, NetSerializable] - public class UtilityAiDebugMessage : EntityEventArgs + public sealed class UtilityAiDebugMessage : EntityEventArgs { public EntityUid EntityUid { get; } public double PlanningTime { get; } @@ -39,10 +39,10 @@ namespace Content.Shared.AI /// Client asks the server for the pathfinding graph details /// [Serializable, NetSerializable] - public class RequestPathfindingGraphMessage : EntityEventArgs {} + public sealed class RequestPathfindingGraphMessage : EntityEventArgs {} [Serializable, NetSerializable] - public class PathfindingGraphMessage : EntityEventArgs + public sealed class PathfindingGraphMessage : EntityEventArgs { public Dictionary> Graph { get; } @@ -52,7 +52,7 @@ namespace Content.Shared.AI } } - public class AStarRouteDebug + public sealed class AStarRouteDebug { public EntityUid EntityUid { get; } public Queue Route { get; } @@ -75,7 +75,7 @@ namespace Content.Shared.AI } } - public class JpsRouteDebug + public sealed class JpsRouteDebug { public EntityUid EntityUid { get; } public Queue Route { get; } @@ -96,7 +96,7 @@ namespace Content.Shared.AI } [Serializable, NetSerializable] - public class AStarRouteMessage : EntityEventArgs + public sealed class AStarRouteMessage : EntityEventArgs { public readonly EntityUid EntityUid; public readonly IEnumerable Route; @@ -120,7 +120,7 @@ namespace Content.Shared.AI } [Serializable, NetSerializable] - public class JpsRouteMessage : EntityEventArgs + public sealed class JpsRouteMessage : EntityEventArgs { public readonly EntityUid EntityUid; public readonly IEnumerable Route; diff --git a/Content.Shared/AME/SharedAMEControllerComponent.cs b/Content.Shared/AME/SharedAMEControllerComponent.cs index 379a97ad2e..1d69c4d3b8 100644 --- a/Content.Shared/AME/SharedAMEControllerComponent.cs +++ b/Content.Shared/AME/SharedAMEControllerComponent.cs @@ -4,10 +4,11 @@ using Robust.Shared.Serialization; namespace Content.Shared.AME { + [Virtual] public class SharedAMEControllerComponent : Component { [Serializable, NetSerializable] - public class AMEControllerBoundUserInterfaceState : BoundUserInterfaceState + public sealed class AMEControllerBoundUserInterfaceState : BoundUserInterfaceState { public readonly bool HasPower; public readonly bool IsMaster; @@ -30,7 +31,7 @@ namespace Content.Shared.AME } [Serializable, NetSerializable] - public class UiButtonPressedMessage : BoundUserInterfaceMessage + public sealed class UiButtonPressedMessage : BoundUserInterfaceMessage { public readonly UiButton Button; diff --git a/Content.Shared/AME/SharedAMEShieldComponent.cs b/Content.Shared/AME/SharedAMEShieldComponent.cs index bb7b04a626..deb4da88db 100644 --- a/Content.Shared/AME/SharedAMEShieldComponent.cs +++ b/Content.Shared/AME/SharedAMEShieldComponent.cs @@ -4,6 +4,7 @@ using Robust.Shared.Serialization; namespace Content.Shared.AME { + [Virtual] public class SharedAMEShieldComponent : Component { [Serializable, NetSerializable] diff --git a/Content.Shared/Access/AccessLevelPrototype.cs b/Content.Shared/Access/AccessLevelPrototype.cs index c23e0db8ef..e4880c77aa 100644 --- a/Content.Shared/Access/AccessLevelPrototype.cs +++ b/Content.Shared/Access/AccessLevelPrototype.cs @@ -9,7 +9,7 @@ namespace Content.Shared.Access /// Defines a single access level that can be stored on ID cards and checked for. /// [Prototype("accessLevel")] - public class AccessLevelPrototype : IPrototype + public sealed class AccessLevelPrototype : IPrototype { [ViewVariables] [DataField("id", required: true)] diff --git a/Content.Shared/Access/Components/AccessReaderComponent.cs b/Content.Shared/Access/Components/AccessReaderComponent.cs index 0a45affdab..83cb454348 100644 --- a/Content.Shared/Access/Components/AccessReaderComponent.cs +++ b/Content.Shared/Access/Components/AccessReaderComponent.cs @@ -10,7 +10,7 @@ namespace Content.Shared.Access.Components /// and allows checking if something or somebody is authorized with these access levels. /// [RegisterComponent] - public class AccessReaderComponent : Component + public sealed class AccessReaderComponent : Component { /// /// Whether this reader is enabled or not. If disabled, all access diff --git a/Content.Shared/Access/Components/IdCardComponent.cs b/Content.Shared/Access/Components/IdCardComponent.cs index 8f04e90b3a..ccd2ef47e3 100644 --- a/Content.Shared/Access/Components/IdCardComponent.cs +++ b/Content.Shared/Access/Components/IdCardComponent.cs @@ -10,7 +10,7 @@ namespace Content.Shared.Access.Components // networked. [RegisterComponent] [Friend(typeof(SharedIdCardSystem), typeof(SharedPDASystem))] - public class IdCardComponent : Component + public sealed class IdCardComponent : Component { [DataField("originalOwnerName")] public string OriginalOwnerName = default!; diff --git a/Content.Shared/Access/Components/SharedIdCardConsoleComponent.cs b/Content.Shared/Access/Components/SharedIdCardConsoleComponent.cs index b106ac8763..3e701be150 100644 --- a/Content.Shared/Access/Components/SharedIdCardConsoleComponent.cs +++ b/Content.Shared/Access/Components/SharedIdCardConsoleComponent.cs @@ -7,7 +7,7 @@ using Robust.Shared.Serialization.Manager.Attributes; namespace Content.Shared.Access.Components { - public class SharedIdCardConsoleComponent : Component + public abstract class SharedIdCardConsoleComponent : Component { public const int MaxFullNameLength = 256; public const int MaxJobTitleLength = 256; @@ -25,7 +25,7 @@ namespace Content.Shared.Access.Components } [Serializable, NetSerializable] - public class IdButtonPressedMessage : BoundUserInterfaceMessage + public sealed class IdButtonPressedMessage : BoundUserInterfaceMessage { public readonly UiButton Button; @@ -36,7 +36,7 @@ namespace Content.Shared.Access.Components } [Serializable, NetSerializable] - public class WriteToTargetIdMessage : BoundUserInterfaceMessage + public sealed class WriteToTargetIdMessage : BoundUserInterfaceMessage { public readonly string FullName; public readonly string JobTitle; @@ -51,7 +51,7 @@ namespace Content.Shared.Access.Components } [Serializable, NetSerializable] - public class IdCardConsoleBoundUserInterfaceState : BoundUserInterfaceState + public sealed class IdCardConsoleBoundUserInterfaceState : BoundUserInterfaceState { public readonly string PrivilegedIdName; public readonly bool IsPrivilegedIdPresent; diff --git a/Content.Shared/Access/Systems/AccessReaderSystem.cs b/Content.Shared/Access/Systems/AccessReaderSystem.cs index c4c47a6da2..1c9d064476 100644 --- a/Content.Shared/Access/Systems/AccessReaderSystem.cs +++ b/Content.Shared/Access/Systems/AccessReaderSystem.cs @@ -13,7 +13,7 @@ using Robust.Shared.Prototypes; namespace Content.Shared.Access.Systems { - public class AccessReaderSystem : EntitySystem + public sealed class AccessReaderSystem : EntitySystem { [Dependency] private readonly IPrototypeManager _prototypeManager = default!; [Dependency] private readonly InventorySystem _inventorySystem = default!; diff --git a/Content.Shared/Actions/ActionManager.cs b/Content.Shared/Actions/ActionManager.cs index 524fa6cb47..8166f79dc2 100644 --- a/Content.Shared/Actions/ActionManager.cs +++ b/Content.Shared/Actions/ActionManager.cs @@ -11,7 +11,7 @@ namespace Content.Shared.Actions /// /// Provides access to all configured actions by action type. /// - public class ActionManager + public sealed class ActionManager { [Dependency] private readonly IPrototypeManager _prototypeManager = default!; diff --git a/Content.Shared/Actions/Behaviors/IInstantAction.cs b/Content.Shared/Actions/Behaviors/IInstantAction.cs index 910f226bb2..7d4f88d005 100644 --- a/Content.Shared/Actions/Behaviors/IInstantAction.cs +++ b/Content.Shared/Actions/Behaviors/IInstantAction.cs @@ -16,7 +16,7 @@ namespace Content.Shared.Actions.Behaviors void DoInstantAction(InstantActionEventArgs args); } - public class InstantActionEventArgs : ActionEventArgs + public sealed class InstantActionEventArgs : ActionEventArgs { public InstantActionEventArgs(EntityUid performer, ActionType actionType) : base(performer, actionType) { diff --git a/Content.Shared/Actions/Behaviors/ITargetEntityAction.cs b/Content.Shared/Actions/Behaviors/ITargetEntityAction.cs index 4288585371..629acc0713 100644 --- a/Content.Shared/Actions/Behaviors/ITargetEntityAction.cs +++ b/Content.Shared/Actions/Behaviors/ITargetEntityAction.cs @@ -14,7 +14,7 @@ namespace Content.Shared.Actions.Behaviors void DoTargetEntityAction(TargetEntityActionEventArgs args); } - public class TargetEntityActionEventArgs : ActionEventArgs + public sealed class TargetEntityActionEventArgs : ActionEventArgs { /// /// Entity being targeted diff --git a/Content.Shared/Actions/Behaviors/ITargetEntityItemAction.cs b/Content.Shared/Actions/Behaviors/ITargetEntityItemAction.cs index d761251a26..9bf07df15b 100644 --- a/Content.Shared/Actions/Behaviors/ITargetEntityItemAction.cs +++ b/Content.Shared/Actions/Behaviors/ITargetEntityItemAction.cs @@ -15,7 +15,7 @@ namespace Content.Shared.Actions.Behaviors void DoTargetEntityAction(TargetEntityItemActionEventArgs args); } - public class TargetEntityItemActionEventArgs : ItemActionEventArgs + public sealed class TargetEntityItemActionEventArgs : ItemActionEventArgs { /// /// Entity being targeted diff --git a/Content.Shared/Actions/Behaviors/ITargetPointAction.cs b/Content.Shared/Actions/Behaviors/ITargetPointAction.cs index 724a4acd17..2b329df310 100644 --- a/Content.Shared/Actions/Behaviors/ITargetPointAction.cs +++ b/Content.Shared/Actions/Behaviors/ITargetPointAction.cs @@ -16,7 +16,7 @@ namespace Content.Shared.Actions.Behaviors void DoTargetPointAction(TargetPointActionEventArgs args); } - public class TargetPointActionEventArgs : ActionEventArgs + public sealed class TargetPointActionEventArgs : ActionEventArgs { /// /// Local coordinates of the targeted position. diff --git a/Content.Shared/Actions/Behaviors/ITargetPointItemAction.cs b/Content.Shared/Actions/Behaviors/ITargetPointItemAction.cs index a2725ff7e0..050b055f83 100644 --- a/Content.Shared/Actions/Behaviors/ITargetPointItemAction.cs +++ b/Content.Shared/Actions/Behaviors/ITargetPointItemAction.cs @@ -17,7 +17,7 @@ namespace Content.Shared.Actions.Behaviors void DoTargetPointAction(TargetPointItemActionEventArgs args); } - public class TargetPointItemActionEventArgs : ItemActionEventArgs + public sealed class TargetPointItemActionEventArgs : ItemActionEventArgs { /// /// Local coordinates of the targeted position. diff --git a/Content.Shared/Actions/Behaviors/IToggleAction.cs b/Content.Shared/Actions/Behaviors/IToggleAction.cs index 3fecdc734a..c1263c5fd4 100644 --- a/Content.Shared/Actions/Behaviors/IToggleAction.cs +++ b/Content.Shared/Actions/Behaviors/IToggleAction.cs @@ -22,7 +22,7 @@ namespace Content.Shared.Actions.Behaviors bool DoToggleAction(ToggleActionEventArgs args); } - public class ToggleActionEventArgs : ActionEventArgs + public sealed class ToggleActionEventArgs : ActionEventArgs { /// /// True if the toggle is attempting to be toggled on, false if attempting to toggle off diff --git a/Content.Shared/Actions/Behaviors/Item/IInstantItemAction.cs b/Content.Shared/Actions/Behaviors/Item/IInstantItemAction.cs index 918997dc2f..8adce4ce9a 100644 --- a/Content.Shared/Actions/Behaviors/Item/IInstantItemAction.cs +++ b/Content.Shared/Actions/Behaviors/Item/IInstantItemAction.cs @@ -16,7 +16,7 @@ namespace Content.Shared.Actions.Behaviors.Item void DoInstantAction(InstantItemActionEventArgs args); } - public class InstantItemActionEventArgs : ItemActionEventArgs + public sealed class InstantItemActionEventArgs : ItemActionEventArgs { public InstantItemActionEventArgs(EntityUid performer, EntityUid item, ItemActionType actionType) : base(performer, item, actionType) diff --git a/Content.Shared/Actions/Behaviors/Item/IToggleItemAction.cs b/Content.Shared/Actions/Behaviors/Item/IToggleItemAction.cs index 4d0a0cdaf4..953de58a47 100644 --- a/Content.Shared/Actions/Behaviors/Item/IToggleItemAction.cs +++ b/Content.Shared/Actions/Behaviors/Item/IToggleItemAction.cs @@ -22,7 +22,7 @@ namespace Content.Shared.Actions.Behaviors.Item bool DoToggleAction(ToggleItemActionEventArgs args); } - public class ToggleItemActionEventArgs : ItemActionEventArgs + public sealed class ToggleItemActionEventArgs : ItemActionEventArgs { /// /// True if the toggle was toggled on, false if it was toggled off diff --git a/Content.Shared/Actions/Components/ItemActionsComponent.cs b/Content.Shared/Actions/Components/ItemActionsComponent.cs index 4b80f298aa..b80b87bbb2 100644 --- a/Content.Shared/Actions/Components/ItemActionsComponent.cs +++ b/Content.Shared/Actions/Components/ItemActionsComponent.cs @@ -24,7 +24,7 @@ namespace Content.Shared.Actions.Components /// Currently only maintained server side and not synced to client, as are all the equip/unequip events. /// [RegisterComponent] - public class ItemActionsComponent : Component + public sealed class ItemActionsComponent : Component { /// /// Configuration for the item actions initially provided by this item. Actions defined here @@ -182,7 +182,7 @@ namespace Content.Shared.Actions.Components /// Configuration for an item action provided by an item. /// [DataDefinition] - public class ItemActionConfig : ISerializationHooks + public sealed class ItemActionConfig : ISerializationHooks { [DataField("actionType", required: true)] public ItemActionType ActionType { get; private set; } = ItemActionType.Error; diff --git a/Content.Shared/Actions/Components/SharedActionsComponent.cs b/Content.Shared/Actions/Components/SharedActionsComponent.cs index 88239b0cf3..5fb0ecf68d 100644 --- a/Content.Shared/Actions/Components/SharedActionsComponent.cs +++ b/Content.Shared/Actions/Components/SharedActionsComponent.cs @@ -383,7 +383,7 @@ namespace Content.Shared.Actions.Components } [Serializable, NetSerializable] - public class ActionComponentState : ComponentState + public sealed class ActionComponentState : ComponentState { public Dictionary Actions; public Dictionary> ItemActions; @@ -488,7 +488,7 @@ namespace Content.Shared.Actions.Components /// A message that tells server we want to run the instant action logic. /// [Serializable, NetSerializable] - public class PerformInstantActionMessage : PerformActionMessage + public sealed class PerformInstantActionMessage : PerformActionMessage { public override BehaviorType BehaviorType => BehaviorType.Instant; @@ -501,7 +501,7 @@ namespace Content.Shared.Actions.Components /// A message that tells server we want to run the instant action logic. /// [Serializable, NetSerializable] - public class PerformInstantItemActionMessage : PerformItemActionMessage + public sealed class PerformInstantItemActionMessage : PerformItemActionMessage { public override BehaviorType BehaviorType => BehaviorType.Instant; @@ -535,7 +535,7 @@ namespace Content.Shared.Actions.Components /// A message that tells server we want to toggle on the indicated action. /// [Serializable, NetSerializable] - public class PerformToggleOnActionMessage : PerformActionMessage, IToggleActionMessage + public sealed class PerformToggleOnActionMessage : PerformActionMessage, IToggleActionMessage { public override BehaviorType BehaviorType => BehaviorType.Toggle; public bool ToggleOn => true; @@ -546,7 +546,7 @@ namespace Content.Shared.Actions.Components /// A message that tells server we want to toggle off the indicated action. /// [Serializable, NetSerializable] - public class PerformToggleOffActionMessage : PerformActionMessage, IToggleActionMessage + public sealed class PerformToggleOffActionMessage : PerformActionMessage, IToggleActionMessage { public override BehaviorType BehaviorType => BehaviorType.Toggle; public bool ToggleOn => false; @@ -557,7 +557,7 @@ namespace Content.Shared.Actions.Components /// A message that tells server we want to toggle on the indicated action. /// [Serializable, NetSerializable] - public class PerformToggleOnItemActionMessage : PerformItemActionMessage, IToggleActionMessage + public sealed class PerformToggleOnItemActionMessage : PerformItemActionMessage, IToggleActionMessage { public override BehaviorType BehaviorType => BehaviorType.Toggle; public bool ToggleOn => true; @@ -568,7 +568,7 @@ namespace Content.Shared.Actions.Components /// A message that tells server we want to toggle off the indicated action. /// [Serializable, NetSerializable] - public class PerformToggleOffItemActionMessage : PerformItemActionMessage, IToggleActionMessage + public sealed class PerformToggleOffItemActionMessage : PerformItemActionMessage, IToggleActionMessage { public override BehaviorType BehaviorType => BehaviorType.Toggle; public bool ToggleOn => false; @@ -579,7 +579,7 @@ namespace Content.Shared.Actions.Components /// A message that tells server we want to target the provided point with a particular action. /// [Serializable, NetSerializable] - public class PerformTargetPointActionMessage : PerformActionMessage, ITargetPointActionMessage + public sealed class PerformTargetPointActionMessage : PerformActionMessage, ITargetPointActionMessage { public override BehaviorType BehaviorType => BehaviorType.TargetPoint; private readonly EntityCoordinates _target; @@ -595,7 +595,7 @@ namespace Content.Shared.Actions.Components /// A message that tells server we want to target the provided point with a particular action. /// [Serializable, NetSerializable] - public class PerformTargetPointItemActionMessage : PerformItemActionMessage, ITargetPointActionMessage + public sealed class PerformTargetPointItemActionMessage : PerformItemActionMessage, ITargetPointActionMessage { private readonly EntityCoordinates _target; public EntityCoordinates Target => _target; @@ -611,7 +611,7 @@ namespace Content.Shared.Actions.Components /// A message that tells server we want to target the provided entity with a particular action. /// [Serializable, NetSerializable] - public class PerformTargetEntityActionMessage : PerformActionMessage, ITargetEntityActionMessage + public sealed class PerformTargetEntityActionMessage : PerformActionMessage, ITargetEntityActionMessage { public override BehaviorType BehaviorType => BehaviorType.TargetEntity; private readonly EntityUid _target; @@ -627,7 +627,7 @@ namespace Content.Shared.Actions.Components /// A message that tells server we want to target the provided entity with a particular action. /// [Serializable, NetSerializable] - public class PerformTargetEntityItemActionMessage : PerformItemActionMessage, ITargetEntityActionMessage + public sealed class PerformTargetEntityItemActionMessage : PerformItemActionMessage, ITargetEntityActionMessage { public override BehaviorType BehaviorType => BehaviorType.TargetEntity; private readonly EntityUid _target; diff --git a/Content.Shared/Actions/IActionAttempt.cs b/Content.Shared/Actions/IActionAttempt.cs index 5aa6eb90bd..ab3726057f 100644 --- a/Content.Shared/Actions/IActionAttempt.cs +++ b/Content.Shared/Actions/IActionAttempt.cs @@ -59,7 +59,7 @@ namespace Content.Shared.Actions void DoTargetEntityAction(EntityUid player, EntityUid target); } - public class ActionAttempt : IActionAttempt + public sealed class ActionAttempt : IActionAttempt { private readonly ActionPrototype _action; @@ -139,7 +139,7 @@ namespace Content.Shared.Actions } } - public class ItemActionAttempt : IActionAttempt + public sealed class ItemActionAttempt : IActionAttempt { private readonly ItemActionPrototype _action; private readonly EntityUid _item; diff --git a/Content.Shared/Actions/Prototypes/ActionPrototype.cs b/Content.Shared/Actions/Prototypes/ActionPrototype.cs index bc4422d052..6288e0f35e 100644 --- a/Content.Shared/Actions/Prototypes/ActionPrototype.cs +++ b/Content.Shared/Actions/Prototypes/ActionPrototype.cs @@ -14,7 +14,7 @@ namespace Content.Shared.Actions.Prototypes /// [Prototype("action")] [DataDefinition] - public class ActionPrototype : BaseActionPrototype, ISerializationHooks + public sealed class ActionPrototype : BaseActionPrototype, ISerializationHooks { /// /// Type of action, no 2 action prototypes should have the same one. diff --git a/Content.Shared/Actions/Prototypes/ItemActionPrototype.cs b/Content.Shared/Actions/Prototypes/ItemActionPrototype.cs index 3ab67b45a2..6a3d40358e 100644 --- a/Content.Shared/Actions/Prototypes/ItemActionPrototype.cs +++ b/Content.Shared/Actions/Prototypes/ItemActionPrototype.cs @@ -14,7 +14,7 @@ namespace Content.Shared.Actions.Prototypes /// [Prototype("itemAction")] [DataDefinition] - public class ItemActionPrototype : BaseActionPrototype, ISerializationHooks + public sealed class ItemActionPrototype : BaseActionPrototype, ISerializationHooks { /// /// Type of item action, no 2 itemAction prototypes should have the same one. diff --git a/Content.Shared/Actions/SharedActionSystem.cs b/Content.Shared/Actions/SharedActionSystem.cs index 7f21be8e0b..df54099f83 100644 --- a/Content.Shared/Actions/SharedActionSystem.cs +++ b/Content.Shared/Actions/SharedActionSystem.cs @@ -9,7 +9,7 @@ namespace Content.Shared.Actions /// /// Evicts action states with expired cooldowns. /// - public class SharedActionSystem : EntitySystem + public sealed class SharedActionSystem : EntitySystem { private const float CooldownCheckIntervalSeconds = 10; private float _timeSinceCooldownCheck; diff --git a/Content.Shared/Acts/ActSystem.cs b/Content.Shared/Acts/ActSystem.cs index 272a3b45f0..03add7917d 100644 --- a/Content.Shared/Acts/ActSystem.cs +++ b/Content.Shared/Acts/ActSystem.cs @@ -17,9 +17,9 @@ namespace Content.Shared.Acts void OnDestroy(DestructionEventArgs eventArgs); } - public class DestructionEventArgs : EntityEventArgs { } + public sealed class DestructionEventArgs : EntityEventArgs { } - public class BreakageEventArgs : EntityEventArgs { } + public sealed class BreakageEventArgs : EntityEventArgs { } public interface IBreakAct { @@ -37,7 +37,7 @@ namespace Content.Shared.Acts void OnExplosion(ExplosionEventArgs eventArgs); } - public class ExplosionEventArgs : EventArgs + public sealed class ExplosionEventArgs : EventArgs { public EntityCoordinates Source { get; set; } public EntityUid Target { get; set; } diff --git a/Content.Shared/Administration/AdminLogsEuiState.cs b/Content.Shared/Administration/AdminLogsEuiState.cs index 3921a3bbb5..d03bda535a 100644 --- a/Content.Shared/Administration/AdminLogsEuiState.cs +++ b/Content.Shared/Administration/AdminLogsEuiState.cs @@ -8,7 +8,7 @@ using Robust.Shared.Serialization; namespace Content.Shared.Administration; [Serializable, NetSerializable] -public class AdminLogsEuiState : EuiStateBase +public sealed class AdminLogsEuiState : EuiStateBase { public AdminLogsEuiState(int roundId, Dictionary players) { diff --git a/Content.Shared/Administration/EditSolutionsEuiState.cs b/Content.Shared/Administration/EditSolutionsEuiState.cs index 5c3fdc938f..a075f4bcb1 100644 --- a/Content.Shared/Administration/EditSolutionsEuiState.cs +++ b/Content.Shared/Administration/EditSolutionsEuiState.cs @@ -8,7 +8,7 @@ using Content.Shared.Chemistry.Components; namespace Content.Shared.Administration { [Serializable, NetSerializable] - public class EditSolutionsEuiState : EuiStateBase + public sealed class EditSolutionsEuiState : EuiStateBase { public readonly EntityUid Target; public readonly Dictionary? Solutions; diff --git a/Content.Shared/Administration/Events/FullPlayerListEvent.cs b/Content.Shared/Administration/Events/FullPlayerListEvent.cs index c8160fb3f7..4b30b11c1e 100644 --- a/Content.Shared/Administration/Events/FullPlayerListEvent.cs +++ b/Content.Shared/Administration/Events/FullPlayerListEvent.cs @@ -6,7 +6,7 @@ using Robust.Shared.Serialization; namespace Content.Shared.Administration.Events { [Serializable, NetSerializable] - public class FullPlayerListEvent : EntityEventArgs + public sealed class FullPlayerListEvent : EntityEventArgs { public List PlayersInfo = new(); } diff --git a/Content.Shared/Administration/Events/PlayerInfoChangedEvent.cs b/Content.Shared/Administration/Events/PlayerInfoChangedEvent.cs index 47a88ca179..d9285b1035 100644 --- a/Content.Shared/Administration/Events/PlayerInfoChangedEvent.cs +++ b/Content.Shared/Administration/Events/PlayerInfoChangedEvent.cs @@ -5,7 +5,7 @@ using Robust.Shared.Serialization; namespace Content.Shared.Administration.Events { [NetSerializable, Serializable] - public class PlayerInfoChangedEvent : EntityEventArgs + public sealed class PlayerInfoChangedEvent : EntityEventArgs { public PlayerInfo? PlayerInfo; } diff --git a/Content.Shared/Administration/GamePrototypeLoadMessage.cs b/Content.Shared/Administration/GamePrototypeLoadMessage.cs index 51f40abafd..a014e0fa83 100644 --- a/Content.Shared/Administration/GamePrototypeLoadMessage.cs +++ b/Content.Shared/Administration/GamePrototypeLoadMessage.cs @@ -3,7 +3,7 @@ using Robust.Shared.Network; namespace Content.Shared.Administration; -public class GamePrototypeLoadMessage : NetMessage +public sealed class GamePrototypeLoadMessage : NetMessage { public override MsgGroups MsgGroup => MsgGroups.String; diff --git a/Content.Shared/Administration/SetOutfitEuiState.cs b/Content.Shared/Administration/SetOutfitEuiState.cs index d16d55bb24..c8cca5abec 100644 --- a/Content.Shared/Administration/SetOutfitEuiState.cs +++ b/Content.Shared/Administration/SetOutfitEuiState.cs @@ -6,7 +6,7 @@ using Robust.Shared.GameObjects; namespace Content.Shared.Administration { [Serializable, NetSerializable] - public class SetOutfitEuiState : EuiStateBase + public sealed class SetOutfitEuiState : EuiStateBase { public EntityUid TargetEntityId; } diff --git a/Content.Shared/Alert/AlertOrderPrototype.cs b/Content.Shared/Alert/AlertOrderPrototype.cs index 0e0463dd6e..21b64705fc 100644 --- a/Content.Shared/Alert/AlertOrderPrototype.cs +++ b/Content.Shared/Alert/AlertOrderPrototype.cs @@ -12,7 +12,7 @@ namespace Content.Shared.Alert /// [Prototype("alertOrder")] [DataDefinition] - public class AlertOrderPrototype : IPrototype, IComparer, ISerializationHooks + public sealed class AlertOrderPrototype : IPrototype, IComparer, ISerializationHooks { [ViewVariables] [DataField("id", required: true)] diff --git a/Content.Shared/Alert/AlertPrototype.cs b/Content.Shared/Alert/AlertPrototype.cs index 4bbb1de323..d50dbed1a1 100644 --- a/Content.Shared/Alert/AlertPrototype.cs +++ b/Content.Shared/Alert/AlertPrototype.cs @@ -13,7 +13,7 @@ namespace Content.Shared.Alert /// An alert popup with associated icon, tooltip, and other data. /// [Prototype("alert")] - public class AlertPrototype : IPrototype, ISerializationHooks + public sealed class AlertPrototype : IPrototype, ISerializationHooks { [ViewVariables] string IPrototype.ID => AlertType.ToString(); diff --git a/Content.Shared/Alert/AlertSyncEvent.cs b/Content.Shared/Alert/AlertSyncEvent.cs index 2c605c36e9..3daf377085 100644 --- a/Content.Shared/Alert/AlertSyncEvent.cs +++ b/Content.Shared/Alert/AlertSyncEvent.cs @@ -5,7 +5,7 @@ namespace Content.Shared.Alert; /// /// Raised when the AlertSystem needs alert sources to recalculate their alert states and set them. /// -public class AlertSyncEvent : EntityEventArgs +public sealed class AlertSyncEvent : EntityEventArgs { public EntityUid Euid { get; } diff --git a/Content.Shared/Alert/AlertsComponent.cs b/Content.Shared/Alert/AlertsComponent.cs index a21e498e0f..b6f823c2c4 100644 --- a/Content.Shared/Alert/AlertsComponent.cs +++ b/Content.Shared/Alert/AlertsComponent.cs @@ -11,7 +11,7 @@ namespace Content.Shared.Alert; /// [RegisterComponent] [NetworkedComponent] -public class AlertsComponent : Component +public sealed class AlertsComponent : Component { [ViewVariables] public Dictionary Alerts = new(); } diff --git a/Content.Shared/Alert/AlertsComponentState.cs b/Content.Shared/Alert/AlertsComponentState.cs index f61bf3b8c6..9dea1d39b5 100644 --- a/Content.Shared/Alert/AlertsComponentState.cs +++ b/Content.Shared/Alert/AlertsComponentState.cs @@ -6,7 +6,7 @@ using Robust.Shared.Serialization; namespace Content.Shared.Alert; [Serializable, NetSerializable] -public class AlertsComponentState : ComponentState +public sealed class AlertsComponentState : ComponentState { public Dictionary Alerts; @@ -14,4 +14,4 @@ public class AlertsComponentState : ComponentState { Alerts = alerts; } -} \ No newline at end of file +} diff --git a/Content.Shared/Alert/ClickAlertEvent.cs b/Content.Shared/Alert/ClickAlertEvent.cs index b7a5a8e305..04938b29e2 100644 --- a/Content.Shared/Alert/ClickAlertEvent.cs +++ b/Content.Shared/Alert/ClickAlertEvent.cs @@ -8,7 +8,7 @@ namespace Content.Shared.Alert; /// A message that calls the click interaction on a alert /// [Serializable, NetSerializable] -public class ClickAlertEvent : EntityEventArgs +public sealed class ClickAlertEvent : EntityEventArgs { public readonly AlertType Type; @@ -16,4 +16,4 @@ public class ClickAlertEvent : EntityEventArgs { Type = alertType; } -} \ No newline at end of file +} diff --git a/Content.Shared/Arcade/BlockGameMessages.cs b/Content.Shared/Arcade/BlockGameMessages.cs index a6f850add5..88e1bb71d7 100644 --- a/Content.Shared/Arcade/BlockGameMessages.cs +++ b/Content.Shared/Arcade/BlockGameMessages.cs @@ -8,7 +8,7 @@ namespace Content.Shared.Arcade public static class BlockGameMessages { [Serializable, NetSerializable] - public class BlockGamePlayerActionMessage : BoundUserInterfaceMessage + public sealed class BlockGamePlayerActionMessage : BoundUserInterfaceMessage { public readonly BlockGamePlayerAction PlayerAction; public BlockGamePlayerActionMessage(BlockGamePlayerAction playerAction) @@ -18,7 +18,7 @@ namespace Content.Shared.Arcade } [Serializable, NetSerializable] - public class BlockGameVisualUpdateMessage : BoundUserInterfaceMessage + public sealed class BlockGameVisualUpdateMessage : BoundUserInterfaceMessage { public readonly BlockGameVisualType GameVisualType; public readonly BlockGameBlock[] Blocks; @@ -37,7 +37,7 @@ namespace Content.Shared.Arcade } [Serializable, NetSerializable] - public class BlockGameScoreUpdateMessage : BoundUserInterfaceMessage + public sealed class BlockGameScoreUpdateMessage : BoundUserInterfaceMessage { public readonly int Points; public BlockGameScoreUpdateMessage(int points) @@ -47,7 +47,7 @@ namespace Content.Shared.Arcade } [Serializable, NetSerializable] - public class BlockGameUserStatusMessage : BoundUserInterfaceMessage + public sealed class BlockGameUserStatusMessage : BoundUserInterfaceMessage { public readonly bool IsPlayer; @@ -57,7 +57,7 @@ namespace Content.Shared.Arcade } } - [Serializable, NetSerializable] + [Serializable, NetSerializable, Virtual] public class BlockGameSetScreenMessage : BoundUserInterfaceMessage { public readonly BlockGameScreen Screen; @@ -70,7 +70,7 @@ namespace Content.Shared.Arcade } [Serializable, NetSerializable] - public class BlockGameGameOverScreenMessage : BlockGameSetScreenMessage + public sealed class BlockGameGameOverScreenMessage : BlockGameSetScreenMessage { public readonly int FinalScore; public readonly int? LocalPlacement; @@ -93,7 +93,7 @@ namespace Content.Shared.Arcade } [Serializable, NetSerializable] - public class BlockGameHighScoreUpdateMessage : BoundUserInterfaceMessage + public sealed class BlockGameHighScoreUpdateMessage : BoundUserInterfaceMessage { public List LocalHighscores; public List GlobalHighscores; @@ -106,7 +106,7 @@ namespace Content.Shared.Arcade } [Serializable, NetSerializable] - public class HighScoreEntry : IComparable + public sealed class HighScoreEntry : IComparable { public string Name; public int Score; @@ -125,7 +125,7 @@ namespace Content.Shared.Arcade } [Serializable, NetSerializable] - public class BlockGameLevelUpdateMessage : BoundUserInterfaceMessage + public sealed class BlockGameLevelUpdateMessage : BoundUserInterfaceMessage { public readonly int Level; public BlockGameLevelUpdateMessage(int level) diff --git a/Content.Shared/Arcade/SharedSpaceVillainArcadeComponent.cs b/Content.Shared/Arcade/SharedSpaceVillainArcadeComponent.cs index 96a1f751ec..f67966b0b4 100644 --- a/Content.Shared/Arcade/SharedSpaceVillainArcadeComponent.cs +++ b/Content.Shared/Arcade/SharedSpaceVillainArcadeComponent.cs @@ -46,7 +46,7 @@ namespace Content.Shared.Arcade } [Serializable, NetSerializable] - public class SpaceVillainArcadePlayerActionMessage : BoundUserInterfaceMessage + public sealed class SpaceVillainArcadePlayerActionMessage : BoundUserInterfaceMessage { public readonly PlayerAction PlayerAction; public SpaceVillainArcadePlayerActionMessage(PlayerAction playerAction) @@ -56,7 +56,7 @@ namespace Content.Shared.Arcade } [Serializable, NetSerializable] - public class SpaceVillainArcadeMetaDataUpdateMessage : SpaceVillainArcadeDataUpdateMessage + public sealed class SpaceVillainArcadeMetaDataUpdateMessage : SpaceVillainArcadeDataUpdateMessage { public readonly string GameTitle; public readonly string EnemyName; @@ -69,7 +69,7 @@ namespace Content.Shared.Arcade } } - [Serializable, NetSerializable] + [Serializable, NetSerializable, Virtual] public class SpaceVillainArcadeDataUpdateMessage : BoundUserInterfaceMessage { public readonly int PlayerHP; diff --git a/Content.Shared/Atmos/AtmosCommandUtils.cs b/Content.Shared/Atmos/AtmosCommandUtils.cs index 8536b546c8..b0217fd489 100644 --- a/Content.Shared/Atmos/AtmosCommandUtils.cs +++ b/Content.Shared/Atmos/AtmosCommandUtils.cs @@ -2,7 +2,7 @@ using System; namespace Content.Shared.Atmos { - public class AtmosCommandUtils + public sealed class AtmosCommandUtils { /// /// Gas ID parser for atmospherics commands. diff --git a/Content.Shared/Atmos/Components/SharedGasAnalyzerComponent.cs b/Content.Shared/Atmos/Components/SharedGasAnalyzerComponent.cs index a5a730c35f..e21f8d910f 100644 --- a/Content.Shared/Atmos/Components/SharedGasAnalyzerComponent.cs +++ b/Content.Shared/Atmos/Components/SharedGasAnalyzerComponent.cs @@ -7,7 +7,7 @@ using Robust.Shared.Serialization; namespace Content.Shared.Atmos.Components { [NetworkedComponent()] - public class SharedGasAnalyzerComponent : Component + public abstract class SharedGasAnalyzerComponent : Component { [Serializable, NetSerializable] public enum GasAnalyzerUiKey @@ -16,7 +16,7 @@ namespace Content.Shared.Atmos.Components } [Serializable, NetSerializable] - public class GasAnalyzerBoundUserInterfaceState : BoundUserInterfaceState + public sealed class GasAnalyzerBoundUserInterfaceState : BoundUserInterfaceState { public float Pressure; public float Temperature; @@ -57,7 +57,7 @@ namespace Content.Shared.Atmos.Components } [Serializable, NetSerializable] - public class GasAnalyzerRefreshMessage : BoundUserInterfaceMessage + public sealed class GasAnalyzerRefreshMessage : BoundUserInterfaceMessage { public GasAnalyzerRefreshMessage() {} } @@ -71,7 +71,7 @@ namespace Content.Shared.Atmos.Components } [Serializable, NetSerializable] - public class GasAnalyzerComponentState : ComponentState + public sealed class GasAnalyzerComponentState : ComponentState { public GasAnalyzerDanger Danger; diff --git a/Content.Shared/Atmos/Components/SharedGasTankComponent.cs b/Content.Shared/Atmos/Components/SharedGasTankComponent.cs index b3d5ff3b85..bfab3e2e62 100644 --- a/Content.Shared/Atmos/Components/SharedGasTankComponent.cs +++ b/Content.Shared/Atmos/Components/SharedGasTankComponent.cs @@ -11,18 +11,18 @@ namespace Content.Shared.Atmos.Components } [Serializable, NetSerializable] - public class GasTankToggleInternalsMessage : BoundUserInterfaceMessage + public sealed class GasTankToggleInternalsMessage : BoundUserInterfaceMessage { } [Serializable, NetSerializable] - public class GasTankSetPressureMessage : BoundUserInterfaceMessage + public sealed class GasTankSetPressureMessage : BoundUserInterfaceMessage { public float Pressure { get; set; } } [Serializable, NetSerializable] - public class GasTankBoundUserInterfaceState : BoundUserInterfaceState + public sealed class GasTankBoundUserInterfaceState : BoundUserInterfaceState { public float TankPressure { get; set; } public float? OutputPressure { get; set; } diff --git a/Content.Shared/Atmos/EntitySystems/SharedAtmosphereSystem.cs b/Content.Shared/Atmos/EntitySystems/SharedAtmosphereSystem.cs index 22a0b4f5fa..32841932ba 100644 --- a/Content.Shared/Atmos/EntitySystems/SharedAtmosphereSystem.cs +++ b/Content.Shared/Atmos/EntitySystems/SharedAtmosphereSystem.cs @@ -7,7 +7,7 @@ using Robust.Shared.Utility; namespace Content.Shared.Atmos.EntitySystems { - public class SharedAtmosphereSystem : EntitySystem + public abstract class SharedAtmosphereSystem : EntitySystem { [Dependency] private readonly IPrototypeManager _prototypeManager = default!; diff --git a/Content.Shared/Atmos/Monitor/AtmosAlarmThresholdPrototype.cs b/Content.Shared/Atmos/Monitor/AtmosAlarmThresholdPrototype.cs index 3346bdbd60..37e3ad03bf 100644 --- a/Content.Shared/Atmos/Monitor/AtmosAlarmThresholdPrototype.cs +++ b/Content.Shared/Atmos/Monitor/AtmosAlarmThresholdPrototype.cs @@ -12,7 +12,7 @@ namespace Content.Shared.Atmos.Monitor // except for the range boundaries [Prototype("alarmThreshold")] [Serializable, NetSerializable] - public class AtmosAlarmThreshold : IPrototype, ISerializationHooks + public sealed class AtmosAlarmThreshold : IPrototype, ISerializationHooks { [DataField("id", required: true)] public string ID { get; } = default!; diff --git a/Content.Shared/Atmos/Monitor/Components/SharedAirAlarmComponent.cs b/Content.Shared/Atmos/Monitor/Components/SharedAirAlarmComponent.cs index 97bb4e41c9..ceec55a592 100644 --- a/Content.Shared/Atmos/Monitor/Components/SharedAirAlarmComponent.cs +++ b/Content.Shared/Atmos/Monitor/Components/SharedAirAlarmComponent.cs @@ -63,15 +63,15 @@ namespace Content.Shared.Atmos.Monitor.Components // would be nice to include the entire state here // but it's already handled by messages [Serializable, NetSerializable] - public class AirAlarmUIState : BoundUserInterfaceState + public sealed class AirAlarmUIState : BoundUserInterfaceState {} [Serializable, NetSerializable] - public class AirAlarmResyncAllDevicesMessage : BoundUserInterfaceMessage + public sealed class AirAlarmResyncAllDevicesMessage : BoundUserInterfaceMessage {} [Serializable, NetSerializable] - public class AirAlarmSetAddressMessage : BoundUserInterfaceMessage + public sealed class AirAlarmSetAddressMessage : BoundUserInterfaceMessage { public string Address { get; } @@ -82,7 +82,7 @@ namespace Content.Shared.Atmos.Monitor.Components } [Serializable, NetSerializable] - public class AirAlarmUpdateAirDataMessage : BoundUserInterfaceMessage + public sealed class AirAlarmUpdateAirDataMessage : BoundUserInterfaceMessage { public AirAlarmAirData AirData; @@ -93,7 +93,7 @@ namespace Content.Shared.Atmos.Monitor.Components } [Serializable, NetSerializable] - public class AirAlarmUpdateAlarmModeMessage : BoundUserInterfaceMessage + public sealed class AirAlarmUpdateAlarmModeMessage : BoundUserInterfaceMessage { public AirAlarmMode Mode { get; } @@ -104,7 +104,7 @@ namespace Content.Shared.Atmos.Monitor.Components } [Serializable, NetSerializable] - public class AirAlarmUpdateDeviceDataMessage : BoundUserInterfaceMessage + public sealed class AirAlarmUpdateDeviceDataMessage : BoundUserInterfaceMessage { public string Address { get; } public IAtmosDeviceData Data { get; } @@ -117,7 +117,7 @@ namespace Content.Shared.Atmos.Monitor.Components } [Serializable, NetSerializable] - public class AirAlarmUpdateAlarmThresholdMessage : BoundUserInterfaceMessage + public sealed class AirAlarmUpdateAlarmThresholdMessage : BoundUserInterfaceMessage { public AtmosAlarmThreshold Threshold { get; } public AtmosMonitorThresholdType Type { get; } diff --git a/Content.Shared/Atmos/Piping/Binary/Components/SharedGasCanisterComponent.cs b/Content.Shared/Atmos/Piping/Binary/Components/SharedGasCanisterComponent.cs index d1c05b25b3..63d1eb7a25 100644 --- a/Content.Shared/Atmos/Piping/Binary/Components/SharedGasCanisterComponent.cs +++ b/Content.Shared/Atmos/Piping/Binary/Components/SharedGasCanisterComponent.cs @@ -32,7 +32,7 @@ namespace Content.Shared.Atmos.Piping.Binary.Components /// Represents a state that can be sent to the client /// [Serializable, NetSerializable] - public class GasCanisterBoundUserInterfaceState : BoundUserInterfaceState + public sealed class GasCanisterBoundUserInterfaceState : BoundUserInterfaceState { public string CanisterLabel { get; } public float CanisterPressure { get; } @@ -59,14 +59,14 @@ namespace Content.Shared.Atmos.Piping.Binary.Components } [Serializable, NetSerializable] - public class GasCanisterHoldingTankEjectMessage : BoundUserInterfaceMessage + public sealed class GasCanisterHoldingTankEjectMessage : BoundUserInterfaceMessage { public GasCanisterHoldingTankEjectMessage() {} } [Serializable, NetSerializable] - public class GasCanisterChangeReleasePressureMessage : BoundUserInterfaceMessage + public sealed class GasCanisterChangeReleasePressureMessage : BoundUserInterfaceMessage { public float Pressure { get; } @@ -77,7 +77,7 @@ namespace Content.Shared.Atmos.Piping.Binary.Components } [Serializable, NetSerializable] - public class GasCanisterChangeReleaseValveMessage : BoundUserInterfaceMessage + public sealed class GasCanisterChangeReleaseValveMessage : BoundUserInterfaceMessage { public bool Valve { get; } diff --git a/Content.Shared/Atmos/Piping/Binary/Components/SharedGasPressurePumpComponent.cs b/Content.Shared/Atmos/Piping/Binary/Components/SharedGasPressurePumpComponent.cs index 4303c6977a..e677412e95 100644 --- a/Content.Shared/Atmos/Piping/Binary/Components/SharedGasPressurePumpComponent.cs +++ b/Content.Shared/Atmos/Piping/Binary/Components/SharedGasPressurePumpComponent.cs @@ -11,7 +11,7 @@ namespace Content.Shared.Atmos.Piping.Binary.Components } [Serializable, NetSerializable] - public class GasPressurePumpBoundUserInterfaceState : BoundUserInterfaceState + public sealed class GasPressurePumpBoundUserInterfaceState : BoundUserInterfaceState { public string PumpLabel { get; } public float OutputPressure { get; } @@ -26,7 +26,7 @@ namespace Content.Shared.Atmos.Piping.Binary.Components } [Serializable, NetSerializable] - public class GasPressurePumpToggleStatusMessage : BoundUserInterfaceMessage + public sealed class GasPressurePumpToggleStatusMessage : BoundUserInterfaceMessage { public bool Enabled { get; } @@ -37,7 +37,7 @@ namespace Content.Shared.Atmos.Piping.Binary.Components } [Serializable, NetSerializable] - public class GasPressurePumpChangeOutputPressureMessage : BoundUserInterfaceMessage + public sealed class GasPressurePumpChangeOutputPressureMessage : BoundUserInterfaceMessage { public float Pressure { get; } diff --git a/Content.Shared/Atmos/Piping/Binary/Components/SharedGasVolumePumpComponent.cs b/Content.Shared/Atmos/Piping/Binary/Components/SharedGasVolumePumpComponent.cs index 50f13decf6..095e6e2b1d 100644 --- a/Content.Shared/Atmos/Piping/Binary/Components/SharedGasVolumePumpComponent.cs +++ b/Content.Shared/Atmos/Piping/Binary/Components/SharedGasVolumePumpComponent.cs @@ -11,7 +11,7 @@ namespace Content.Shared.Atmos.Piping.Binary.Components } [Serializable, NetSerializable] - public class GasVolumePumpBoundUserInterfaceState : BoundUserInterfaceState + public sealed class GasVolumePumpBoundUserInterfaceState : BoundUserInterfaceState { public string PumpLabel { get; } public float TransferRate { get; } @@ -26,7 +26,7 @@ namespace Content.Shared.Atmos.Piping.Binary.Components } [Serializable, NetSerializable] - public class GasVolumePumpToggleStatusMessage : BoundUserInterfaceMessage + public sealed class GasVolumePumpToggleStatusMessage : BoundUserInterfaceMessage { public bool Enabled { get; } @@ -37,7 +37,7 @@ namespace Content.Shared.Atmos.Piping.Binary.Components } [Serializable, NetSerializable] - public class GasVolumePumpChangeTransferRateMessage : BoundUserInterfaceMessage + public sealed class GasVolumePumpChangeTransferRateMessage : BoundUserInterfaceMessage { public float TransferRate { get; } diff --git a/Content.Shared/Atmos/Piping/Trinary/Components/SharedGasFilterComponent.cs b/Content.Shared/Atmos/Piping/Trinary/Components/SharedGasFilterComponent.cs index a9ce0bbdf7..ac5a91d8a3 100644 --- a/Content.Shared/Atmos/Piping/Trinary/Components/SharedGasFilterComponent.cs +++ b/Content.Shared/Atmos/Piping/Trinary/Components/SharedGasFilterComponent.cs @@ -11,7 +11,7 @@ namespace Content.Shared.Atmos.Piping.Trinary.Components } [Serializable, NetSerializable] - public class GasFilterBoundUserInterfaceState : BoundUserInterfaceState + public sealed class GasFilterBoundUserInterfaceState : BoundUserInterfaceState { public string FilterLabel { get; } public float TransferRate { get; } @@ -28,7 +28,7 @@ namespace Content.Shared.Atmos.Piping.Trinary.Components } [Serializable, NetSerializable] - public class GasFilterToggleStatusMessage : BoundUserInterfaceMessage + public sealed class GasFilterToggleStatusMessage : BoundUserInterfaceMessage { public bool Enabled { get; } @@ -39,7 +39,7 @@ namespace Content.Shared.Atmos.Piping.Trinary.Components } [Serializable, NetSerializable] - public class GasFilterChangeRateMessage : BoundUserInterfaceMessage + public sealed class GasFilterChangeRateMessage : BoundUserInterfaceMessage { public float Rate { get; } @@ -50,7 +50,7 @@ namespace Content.Shared.Atmos.Piping.Trinary.Components } [Serializable, NetSerializable] - public class GasFilterSelectGasMessage : BoundUserInterfaceMessage + public sealed class GasFilterSelectGasMessage : BoundUserInterfaceMessage { public int ID { get; } diff --git a/Content.Shared/Atmos/Piping/Trinary/Components/SharedGasMixerComponent.cs b/Content.Shared/Atmos/Piping/Trinary/Components/SharedGasMixerComponent.cs index ed6ceebc71..a02650e3e4 100644 --- a/Content.Shared/Atmos/Piping/Trinary/Components/SharedGasMixerComponent.cs +++ b/Content.Shared/Atmos/Piping/Trinary/Components/SharedGasMixerComponent.cs @@ -11,7 +11,7 @@ namespace Content.Shared.Atmos.Piping.Trinary.Components } [Serializable, NetSerializable] - public class GasMixerBoundUserInterfaceState : BoundUserInterfaceState + public sealed class GasMixerBoundUserInterfaceState : BoundUserInterfaceState { public string MixerLabel { get; } public float OutputPressure { get; } @@ -29,7 +29,7 @@ namespace Content.Shared.Atmos.Piping.Trinary.Components } [Serializable, NetSerializable] - public class GasMixerToggleStatusMessage : BoundUserInterfaceMessage + public sealed class GasMixerToggleStatusMessage : BoundUserInterfaceMessage { public bool Enabled { get; } @@ -40,7 +40,7 @@ namespace Content.Shared.Atmos.Piping.Trinary.Components } [Serializable, NetSerializable] - public class GasMixerChangeOutputPressureMessage : BoundUserInterfaceMessage + public sealed class GasMixerChangeOutputPressureMessage : BoundUserInterfaceMessage { public float Pressure { get; } @@ -51,7 +51,7 @@ namespace Content.Shared.Atmos.Piping.Trinary.Components } [Serializable, NetSerializable] - public class GasMixerChangeNodePercentageMessage : BoundUserInterfaceMessage + public sealed class GasMixerChangeNodePercentageMessage : BoundUserInterfaceMessage { public float NodeOne { get; } diff --git a/Content.Shared/Atmos/Piping/Unary/Components/SharedVentPumpComponent.cs b/Content.Shared/Atmos/Piping/Unary/Components/SharedVentPumpComponent.cs index c19df1bec4..e9718fcadc 100644 --- a/Content.Shared/Atmos/Piping/Unary/Components/SharedVentPumpComponent.cs +++ b/Content.Shared/Atmos/Piping/Unary/Components/SharedVentPumpComponent.cs @@ -5,7 +5,7 @@ using Robust.Shared.Serialization; namespace Content.Shared.Atmos.Piping.Unary.Components { [Serializable, NetSerializable] - public class GasVentPumpData : IAtmosDeviceData + public sealed class GasVentPumpData : IAtmosDeviceData { public bool Enabled { get; set; } public bool Dirty { get; set; } diff --git a/Content.Shared/Atmos/Piping/Unary/Components/SharedVentScrubberComponent.cs b/Content.Shared/Atmos/Piping/Unary/Components/SharedVentScrubberComponent.cs index 7cb1eba53a..0e78814408 100644 --- a/Content.Shared/Atmos/Piping/Unary/Components/SharedVentScrubberComponent.cs +++ b/Content.Shared/Atmos/Piping/Unary/Components/SharedVentScrubberComponent.cs @@ -6,7 +6,7 @@ using Robust.Shared.Serialization; namespace Content.Shared.Atmos.Piping.Unary.Components { [Serializable, NetSerializable] - public class GasVentScrubberData : IAtmosDeviceData + public sealed class GasVentScrubberData : IAtmosDeviceData { public bool Enabled { get; set; } public bool Dirty { get; set; } diff --git a/Content.Shared/Atmos/Prototypes/GasPrototype.cs b/Content.Shared/Atmos/Prototypes/GasPrototype.cs index 790b44712b..9478275106 100644 --- a/Content.Shared/Atmos/Prototypes/GasPrototype.cs +++ b/Content.Shared/Atmos/Prototypes/GasPrototype.cs @@ -7,7 +7,7 @@ using Robust.Shared.ViewVariables; namespace Content.Shared.Atmos.Prototypes { [Prototype("gas")] - public class GasPrototype : IPrototype + public sealed class GasPrototype : IPrototype { [DataField("name")] public string Name { get; } = string.Empty; diff --git a/Content.Shared/Audio/ContentAudioSystem.cs b/Content.Shared/Audio/ContentAudioSystem.cs index 887c67daf9..693b777d69 100644 --- a/Content.Shared/Audio/ContentAudioSystem.cs +++ b/Content.Shared/Audio/ContentAudioSystem.cs @@ -4,7 +4,7 @@ using Robust.Shared.GameObjects; namespace Content.Shared.Audio { - public class ContentAudioSystem : EntitySystem + public sealed class ContentAudioSystem : EntitySystem { public override void Initialize() { diff --git a/Content.Shared/Body/Components/MechanismComponent.cs b/Content.Shared/Body/Components/MechanismComponent.cs index 5c73c2c322..4ad4a98575 100644 --- a/Content.Shared/Body/Components/MechanismComponent.cs +++ b/Content.Shared/Body/Components/MechanismComponent.cs @@ -8,7 +8,7 @@ using Robust.Shared.Serialization.Manager.Attributes; namespace Content.Shared.Body.Components { [RegisterComponent] - public class MechanismComponent : Component, ISerializationHooks + public sealed class MechanismComponent : Component, ISerializationHooks { [Dependency] private readonly IEntityManager _entMan = default!; private SharedBodyPartComponent? _part; diff --git a/Content.Shared/Body/Components/SharedBodyComponent.cs b/Content.Shared/Body/Components/SharedBodyComponent.cs index 90ba03b2b1..a73fdf620c 100644 --- a/Content.Shared/Body/Components/SharedBodyComponent.cs +++ b/Content.Shared/Body/Components/SharedBodyComponent.cs @@ -407,7 +407,7 @@ namespace Content.Shared.Body.Components } [Serializable, NetSerializable] - public class BodyComponentState : ComponentState + public sealed class BodyComponentState : ComponentState { private Dictionary? _parts; diff --git a/Content.Shared/Body/Components/SharedBodyPartComponent.cs b/Content.Shared/Body/Components/SharedBodyPartComponent.cs index e69ae1bf8b..6eaee0ebe5 100644 --- a/Content.Shared/Body/Components/SharedBodyPartComponent.cs +++ b/Content.Shared/Body/Components/SharedBodyPartComponent.cs @@ -303,7 +303,7 @@ namespace Content.Shared.Body.Components } [Serializable, NetSerializable] - public class BodyPartComponentState : ComponentState + public sealed class BodyPartComponentState : ComponentState { [NonSerialized] private List? _mechanisms; diff --git a/Content.Shared/Body/Components/SharedBodyScannerComponent.cs b/Content.Shared/Body/Components/SharedBodyScannerComponent.cs index 4b69264f0e..0e7b1b112f 100644 --- a/Content.Shared/Body/Components/SharedBodyScannerComponent.cs +++ b/Content.Shared/Body/Components/SharedBodyScannerComponent.cs @@ -15,7 +15,7 @@ namespace Content.Shared.Body.Components } [Serializable, NetSerializable] - public class BodyScannerUIState : BoundUserInterfaceState + public sealed class BodyScannerUIState : BoundUserInterfaceState { public readonly EntityUid Uid; diff --git a/Content.Shared/Body/Events/MechanismBodyEvents.cs b/Content.Shared/Body/Events/MechanismBodyEvents.cs index 2b5a71ea6f..909abac609 100644 --- a/Content.Shared/Body/Events/MechanismBodyEvents.cs +++ b/Content.Shared/Body/Events/MechanismBodyEvents.cs @@ -9,7 +9,7 @@ namespace Content.Shared.Body.Events /// /// Raised on a mechanism when it is added to a body. /// - public class AddedToBodyEvent : EntityEventArgs + public sealed class AddedToBodyEvent : EntityEventArgs { public SharedBodyComponent Body; @@ -22,7 +22,7 @@ namespace Content.Shared.Body.Events /// /// Raised on a mechanism when it is added to a body part. /// - public class AddedToPartEvent : EntityEventArgs + public sealed class AddedToPartEvent : EntityEventArgs { public SharedBodyPartComponent Part; @@ -35,7 +35,7 @@ namespace Content.Shared.Body.Events /// /// Raised on a mechanism when it is added to a body part within a body. /// - public class AddedToPartInBodyEvent : EntityEventArgs + public sealed class AddedToPartInBodyEvent : EntityEventArgs { public SharedBodyComponent Body; public SharedBodyPartComponent Part; @@ -50,7 +50,7 @@ namespace Content.Shared.Body.Events /// /// Raised on a mechanism when it is removed from a body. /// - public class RemovedFromBodyEvent : EntityEventArgs + public sealed class RemovedFromBodyEvent : EntityEventArgs { public SharedBodyComponent Old; @@ -63,7 +63,7 @@ namespace Content.Shared.Body.Events /// /// Raised on a mechanism when it is removed from a body part. /// - public class RemovedFromPartEvent : EntityEventArgs + public sealed class RemovedFromPartEvent : EntityEventArgs { public SharedBodyPartComponent Old; @@ -76,7 +76,7 @@ namespace Content.Shared.Body.Events /// /// Raised on a mechanism when it is removed from a body part within a body. /// - public class RemovedFromPartInBodyEvent : EntityEventArgs + public sealed class RemovedFromPartInBodyEvent : EntityEventArgs { public SharedBodyComponent OldBody; public SharedBodyPartComponent OldPart; diff --git a/Content.Shared/Body/Events/ShiverAttemptEvent.cs b/Content.Shared/Body/Events/ShiverAttemptEvent.cs index 61ff1f50d5..3fd433aa1b 100644 --- a/Content.Shared/Body/Events/ShiverAttemptEvent.cs +++ b/Content.Shared/Body/Events/ShiverAttemptEvent.cs @@ -2,7 +2,7 @@ namespace Content.Shared.Body.Events { - public class ShiverAttemptEvent : CancellableEntityEventArgs + public sealed class ShiverAttemptEvent : CancellableEntityEventArgs { public ShiverAttemptEvent(EntityUid uid) { diff --git a/Content.Shared/Body/Events/SweatAttemptEvent.cs b/Content.Shared/Body/Events/SweatAttemptEvent.cs index 0cd844fdfd..52b4c876a8 100644 --- a/Content.Shared/Body/Events/SweatAttemptEvent.cs +++ b/Content.Shared/Body/Events/SweatAttemptEvent.cs @@ -2,7 +2,7 @@ namespace Content.Shared.Body.Events { - public class SweatAttemptEvent : CancellableEntityEventArgs + public sealed class SweatAttemptEvent : CancellableEntityEventArgs { public SweatAttemptEvent(EntityUid uid) { diff --git a/Content.Shared/Body/Part/BodyPartSlot.cs b/Content.Shared/Body/Part/BodyPartSlot.cs index f36f039fcc..4fb5a72ff0 100644 --- a/Content.Shared/Body/Part/BodyPartSlot.cs +++ b/Content.Shared/Body/Part/BodyPartSlot.cs @@ -5,7 +5,7 @@ using Robust.Shared.ViewVariables; namespace Content.Shared.Body.Part { - public class BodyPartSlot + public sealed class BodyPartSlot { public BodyPartSlot(string id, BodyPartType partType, IEnumerable connections) { diff --git a/Content.Shared/Body/Part/IBodyPartAdded.cs b/Content.Shared/Body/Part/IBodyPartAdded.cs index fc19497209..74cbbd4da4 100644 --- a/Content.Shared/Body/Part/IBodyPartAdded.cs +++ b/Content.Shared/Body/Part/IBodyPartAdded.cs @@ -21,7 +21,7 @@ namespace Content.Shared.Body.Part [Serializable, NetSerializable] - public class BodyPartAddedEventArgs : EventArgs + public sealed class BodyPartAddedEventArgs : EventArgs { public BodyPartAddedEventArgs(string slot, SharedBodyPartComponent part) { diff --git a/Content.Shared/Body/Part/IBodyPartRemoved.cs b/Content.Shared/Body/Part/IBodyPartRemoved.cs index 034fc878bf..48910a9bcb 100644 --- a/Content.Shared/Body/Part/IBodyPartRemoved.cs +++ b/Content.Shared/Body/Part/IBodyPartRemoved.cs @@ -19,7 +19,7 @@ namespace Content.Shared.Body.Part } [Serializable, NetSerializable] - public class BodyPartRemovedEventArgs : EventArgs + public sealed class BodyPartRemovedEventArgs : EventArgs { public BodyPartRemovedEventArgs(string slot, SharedBodyPartComponent part) { diff --git a/Content.Shared/Body/Prototypes/BodyPresetPrototype.cs b/Content.Shared/Body/Prototypes/BodyPresetPrototype.cs index 7a64030af4..c83dff9e1a 100644 --- a/Content.Shared/Body/Prototypes/BodyPresetPrototype.cs +++ b/Content.Shared/Body/Prototypes/BodyPresetPrototype.cs @@ -12,7 +12,7 @@ namespace Content.Shared.Body.Prototypes /// [Prototype("bodyPreset")] [Serializable, NetSerializable] - public class BodyPresetPrototype : IPrototype + public sealed class BodyPresetPrototype : IPrototype { [ViewVariables] [DataField("id", required: true)] diff --git a/Content.Shared/Body/Prototypes/BodyTemplatePrototype.cs b/Content.Shared/Body/Prototypes/BodyTemplatePrototype.cs index 828a552a37..9432532405 100644 --- a/Content.Shared/Body/Prototypes/BodyTemplatePrototype.cs +++ b/Content.Shared/Body/Prototypes/BodyTemplatePrototype.cs @@ -13,7 +13,7 @@ namespace Content.Shared.Body.Prototypes /// [Prototype("bodyTemplate")] [Serializable, NetSerializable] - public class BodyTemplatePrototype : IPrototype, ISerializationHooks + public sealed class BodyTemplatePrototype : IPrototype, ISerializationHooks { [DataField("slots")] private Dictionary _slots = new(); diff --git a/Content.Shared/Body/Prototypes/MetabolismGroupPrototype.cs b/Content.Shared/Body/Prototypes/MetabolismGroupPrototype.cs index 6e261ddd57..62a72b1849 100644 --- a/Content.Shared/Body/Prototypes/MetabolismGroupPrototype.cs +++ b/Content.Shared/Body/Prototypes/MetabolismGroupPrototype.cs @@ -4,7 +4,7 @@ using Robust.Shared.Serialization.Manager.Attributes; namespace Content.Shared.Body.Prototypes { [Prototype("metabolismGroup")] - public class MetabolismGroupPrototype : IPrototype + public sealed class MetabolismGroupPrototype : IPrototype { [DataField("id", required: true)] public string ID { get; } = default!; diff --git a/Content.Shared/Body/Prototypes/MetabolizerTypePrototype.cs b/Content.Shared/Body/Prototypes/MetabolizerTypePrototype.cs index 9017fbb6e7..5b8c55763a 100644 --- a/Content.Shared/Body/Prototypes/MetabolizerTypePrototype.cs +++ b/Content.Shared/Body/Prototypes/MetabolizerTypePrototype.cs @@ -4,7 +4,7 @@ using Robust.Shared.Serialization.Manager.Attributes; namespace Content.Shared.Body.Prototypes { [Prototype("metabolizerType")] - public class MetabolizerTypePrototype : IPrototype + public sealed class MetabolizerTypePrototype : IPrototype { [DataField("id", required: true)] public string ID { get; } = default!; diff --git a/Content.Shared/Camera/CameraRecoilComponent.cs b/Content.Shared/Camera/CameraRecoilComponent.cs index e15a0ac300..8bb7dded43 100644 --- a/Content.Shared/Camera/CameraRecoilComponent.cs +++ b/Content.Shared/Camera/CameraRecoilComponent.cs @@ -6,7 +6,7 @@ namespace Content.Shared.Camera; [RegisterComponent] [NetworkedComponent] -public class CameraRecoilComponent : Component +public sealed class CameraRecoilComponent : Component { public Vector2 CurrentKick { get; set; } public float LastKickTime { get; set; } diff --git a/Content.Shared/Camera/CameraRecoilSystem.cs b/Content.Shared/Camera/CameraRecoilSystem.cs index 0c1e88bff1..80b66a53fc 100644 --- a/Content.Shared/Camera/CameraRecoilSystem.cs +++ b/Content.Shared/Camera/CameraRecoilSystem.cs @@ -9,7 +9,7 @@ using Robust.Shared.Serialization; namespace Content.Shared.Camera; [UsedImplicitly] -public class CameraRecoilSystem : EntitySystem +public sealed class CameraRecoilSystem : EntitySystem { /// /// Maximum rate of magnitude restore towards 0 kick. @@ -119,7 +119,7 @@ public class CameraRecoilSystem : EntitySystem [Serializable] [NetSerializable] -public class CameraKickEvent : EntityEventArgs +public sealed class CameraKickEvent : EntityEventArgs { public readonly EntityUid Euid; public readonly Vector2 Recoil; diff --git a/Content.Shared/Cargo/CargoOrderData.cs b/Content.Shared/Cargo/CargoOrderData.cs index 2f9e747951..d8c54586ad 100644 --- a/Content.Shared/Cargo/CargoOrderData.cs +++ b/Content.Shared/Cargo/CargoOrderData.cs @@ -4,7 +4,7 @@ using Robust.Shared.Serialization; namespace Content.Shared.Cargo { [NetSerializable, Serializable] - public class CargoOrderData + public sealed class CargoOrderData { public int OrderNumber; public string Requester; diff --git a/Content.Shared/Cargo/CargoProductPrototype.cs b/Content.Shared/Cargo/CargoProductPrototype.cs index e3f29e4347..aa0ee8af2f 100644 --- a/Content.Shared/Cargo/CargoProductPrototype.cs +++ b/Content.Shared/Cargo/CargoProductPrototype.cs @@ -11,7 +11,7 @@ using Robust.Shared.ViewVariables; namespace Content.Shared.Cargo { [NetSerializable, Serializable, Prototype("cargoProduct")] - public class CargoProductPrototype : IPrototype + public sealed class CargoProductPrototype : IPrototype { [DataField("name")] private string _name = string.Empty; diff --git a/Content.Shared/Cargo/Components/SharedCargoConsoleComponent.cs b/Content.Shared/Cargo/Components/SharedCargoConsoleComponent.cs index b38edb42d3..0f7404f51e 100644 --- a/Content.Shared/Cargo/Components/SharedCargoConsoleComponent.cs +++ b/Content.Shared/Cargo/Components/SharedCargoConsoleComponent.cs @@ -6,6 +6,7 @@ using Robust.Shared.Serialization; namespace Content.Shared.Cargo.Components { + [Virtual] public class SharedCargoConsoleComponent : Component { [Dependency] protected readonly IPrototypeManager PrototypeManager = default!; @@ -14,7 +15,7 @@ namespace Content.Shared.Cargo.Components /// Sends away or requests shuttle /// [Serializable, NetSerializable] - public class CargoConsoleShuttleMessage : BoundUserInterfaceMessage + public sealed class CargoConsoleShuttleMessage : BoundUserInterfaceMessage { public CargoConsoleShuttleMessage() { @@ -25,7 +26,7 @@ namespace Content.Shared.Cargo.Components /// Add order to database. /// [Serializable, NetSerializable] - public class CargoConsoleAddOrderMessage : BoundUserInterfaceMessage + public sealed class CargoConsoleAddOrderMessage : BoundUserInterfaceMessage { public string Requester; public string Reason; @@ -45,7 +46,7 @@ namespace Content.Shared.Cargo.Components /// Remove order from database. /// [Serializable, NetSerializable] - public class CargoConsoleRemoveOrderMessage : BoundUserInterfaceMessage + public sealed class CargoConsoleRemoveOrderMessage : BoundUserInterfaceMessage { public int OrderNumber; @@ -59,7 +60,7 @@ namespace Content.Shared.Cargo.Components /// Set order in database as approved. /// [Serializable, NetSerializable] - public class CargoConsoleApproveOrderMessage : BoundUserInterfaceMessage + public sealed class CargoConsoleApproveOrderMessage : BoundUserInterfaceMessage { public int OrderNumber; @@ -77,7 +78,7 @@ namespace Content.Shared.Cargo.Components } [NetSerializable, Serializable] - public class CargoConsoleInterfaceState : BoundUserInterfaceState + public sealed class CargoConsoleInterfaceState : BoundUserInterfaceState { public readonly bool RequestOnly; public readonly int BankId; diff --git a/Content.Shared/Cargo/Components/SharedCargoOrderDatabaseComponent.cs b/Content.Shared/Cargo/Components/SharedCargoOrderDatabaseComponent.cs index 6493033990..922ae50770 100644 --- a/Content.Shared/Cargo/Components/SharedCargoOrderDatabaseComponent.cs +++ b/Content.Shared/Cargo/Components/SharedCargoOrderDatabaseComponent.cs @@ -7,12 +7,12 @@ using Robust.Shared.Serialization; namespace Content.Shared.Cargo.Components { [NetworkedComponent()] - public class SharedCargoOrderDatabaseComponent : Component + public abstract class SharedCargoOrderDatabaseComponent : Component { } [NetSerializable, Serializable] - public class CargoOrderDatabaseState : ComponentState + public sealed class CargoOrderDatabaseState : ComponentState { public readonly List? Orders; diff --git a/Content.Shared/Cargo/Components/SharedGalacticMarketComponent.cs b/Content.Shared/Cargo/Components/SharedGalacticMarketComponent.cs index 8ec4be505e..5806b50dfe 100644 --- a/Content.Shared/Cargo/Components/SharedGalacticMarketComponent.cs +++ b/Content.Shared/Cargo/Components/SharedGalacticMarketComponent.cs @@ -13,7 +13,7 @@ using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototy namespace Content.Shared.Cargo.Components { [NetworkedComponent()] - public class SharedGalacticMarketComponent : Component, IEnumerable, ISerializationHooks + public abstract class SharedGalacticMarketComponent : Component, IEnumerable, ISerializationHooks { [DataField("products", customTypeSerializer: typeof(PrototypeIdListSerializer))] protected List _productIds = new(); @@ -95,7 +95,7 @@ namespace Content.Shared.Cargo.Components } [Serializable, NetSerializable] - public class GalacticMarketState : ComponentState + public sealed class GalacticMarketState : ComponentState { public List Products; public GalacticMarketState(List technologies) diff --git a/Content.Shared/CharacterAppearance/Components/HumanoidAppearanceComponent.cs b/Content.Shared/CharacterAppearance/Components/HumanoidAppearanceComponent.cs index d0b637d315..4d86f9ec2a 100644 --- a/Content.Shared/CharacterAppearance/Components/HumanoidAppearanceComponent.cs +++ b/Content.Shared/CharacterAppearance/Components/HumanoidAppearanceComponent.cs @@ -14,7 +14,7 @@ namespace Content.Shared.CharacterAppearance.Components [RegisterComponent] [Friend(typeof(SharedHumanoidAppearanceSystem), typeof(SharedMagicMirrorComponent))] [NetworkedComponent] - public class HumanoidAppearanceComponent : Component + public sealed class HumanoidAppearanceComponent : Component { [ViewVariables] public HumanoidCharacterAppearance Appearance { get; set; } = HumanoidCharacterAppearance.Default(); diff --git a/Content.Shared/CharacterAppearance/Components/SharedMagicMirrorComponent.cs b/Content.Shared/CharacterAppearance/Components/SharedMagicMirrorComponent.cs index 26482371a4..861516e14e 100644 --- a/Content.Shared/CharacterAppearance/Components/SharedMagicMirrorComponent.cs +++ b/Content.Shared/CharacterAppearance/Components/SharedMagicMirrorComponent.cs @@ -5,6 +5,7 @@ using Robust.Shared.Serialization; namespace Content.Shared.CharacterAppearance.Components { + [Virtual] public class SharedMagicMirrorComponent : Component { [Serializable, NetSerializable] @@ -14,7 +15,7 @@ namespace Content.Shared.CharacterAppearance.Components } [Serializable, NetSerializable] - public class HairSelectedMessage : BoundUserInterfaceMessage + public sealed class HairSelectedMessage : BoundUserInterfaceMessage { public readonly string HairId; public readonly bool IsFacialHair; @@ -27,7 +28,7 @@ namespace Content.Shared.CharacterAppearance.Components } [Serializable, NetSerializable] - public class HairColorSelectedMessage : BoundUserInterfaceMessage + public sealed class HairColorSelectedMessage : BoundUserInterfaceMessage { public (byte r, byte g, byte b) HairColor; public readonly bool IsFacialHair; @@ -40,7 +41,7 @@ namespace Content.Shared.CharacterAppearance.Components } [Serializable, NetSerializable] - public class EyeColorSelectedMessage : BoundUserInterfaceMessage + public sealed class EyeColorSelectedMessage : BoundUserInterfaceMessage { public (byte r, byte g, byte b) EyeColor; @@ -51,7 +52,7 @@ namespace Content.Shared.CharacterAppearance.Components } [Serializable, NetSerializable] - public class MagicMirrorInitialDataMessage : BoundUserInterfaceMessage + public sealed class MagicMirrorInitialDataMessage : BoundUserInterfaceMessage { public readonly Color HairColor; public readonly Color FacialHairColor; diff --git a/Content.Shared/CharacterAppearance/HumanoidCharacterAppearance.cs b/Content.Shared/CharacterAppearance/HumanoidCharacterAppearance.cs index bd09b43d1f..8ee66ae4ce 100644 --- a/Content.Shared/CharacterAppearance/HumanoidCharacterAppearance.cs +++ b/Content.Shared/CharacterAppearance/HumanoidCharacterAppearance.cs @@ -7,7 +7,7 @@ using Robust.Shared.Serialization; namespace Content.Shared.CharacterAppearance { [Serializable, NetSerializable] - public class HumanoidCharacterAppearance : ICharacterAppearance + public sealed class HumanoidCharacterAppearance : ICharacterAppearance { public HumanoidCharacterAppearance(string hairStyleId, Color hairColor, diff --git a/Content.Shared/CharacterAppearance/Systems/SharedHumanoidAppearanceSystem.cs b/Content.Shared/CharacterAppearance/Systems/SharedHumanoidAppearanceSystem.cs index 6bf89234af..ee4229ffc5 100644 --- a/Content.Shared/CharacterAppearance/Systems/SharedHumanoidAppearanceSystem.cs +++ b/Content.Shared/CharacterAppearance/Systems/SharedHumanoidAppearanceSystem.cs @@ -73,7 +73,7 @@ namespace Content.Shared.CharacterAppearance.Systems // Scaffolding until Body is moved to ECS. [Serializable, NetSerializable] - public class HumanoidAppearanceBodyPartAddedEvent : EntityEventArgs + public sealed class HumanoidAppearanceBodyPartAddedEvent : EntityEventArgs { public EntityUid Uid { get; } public BodyPartAddedEventArgs Args { get; } @@ -86,7 +86,7 @@ namespace Content.Shared.CharacterAppearance.Systems } [Serializable, NetSerializable] - public class HumanoidAppearanceBodyPartRemovedEvent : EntityEventArgs + public sealed class HumanoidAppearanceBodyPartRemovedEvent : EntityEventArgs { public EntityUid Uid { get; } public BodyPartRemovedEventArgs Args { get; } @@ -100,7 +100,7 @@ namespace Content.Shared.CharacterAppearance.Systems } [Serializable, NetSerializable] - public class ChangedHumanoidAppearanceEvent : EntityEventArgs + public sealed class ChangedHumanoidAppearanceEvent : EntityEventArgs { public HumanoidCharacterAppearance Appearance { get; } public Sex Sex { get; } diff --git a/Content.Shared/CharacterInfo/SharedCharacterInfoSystem.cs b/Content.Shared/CharacterInfo/SharedCharacterInfoSystem.cs index 693f56284f..a1478782bb 100644 --- a/Content.Shared/CharacterInfo/SharedCharacterInfoSystem.cs +++ b/Content.Shared/CharacterInfo/SharedCharacterInfoSystem.cs @@ -7,7 +7,7 @@ using Robust.Shared.Serialization; namespace Content.Shared.CharacterInfo; [Serializable, NetSerializable] -public class RequestCharacterInfoEvent : EntityEventArgs +public sealed class RequestCharacterInfoEvent : EntityEventArgs { public readonly EntityUid EntityUid; @@ -18,7 +18,7 @@ public class RequestCharacterInfoEvent : EntityEventArgs } [Serializable, NetSerializable] -public class CharacterInfoEvent : EntityEventArgs +public sealed class CharacterInfoEvent : EntityEventArgs { public readonly EntityUid EntityUid; public readonly string JobTitle; diff --git a/Content.Shared/Chemistry/Components/FitsInDispenserComponent.cs b/Content.Shared/Chemistry/Components/FitsInDispenserComponent.cs index 8bbb17fa2c..f4a75f6290 100644 --- a/Content.Shared/Chemistry/Components/FitsInDispenserComponent.cs +++ b/Content.Shared/Chemistry/Components/FitsInDispenserComponent.cs @@ -12,7 +12,7 @@ namespace Content.Shared.Chemistry.Components /// [RegisterComponent] [NetworkedComponent] // only needed for white-lists. Client doesn't actually need Solution data; - public class FitsInDispenserComponent : Component + public sealed class FitsInDispenserComponent : Component { /// /// Solution name that will interact with ReagentDispenserComponent. diff --git a/Content.Shared/Chemistry/Components/MovespeedModifierMetabolismComponent.cs b/Content.Shared/Chemistry/Components/MovespeedModifierMetabolismComponent.cs index 5b3b91c967..dd634ef474 100644 --- a/Content.Shared/Chemistry/Components/MovespeedModifierMetabolismComponent.cs +++ b/Content.Shared/Chemistry/Components/MovespeedModifierMetabolismComponent.cs @@ -34,7 +34,7 @@ namespace Content.Shared.Chemistry.Components } [Serializable, NetSerializable] - public class MovespeedModifierMetabolismComponentState : ComponentState + public sealed class MovespeedModifierMetabolismComponentState : ComponentState { public float WalkSpeedModifier { get; } public float SprintSpeedModifier { get; } diff --git a/Content.Shared/Chemistry/Components/SharedChemMasterComponent.cs b/Content.Shared/Chemistry/Components/SharedChemMasterComponent.cs index 641e893000..d407c5e919 100644 --- a/Content.Shared/Chemistry/Components/SharedChemMasterComponent.cs +++ b/Content.Shared/Chemistry/Components/SharedChemMasterComponent.cs @@ -13,6 +13,7 @@ namespace Content.Shared.Chemistry.Components /// /// Shared class for ChemMasterComponent. Provides a way for entities to split reagents from a beaker and produce pills and bottles via a user interface. /// + [Virtual] public class SharedChemMasterComponent : Component { [DataField("beakerSlot")] @@ -20,7 +21,7 @@ namespace Content.Shared.Chemistry.Components public const string SolutionName = "buffer"; [Serializable, NetSerializable] - public class ChemMasterBoundUserInterfaceState : BoundUserInterfaceState + public sealed class ChemMasterBoundUserInterfaceState : BoundUserInterfaceState { public readonly bool HasPower; public readonly bool HasBeaker; @@ -66,7 +67,7 @@ namespace Content.Shared.Chemistry.Components /// Message data sent from client to server when a ChemMaster ui button is pressed. /// [Serializable, NetSerializable] - public class UiActionMessage : BoundUserInterfaceMessage + public sealed class UiActionMessage : BoundUserInterfaceMessage { public readonly UiAction Action; public readonly FixedPoint2 Amount; diff --git a/Content.Shared/Chemistry/Components/Solution.Managerial.cs b/Content.Shared/Chemistry/Components/Solution.Managerial.cs index 805f083187..0b21030a92 100644 --- a/Content.Shared/Chemistry/Components/Solution.Managerial.cs +++ b/Content.Shared/Chemistry/Components/Solution.Managerial.cs @@ -7,7 +7,7 @@ using Robust.Shared.ViewVariables; namespace Content.Shared.Chemistry.Components { - public partial class Solution + public sealed partial class Solution { /// diff --git a/Content.Shared/Chemistry/Components/Solution.cs b/Content.Shared/Chemistry/Components/Solution.cs index e1b02ee62a..73fbd9d40a 100644 --- a/Content.Shared/Chemistry/Components/Solution.cs +++ b/Content.Shared/Chemistry/Components/Solution.cs @@ -22,7 +22,7 @@ namespace Content.Shared.Chemistry.Components /// [Serializable, NetSerializable] [DataDefinition] - public partial class Solution : IEnumerable, ISerializationHooks + public sealed partial class Solution : IEnumerable, ISerializationHooks { // Most objects on the station hold only 1 or 2 reagents [ViewVariables] diff --git a/Content.Shared/Chemistry/Dispenser/ReagentDispenserInventoryPrototype.cs b/Content.Shared/Chemistry/Dispenser/ReagentDispenserInventoryPrototype.cs index c28f268202..8948e10d2a 100644 --- a/Content.Shared/Chemistry/Dispenser/ReagentDispenserInventoryPrototype.cs +++ b/Content.Shared/Chemistry/Dispenser/ReagentDispenserInventoryPrototype.cs @@ -16,7 +16,7 @@ namespace Content.Shared.Chemistry.Dispenser /// machines define their inventory. /// [Serializable, NetSerializable, Prototype("reagentDispenserInventory")] - public class ReagentDispenserInventoryPrototype : IPrototype + public sealed class ReagentDispenserInventoryPrototype : IPrototype { [DataField("inventory", customTypeSerializer: typeof(PrototypeIdListSerializer))] private List _inventory = new(); diff --git a/Content.Shared/Chemistry/Dispenser/SharedReagentDispenserComponent.cs b/Content.Shared/Chemistry/Dispenser/SharedReagentDispenserComponent.cs index 59fa6eee33..b0c5a37db4 100644 --- a/Content.Shared/Chemistry/Dispenser/SharedReagentDispenserComponent.cs +++ b/Content.Shared/Chemistry/Dispenser/SharedReagentDispenserComponent.cs @@ -15,6 +15,7 @@ namespace Content.Shared.Chemistry.Dispenser /// This is useful for machines such as the chemical dispensers, booze dispensers, or soda dispensers. /// The chemicals which may be dispensed are defined by specifying a reagent pack. See for more information on that. /// + [Virtual] public class SharedReagentDispenserComponent : Component { [DataField("beakerSlot")] @@ -26,7 +27,7 @@ namespace Content.Shared.Chemistry.Dispenser protected readonly List Inventory = new(); [Serializable, NetSerializable] - public class ReagentDispenserBoundUserInterfaceState : BoundUserInterfaceState + public sealed class ReagentDispenserBoundUserInterfaceState : BoundUserInterfaceState { public readonly bool HasPower; public readonly bool HasBeaker; @@ -63,7 +64,7 @@ namespace Content.Shared.Chemistry.Dispenser /// Message data sent from client to server when a dispenser ui button is pressed. /// [Serializable, NetSerializable] - public class UiButtonPressedMessage : BoundUserInterfaceMessage + public sealed class UiButtonPressedMessage : BoundUserInterfaceMessage { public readonly UiButton Button; public readonly int DispenseIndex; //Index of dispense button / reagent being pressed. Only used when a dispense button is pressed. diff --git a/Content.Shared/Chemistry/MetabolismMovespeedModifierSystem.cs b/Content.Shared/Chemistry/MetabolismMovespeedModifierSystem.cs index 7f76bde473..f2a786546f 100644 --- a/Content.Shared/Chemistry/MetabolismMovespeedModifierSystem.cs +++ b/Content.Shared/Chemistry/MetabolismMovespeedModifierSystem.cs @@ -12,7 +12,7 @@ using static Content.Shared.Chemistry.Components.MovespeedModifierMetabolismComp namespace Content.Shared.Chemistry { // TODO CONVERT THIS TO A STATUS EFFECT!!!!!!!!!!!!!!!!!!!!!!!! - public class MetabolismMovespeedModifierSystem : EntitySystem + public sealed class MetabolismMovespeedModifierSystem : EntitySystem { [Dependency] private readonly IGameTiming _gameTiming = default!; [Dependency] private readonly MovementSpeedModifierSystem _movespeed = default!; diff --git a/Content.Shared/Chemistry/Reaction/ReactionPrototype.cs b/Content.Shared/Chemistry/Reaction/ReactionPrototype.cs index c5a50a494e..048c91e6cb 100644 --- a/Content.Shared/Chemistry/Reaction/ReactionPrototype.cs +++ b/Content.Shared/Chemistry/Reaction/ReactionPrototype.cs @@ -15,7 +15,7 @@ namespace Content.Shared.Chemistry.Reaction /// Prototype for chemical reaction definitions /// [Prototype("reaction")] - public class ReactionPrototype : IPrototype + public sealed class ReactionPrototype : IPrototype { [ViewVariables] [DataField("id", required: true)] @@ -73,7 +73,7 @@ namespace Content.Shared.Chemistry.Reaction /// Prototype for chemical reaction reactants. /// [DataDefinition] - public class ReactantPrototype + public sealed class ReactantPrototype { [DataField("amount")] private FixedPoint2 _amount = FixedPoint2.New(1); diff --git a/Content.Shared/Chemistry/Reaction/ReactiveComponent.cs b/Content.Shared/Chemistry/Reaction/ReactiveComponent.cs index 11db2a0c3a..5d59464406 100644 --- a/Content.Shared/Chemistry/Reaction/ReactiveComponent.cs +++ b/Content.Shared/Chemistry/Reaction/ReactiveComponent.cs @@ -8,7 +8,7 @@ using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototy namespace Content.Shared.Chemistry.Reaction; [RegisterComponent] -public class ReactiveComponent : Component +public sealed class ReactiveComponent : Component { /// /// A dictionary of reactive groups -> methods that work on them. @@ -27,7 +27,7 @@ public class ReactiveComponent : Component } [DataDefinition] -public class ReactiveReagentEffectEntry +public sealed class ReactiveReagentEffectEntry { [DataField("methods")] public HashSet Methods = default!; diff --git a/Content.Shared/Chemistry/Reaction/ReactiveGroupPrototype.cs b/Content.Shared/Chemistry/Reaction/ReactiveGroupPrototype.cs index d375793364..20cc233645 100644 --- a/Content.Shared/Chemistry/Reaction/ReactiveGroupPrototype.cs +++ b/Content.Shared/Chemistry/Reaction/ReactiveGroupPrototype.cs @@ -4,7 +4,7 @@ using Robust.Shared.Serialization.Manager.Attributes; namespace Content.Shared.Chemistry.Reaction; [Prototype("reactiveGroup")] -public class ReactiveGroupPrototype : IPrototype +public sealed class ReactiveGroupPrototype : IPrototype { [DataField("id", required: true)] public string ID { get; } = default!; diff --git a/Content.Shared/Chemistry/ReactiveSystem.cs b/Content.Shared/Chemistry/ReactiveSystem.cs index 7907a3980a..2bf1afa6f1 100644 --- a/Content.Shared/Chemistry/ReactiveSystem.cs +++ b/Content.Shared/Chemistry/ReactiveSystem.cs @@ -13,7 +13,7 @@ using Robust.Shared.Random; namespace Content.Shared.Chemistry { [UsedImplicitly] - public class ReactiveSystem : EntitySystem + public sealed class ReactiveSystem : EntitySystem { [Dependency] private readonly IPrototypeManager _prototypeManager = default!; [Dependency] private readonly IRobustRandom _robustRandom = default!; diff --git a/Content.Shared/Chemistry/Reagent/ReagentPrototype.cs b/Content.Shared/Chemistry/Reagent/ReagentPrototype.cs index a4cdd6b61c..67de4275ae 100644 --- a/Content.Shared/Chemistry/Reagent/ReagentPrototype.cs +++ b/Content.Shared/Chemistry/Reagent/ReagentPrototype.cs @@ -22,7 +22,7 @@ namespace Content.Shared.Chemistry.Reagent { [Prototype("reagent")] [DataDefinition] - public class ReagentPrototype : IPrototype, IInheritingPrototype + public sealed class ReagentPrototype : IPrototype, IInheritingPrototype { [ViewVariables] [DataField("id", required: true)] @@ -143,7 +143,7 @@ namespace Content.Shared.Chemistry.Reagent } [DataDefinition] - public class ReagentEffectsEntry + public sealed class ReagentEffectsEntry { /// /// Amount of reagent to metabolize, per metabolism cycle. @@ -161,7 +161,7 @@ namespace Content.Shared.Chemistry.Reagent } [DataDefinition] - public class ReactiveReagentEffectEntry + public sealed class ReactiveReagentEffectEntry { [DataField("methods", required: true)] public HashSet Methods = default!; diff --git a/Content.Shared/Chemistry/SharedTransferAmount.cs b/Content.Shared/Chemistry/SharedTransferAmount.cs index 36dbf29fc1..7f2c4fec12 100644 --- a/Content.Shared/Chemistry/SharedTransferAmount.cs +++ b/Content.Shared/Chemistry/SharedTransferAmount.cs @@ -7,7 +7,7 @@ using Robust.Shared.Serialization; namespace Content.Shared.Chemistry { [Serializable, NetSerializable] - public class TransferAmountBoundInterfaceState : BoundUserInterfaceState + public sealed class TransferAmountBoundInterfaceState : BoundUserInterfaceState { public FixedPoint2 Max; public FixedPoint2 Min; @@ -20,7 +20,7 @@ namespace Content.Shared.Chemistry } [Serializable, NetSerializable] - public class TransferAmountSetValueMessage : BoundUserInterfaceMessage + public sealed class TransferAmountSetValueMessage : BoundUserInterfaceMessage { public FixedPoint2 Value; diff --git a/Content.Shared/Cloning/AcceptCloningEuiMessage.cs b/Content.Shared/Cloning/AcceptCloningEuiMessage.cs index f919422746..3b4d02d1b2 100644 --- a/Content.Shared/Cloning/AcceptCloningEuiMessage.cs +++ b/Content.Shared/Cloning/AcceptCloningEuiMessage.cs @@ -12,7 +12,7 @@ namespace Content.Shared.Cloning } [Serializable, NetSerializable] - public class AcceptCloningChoiceMessage : EuiMessageBase + public sealed class AcceptCloningChoiceMessage : EuiMessageBase { public readonly AcceptCloningUiButton Button; diff --git a/Content.Shared/Cloning/SharedCloningPodComponent.cs b/Content.Shared/Cloning/SharedCloningPodComponent.cs index d9804b2c02..527dfb2bcc 100644 --- a/Content.Shared/Cloning/SharedCloningPodComponent.cs +++ b/Content.Shared/Cloning/SharedCloningPodComponent.cs @@ -5,10 +5,11 @@ using Robust.Shared.Serialization; namespace Content.Shared.Cloning { + [Virtual] public class SharedCloningPodComponent : Component { [Serializable, NetSerializable] - public class CloningPodBoundUserInterfaceState : BoundUserInterfaceState + public sealed class CloningPodBoundUserInterfaceState : BoundUserInterfaceState { public readonly Dictionary MindIdName; // When this state was created. @@ -64,7 +65,7 @@ namespace Content.Shared.Cloning } [Serializable, NetSerializable] - public class CloningPodUiButtonPressedMessage : BoundUserInterfaceMessage + public sealed class CloningPodUiButtonPressedMessage : BoundUserInterfaceMessage { public readonly UiButton Button; public readonly int? ScanId; diff --git a/Content.Shared/Communications/SharedCommunicationsConsoleComponent.cs b/Content.Shared/Communications/SharedCommunicationsConsoleComponent.cs index 6e1f572c89..0d3887c68e 100644 --- a/Content.Shared/Communications/SharedCommunicationsConsoleComponent.cs +++ b/Content.Shared/Communications/SharedCommunicationsConsoleComponent.cs @@ -4,12 +4,13 @@ using Robust.Shared.Serialization; namespace Content.Shared.Communications { + [Virtual] public class SharedCommunicationsConsoleComponent : Component { } [Serializable, NetSerializable] - public class CommunicationsConsoleInterfaceState : BoundUserInterfaceState + public sealed class CommunicationsConsoleInterfaceState : BoundUserInterfaceState { public readonly bool CanAnnounce; public readonly bool CanCall; @@ -26,7 +27,7 @@ namespace Content.Shared.Communications } [Serializable, NetSerializable] - public class CommunicationsConsoleAnnounceMessage : BoundUserInterfaceMessage + public sealed class CommunicationsConsoleAnnounceMessage : BoundUserInterfaceMessage { public readonly string Message; @@ -37,12 +38,12 @@ namespace Content.Shared.Communications } [Serializable, NetSerializable] - public class CommunicationsConsoleCallEmergencyShuttleMessage : BoundUserInterfaceMessage + public sealed class CommunicationsConsoleCallEmergencyShuttleMessage : BoundUserInterfaceMessage { } [Serializable, NetSerializable] - public class CommunicationsConsoleRecallEmergencyShuttleMessage : BoundUserInterfaceMessage + public sealed class CommunicationsConsoleRecallEmergencyShuttleMessage : BoundUserInterfaceMessage { } diff --git a/Content.Shared/Configurable/SharedConfigurationComponent.cs b/Content.Shared/Configurable/SharedConfigurationComponent.cs index ac5bf44b72..414f7699ed 100644 --- a/Content.Shared/Configurable/SharedConfigurationComponent.cs +++ b/Content.Shared/Configurable/SharedConfigurationComponent.cs @@ -5,10 +5,11 @@ using Robust.Shared.Serialization; namespace Content.Shared.Configurable { + [Virtual] public class SharedConfigurationComponent : Component { [Serializable, NetSerializable] - public class ConfigurationBoundUserInterfaceState : BoundUserInterfaceState + public sealed class ConfigurationBoundUserInterfaceState : BoundUserInterfaceState { public Dictionary Config { get; } @@ -22,7 +23,7 @@ namespace Content.Shared.Configurable /// Message data sent from client to server when the device configuration is updated. /// [Serializable, NetSerializable] - public class ConfigurationUpdatedMessage : BoundUserInterfaceMessage + public sealed class ConfigurationUpdatedMessage : BoundUserInterfaceMessage { public Dictionary Config { get; } @@ -33,7 +34,7 @@ namespace Content.Shared.Configurable } [Serializable, NetSerializable] - public class ValidationUpdateMessage : BoundUserInterfaceMessage + public sealed class ValidationUpdateMessage : BoundUserInterfaceMessage { public string ValidationString { get; } diff --git a/Content.Shared/Construction/Conditions/EmptyOrWindowValidInTile.cs b/Content.Shared/Construction/Conditions/EmptyOrWindowValidInTile.cs index 5c987db9f6..de9f97e5e0 100644 --- a/Content.Shared/Construction/Conditions/EmptyOrWindowValidInTile.cs +++ b/Content.Shared/Construction/Conditions/EmptyOrWindowValidInTile.cs @@ -11,7 +11,7 @@ namespace Content.Shared.Construction.Conditions { [UsedImplicitly] [DataDefinition] - public class EmptyOrWindowValidInTile : IConstructionCondition + public sealed class EmptyOrWindowValidInTile : IConstructionCondition { [DataField("tileNotBlocked")] private readonly TileNotBlocked _tileNotBlocked = new(); diff --git a/Content.Shared/Construction/Conditions/NoWindowsInTile.cs b/Content.Shared/Construction/Conditions/NoWindowsInTile.cs index 2174e18f7b..460ac86088 100644 --- a/Content.Shared/Construction/Conditions/NoWindowsInTile.cs +++ b/Content.Shared/Construction/Conditions/NoWindowsInTile.cs @@ -11,7 +11,7 @@ namespace Content.Shared.Construction.Conditions { [UsedImplicitly] [DataDefinition] - public class NoWindowsInTile : IConstructionCondition + public sealed class NoWindowsInTile : IConstructionCondition { public bool Condition(EntityUid user, EntityCoordinates location, Direction direction) { diff --git a/Content.Shared/Construction/Conditions/TileNotBlocked.cs b/Content.Shared/Construction/Conditions/TileNotBlocked.cs index 98ded48d46..f209e5d072 100644 --- a/Content.Shared/Construction/Conditions/TileNotBlocked.cs +++ b/Content.Shared/Construction/Conditions/TileNotBlocked.cs @@ -9,7 +9,7 @@ namespace Content.Shared.Construction.Conditions { [UsedImplicitly] [DataDefinition] - public class TileNotBlocked : IConstructionCondition + public sealed class TileNotBlocked : IConstructionCondition { [DataField("filterMobs")] private bool _filterMobs = false; [DataField("failIfSpace")] private bool _failIfSpace = true; diff --git a/Content.Shared/Construction/Conditions/TileType.cs b/Content.Shared/Construction/Conditions/TileType.cs index ac66d7b974..0ced74a200 100644 --- a/Content.Shared/Construction/Conditions/TileType.cs +++ b/Content.Shared/Construction/Conditions/TileType.cs @@ -11,7 +11,7 @@ namespace Content.Shared.Construction.Conditions { [UsedImplicitly] [DataDefinition] - public class TileType : IConstructionCondition + public sealed class TileType : IConstructionCondition { [DataField("targets")] public List TargetTiles { get; } = new(); diff --git a/Content.Shared/Construction/Conditions/WallmountCondition.cs b/Content.Shared/Construction/Conditions/WallmountCondition.cs index b2e3b30a13..362577d174 100644 --- a/Content.Shared/Construction/Conditions/WallmountCondition.cs +++ b/Content.Shared/Construction/Conditions/WallmountCondition.cs @@ -15,7 +15,7 @@ namespace Content.Shared.Construction.Conditions { [UsedImplicitly] [DataDefinition] - public class WallmountCondition : IConstructionCondition + public sealed class WallmountCondition : IConstructionCondition { public bool Condition(EntityUid user, EntityCoordinates location, Direction direction) { diff --git a/Content.Shared/Construction/ConstructionGraphEdge.cs b/Content.Shared/Construction/ConstructionGraphEdge.cs index 11008577f9..2a3abacb83 100644 --- a/Content.Shared/Construction/ConstructionGraphEdge.cs +++ b/Content.Shared/Construction/ConstructionGraphEdge.cs @@ -8,7 +8,7 @@ namespace Content.Shared.Construction { [Serializable] [DataDefinition] - public class ConstructionGraphEdge + public sealed class ConstructionGraphEdge { [DataField("steps")] private ConstructionGraphStep[] _steps = Array.Empty(); diff --git a/Content.Shared/Construction/ConstructionGraphNode.cs b/Content.Shared/Construction/ConstructionGraphNode.cs index 81b2c30876..49d1afe089 100644 --- a/Content.Shared/Construction/ConstructionGraphNode.cs +++ b/Content.Shared/Construction/ConstructionGraphNode.cs @@ -8,7 +8,7 @@ namespace Content.Shared.Construction { [Serializable] [DataDefinition] - public class ConstructionGraphNode + public sealed class ConstructionGraphNode { [DataField("actions", serverOnly: true)] private IGraphAction[] _actions = Array.Empty(); diff --git a/Content.Shared/Construction/Prototypes/ConstructionGraphPrototype.cs b/Content.Shared/Construction/Prototypes/ConstructionGraphPrototype.cs index 419fa84d06..6a459c21ce 100644 --- a/Content.Shared/Construction/Prototypes/ConstructionGraphPrototype.cs +++ b/Content.Shared/Construction/Prototypes/ConstructionGraphPrototype.cs @@ -11,7 +11,7 @@ using Robust.Shared.ViewVariables; namespace Content.Shared.Construction.Prototypes { [Prototype("constructionGraph")] - public class ConstructionGraphPrototype : IPrototype, ISerializationHooks + public sealed class ConstructionGraphPrototype : IPrototype, ISerializationHooks { private readonly Dictionary _nodes = new(); private readonly Dictionary<(string, string), ConstructionGraphNode[]?> _paths = new(); diff --git a/Content.Shared/Construction/Prototypes/ConstructionPrototype.cs b/Content.Shared/Construction/Prototypes/ConstructionPrototype.cs index c3dc58a086..9cbca8ef48 100644 --- a/Content.Shared/Construction/Prototypes/ConstructionPrototype.cs +++ b/Content.Shared/Construction/Prototypes/ConstructionPrototype.cs @@ -9,7 +9,7 @@ using Robust.Shared.ViewVariables; namespace Content.Shared.Construction.Prototypes { [Prototype("construction")] - public class ConstructionPrototype : IPrototype + public sealed class ConstructionPrototype : IPrototype { [DataField("conditions")] private List _conditions = new(); diff --git a/Content.Shared/Construction/SharedCanBuildWindowOnTopComponent.cs b/Content.Shared/Construction/SharedCanBuildWindowOnTopComponent.cs index d221c5fdfb..ae596d4106 100644 --- a/Content.Shared/Construction/SharedCanBuildWindowOnTopComponent.cs +++ b/Content.Shared/Construction/SharedCanBuildWindowOnTopComponent.cs @@ -3,7 +3,7 @@ namespace Content.Shared.Construction { [RegisterComponent] - public class SharedCanBuildWindowOnTopComponent : Component + public sealed class SharedCanBuildWindowOnTopComponent : Component { } } diff --git a/Content.Shared/Construction/SharedConstructionSystem.cs b/Content.Shared/Construction/SharedConstructionSystem.cs index 6052518110..8301bb2292 100644 --- a/Content.Shared/Construction/SharedConstructionSystem.cs +++ b/Content.Shared/Construction/SharedConstructionSystem.cs @@ -6,14 +6,14 @@ using Robust.Shared.Serialization; namespace Content.Shared.Construction { - public class SharedConstructionSystem : EntitySystem + public abstract class SharedConstructionSystem : EntitySystem { /// /// Sent client -> server to to tell the server that we started building /// a structure-construction. /// [Serializable, NetSerializable] - public class TryStartStructureConstructionMessage : EntityEventArgs + public sealed class TryStartStructureConstructionMessage : EntityEventArgs { /// /// Position to start building. @@ -46,7 +46,7 @@ namespace Content.Shared.Construction /// an item-construction. /// [Serializable, NetSerializable] - public class TryStartItemConstructionMessage : EntityEventArgs + public sealed class TryStartItemConstructionMessage : EntityEventArgs { /// /// The construction prototype to start building. @@ -63,7 +63,7 @@ namespace Content.Shared.Construction /// Sent server -> client to tell the client that a ghost has started to be constructed. /// [Serializable, NetSerializable] - public class AckStructureConstructionMessage : EntityEventArgs + public sealed class AckStructureConstructionMessage : EntityEventArgs { public readonly int GhostId; @@ -77,7 +77,7 @@ namespace Content.Shared.Construction /// Sent client -> server to request a specific construction guide. /// [Serializable, NetSerializable] - public class RequestConstructionGuide : EntityEventArgs + public sealed class RequestConstructionGuide : EntityEventArgs { public readonly string ConstructionId; @@ -91,7 +91,7 @@ namespace Content.Shared.Construction /// Sent server -> client as a response to a net message. /// [Serializable, NetSerializable] - public class ResponseConstructionGuide : EntityEventArgs + public sealed class ResponseConstructionGuide : EntityEventArgs { public readonly string ConstructionId; public readonly ConstructionGuide Guide; diff --git a/Content.Shared/Construction/Steps/ComponentConstructionGraphStep.cs b/Content.Shared/Construction/Steps/ComponentConstructionGraphStep.cs index 179f8b1fb2..057288359b 100644 --- a/Content.Shared/Construction/Steps/ComponentConstructionGraphStep.cs +++ b/Content.Shared/Construction/Steps/ComponentConstructionGraphStep.cs @@ -6,7 +6,7 @@ using Robust.Shared.Serialization.Manager.Attributes; namespace Content.Shared.Construction.Steps { [DataDefinition] - public class ComponentConstructionGraphStep : ArbitraryInsertConstructionGraphStep + public sealed class ComponentConstructionGraphStep : ArbitraryInsertConstructionGraphStep { [DataField("component")] public string Component { get; } = string.Empty; diff --git a/Content.Shared/Construction/Steps/ConstructionGraphStepTypeSerializer.cs b/Content.Shared/Construction/Steps/ConstructionGraphStepTypeSerializer.cs index 0ce144a67a..c60c08b653 100644 --- a/Content.Shared/Construction/Steps/ConstructionGraphStepTypeSerializer.cs +++ b/Content.Shared/Construction/Steps/ConstructionGraphStepTypeSerializer.cs @@ -10,7 +10,7 @@ using Robust.Shared.Serialization.TypeSerializers.Interfaces; namespace Content.Shared.Construction.Steps { [TypeSerializer] - public class ConstructionGraphStepTypeSerializer : ITypeReader + public sealed class ConstructionGraphStepTypeSerializer : ITypeReader { private Type? GetType(MappingDataNode node) { diff --git a/Content.Shared/Construction/Steps/MaterialConstructionGraphStep.cs b/Content.Shared/Construction/Steps/MaterialConstructionGraphStep.cs index 8ab0ead8bb..71c7b1a735 100644 --- a/Content.Shared/Construction/Steps/MaterialConstructionGraphStep.cs +++ b/Content.Shared/Construction/Steps/MaterialConstructionGraphStep.cs @@ -11,7 +11,7 @@ using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototy namespace Content.Shared.Construction.Steps { [DataDefinition] - public class MaterialConstructionGraphStep : EntityInsertConstructionGraphStep + public sealed class MaterialConstructionGraphStep : EntityInsertConstructionGraphStep { // TODO: Make this use the material system. // TODO TODO: Make the material system not shit. diff --git a/Content.Shared/Construction/Steps/MultipleTagsConstructionGraphStep.cs b/Content.Shared/Construction/Steps/MultipleTagsConstructionGraphStep.cs index af0a122c90..7d4c300bee 100644 --- a/Content.Shared/Construction/Steps/MultipleTagsConstructionGraphStep.cs +++ b/Content.Shared/Construction/Steps/MultipleTagsConstructionGraphStep.cs @@ -5,7 +5,7 @@ using Robust.Shared.Serialization.Manager.Attributes; namespace Content.Shared.Construction.Steps { - public class MultipleTagsConstructionGraphStep : ArbitraryInsertConstructionGraphStep + public sealed class MultipleTagsConstructionGraphStep : ArbitraryInsertConstructionGraphStep { [DataField("allTags")] private List? _allTags; diff --git a/Content.Shared/Construction/Steps/PrototypeConstructionGraphStep.cs b/Content.Shared/Construction/Steps/PrototypeConstructionGraphStep.cs index 317ac8ab6f..1c0ecc8359 100644 --- a/Content.Shared/Construction/Steps/PrototypeConstructionGraphStep.cs +++ b/Content.Shared/Construction/Steps/PrototypeConstructionGraphStep.cs @@ -6,7 +6,7 @@ using Robust.Shared.Serialization.Manager.Attributes; namespace Content.Shared.Construction.Steps { [DataDefinition] - public class PrototypeConstructionGraphStep : ArbitraryInsertConstructionGraphStep + public sealed class PrototypeConstructionGraphStep : ArbitraryInsertConstructionGraphStep { [DataField("prototype")] public string Prototype { get; } = string.Empty; diff --git a/Content.Shared/Construction/Steps/TagConstructionGraphStep.cs b/Content.Shared/Construction/Steps/TagConstructionGraphStep.cs index 0917905768..38429e9d1a 100644 --- a/Content.Shared/Construction/Steps/TagConstructionGraphStep.cs +++ b/Content.Shared/Construction/Steps/TagConstructionGraphStep.cs @@ -5,7 +5,7 @@ using Robust.Shared.Serialization.Manager.Attributes; namespace Content.Shared.Construction.Steps { [DataDefinition] - public class TagConstructionGraphStep : ArbitraryInsertConstructionGraphStep + public sealed class TagConstructionGraphStep : ArbitraryInsertConstructionGraphStep { [DataField("tag")] private string? _tag = null; diff --git a/Content.Shared/Construction/Steps/ToolConstructionGraphStep.cs b/Content.Shared/Construction/Steps/ToolConstructionGraphStep.cs index c5bf4b8dad..fe6c383292 100644 --- a/Content.Shared/Construction/Steps/ToolConstructionGraphStep.cs +++ b/Content.Shared/Construction/Steps/ToolConstructionGraphStep.cs @@ -12,7 +12,7 @@ using Robust.Shared.Utility; namespace Content.Shared.Construction.Steps { [DataDefinition] - public class ToolConstructionGraphStep : ConstructionGraphStep + public sealed class ToolConstructionGraphStep : ConstructionGraphStep { [DataField("tool", required:true, customTypeSerializer:typeof(PrototypeIdSerializer))] public string Tool { get; } = string.Empty; diff --git a/Content.Shared/Containers/ItemSlot/ItemSlotsComponent.cs b/Content.Shared/Containers/ItemSlot/ItemSlotsComponent.cs index b15c00feba..0c193be5f7 100644 --- a/Content.Shared/Containers/ItemSlot/ItemSlotsComponent.cs +++ b/Content.Shared/Containers/ItemSlot/ItemSlotsComponent.cs @@ -20,7 +20,7 @@ namespace Content.Shared.Containers.ItemSlots /// [RegisterComponent] [Friend(typeof(ItemSlotsSystem))] - public class ItemSlotsComponent : Component + public sealed class ItemSlotsComponent : Component { /// /// The dictionary that stores all of the item slots whose interactions will be managed by the [DataDefinition] [Friend(typeof(ItemSlotsSystem))] - public class ItemSlot + public sealed class ItemSlot { [DataField("whitelist")] public EntityWhitelist? Whitelist; diff --git a/Content.Shared/Containers/ItemSlot/ItemSlotsSystem.cs b/Content.Shared/Containers/ItemSlot/ItemSlotsSystem.cs index 106fec4e6e..69eb679a26 100644 --- a/Content.Shared/Containers/ItemSlot/ItemSlotsSystem.cs +++ b/Content.Shared/Containers/ItemSlot/ItemSlotsSystem.cs @@ -22,7 +22,7 @@ namespace Content.Shared.Containers.ItemSlots /// /// A class that handles interactions related to inserting/ejecting items into/from an item slot. /// - public class ItemSlotsSystem : EntitySystem + public sealed class ItemSlotsSystem : EntitySystem { [Dependency] private readonly ActionBlockerSystem _actionBlockerSystem = default!; [Dependency] private readonly SharedPopupSystem _popupSystem = default!; diff --git a/Content.Shared/Crayon/SharedCrayonComponent.cs b/Content.Shared/Crayon/SharedCrayonComponent.cs index 5088002cdf..daac686f88 100644 --- a/Content.Shared/Crayon/SharedCrayonComponent.cs +++ b/Content.Shared/Crayon/SharedCrayonComponent.cs @@ -22,7 +22,7 @@ namespace Content.Shared.Crayon } [Serializable, NetSerializable] - public class CrayonSelectMessage : BoundUserInterfaceMessage + public sealed class CrayonSelectMessage : BoundUserInterfaceMessage { public readonly string State; public CrayonSelectMessage(string selected) @@ -39,7 +39,7 @@ namespace Content.Shared.Crayon } [Serializable, NetSerializable] - public class CrayonComponentState : ComponentState + public sealed class CrayonComponentState : ComponentState { public readonly string Color; public readonly string State; @@ -55,7 +55,7 @@ namespace Content.Shared.Crayon } } [Serializable, NetSerializable] - public class CrayonBoundUserInterfaceState : BoundUserInterfaceState + public sealed class CrayonBoundUserInterfaceState : BoundUserInterfaceState { public string Selected; public Color Color; diff --git a/Content.Shared/Cuffs/Components/SharedCuffableComponent.cs b/Content.Shared/Cuffs/Components/SharedCuffableComponent.cs index 20ce0e4fff..4b19b158e1 100644 --- a/Content.Shared/Cuffs/Components/SharedCuffableComponent.cs +++ b/Content.Shared/Cuffs/Components/SharedCuffableComponent.cs @@ -8,7 +8,7 @@ using Robust.Shared.ViewVariables; namespace Content.Shared.Cuffs.Components { [NetworkedComponent()] - public class SharedCuffableComponent : Component + public abstract class SharedCuffableComponent : Component { [ViewVariables] public bool CanStillInteract { get; set; } = true; diff --git a/Content.Shared/Damage/Components/DamageableComponent.cs b/Content.Shared/Damage/Components/DamageableComponent.cs index 8fd5a6896c..01ef07abdc 100644 --- a/Content.Shared/Damage/Components/DamageableComponent.cs +++ b/Content.Shared/Damage/Components/DamageableComponent.cs @@ -25,7 +25,7 @@ namespace Content.Shared.Damage [RegisterComponent] [NetworkedComponent()] [Friend(typeof(DamageableSystem))] - public class DamageableComponent : Component, IRadiationAct, IExAct + public sealed class DamageableComponent : Component, IRadiationAct, IExAct { /// /// This specifies what damage types are supported by this component. @@ -116,7 +116,7 @@ namespace Content.Shared.Damage } [Serializable, NetSerializable] - public class DamageableComponentState : ComponentState + public sealed class DamageableComponentState : ComponentState { public readonly Dictionary DamageDict; public readonly string? ModifierSetId; diff --git a/Content.Shared/Damage/Components/SlowOnDamageComponent.cs b/Content.Shared/Damage/Components/SlowOnDamageComponent.cs index 1ebe6e56d7..7c02623855 100644 --- a/Content.Shared/Damage/Components/SlowOnDamageComponent.cs +++ b/Content.Shared/Damage/Components/SlowOnDamageComponent.cs @@ -9,7 +9,7 @@ namespace Content.Shared.Damage.Components // TODO It'd be nice if this could be a destructible threshold, but on the other hand, // that doesn't really work with events at all, and [RegisterComponent, NetworkedComponent] - public class SlowOnDamageComponent : Component + public sealed class SlowOnDamageComponent : Component { /// /// Damage -> movespeed dictionary. This is -damage-, not -health-. diff --git a/Content.Shared/Damage/DamageModifierSet.cs b/Content.Shared/Damage/DamageModifierSet.cs index 2294a7832a..854297824e 100644 --- a/Content.Shared/Damage/DamageModifierSet.cs +++ b/Content.Shared/Damage/DamageModifierSet.cs @@ -15,6 +15,7 @@ namespace Content.Shared.Damage /// [DataDefinition] [Serializable, NetSerializable] + [Virtual] public class DamageModifierSet { [DataField("coefficients", customTypeSerializer: typeof(PrototypeIdDictionarySerializer))] diff --git a/Content.Shared/Damage/DamageSpecifier.cs b/Content.Shared/Damage/DamageSpecifier.cs index 91cbea8619..1f91b9126a 100644 --- a/Content.Shared/Damage/DamageSpecifier.cs +++ b/Content.Shared/Damage/DamageSpecifier.cs @@ -22,7 +22,7 @@ namespace Content.Shared.Damage /// functions to apply resistance sets and supports basic math operations to modify this dictionary. /// [DataDefinition] - public class DamageSpecifier : IEquatable + public sealed class DamageSpecifier : IEquatable { [JsonPropertyName("types")] [DataField("types", customTypeSerializer: typeof(PrototypeIdDictionarySerializer))] diff --git a/Content.Shared/Damage/DamageVisualizerKeys.cs b/Content.Shared/Damage/DamageVisualizerKeys.cs index 1a7abeca4e..01a96872ec 100644 --- a/Content.Shared/Damage/DamageVisualizerKeys.cs +++ b/Content.Shared/Damage/DamageVisualizerKeys.cs @@ -14,7 +14,7 @@ namespace Content.Shared.Damage } [Serializable, NetSerializable] - public class DamageVisualizerGroupData : ICloneable + public sealed class DamageVisualizerGroupData : ICloneable { public List GroupList; diff --git a/Content.Shared/Damage/Prototypes/DamageContainerPrototype.cs b/Content.Shared/Damage/Prototypes/DamageContainerPrototype.cs index 53d67a59ff..7ce876f871 100644 --- a/Content.Shared/Damage/Prototypes/DamageContainerPrototype.cs +++ b/Content.Shared/Damage/Prototypes/DamageContainerPrototype.cs @@ -18,7 +18,7 @@ namespace Content.Shared.Damage.Prototypes /// [Prototype("damageContainer")] [Serializable, NetSerializable] - public class DamageContainerPrototype : IPrototype + public sealed class DamageContainerPrototype : IPrototype { [ViewVariables] [DataField("id", required: true)] diff --git a/Content.Shared/Damage/Prototypes/DamageGroupPrototype.cs b/Content.Shared/Damage/Prototypes/DamageGroupPrototype.cs index 14b89c47a0..b2abd8e93f 100644 --- a/Content.Shared/Damage/Prototypes/DamageGroupPrototype.cs +++ b/Content.Shared/Damage/Prototypes/DamageGroupPrototype.cs @@ -16,7 +16,7 @@ namespace Content.Shared.Damage.Prototypes /// [Prototype("damageGroup")] [Serializable, NetSerializable] - public class DamageGroupPrototype : IPrototype + public sealed class DamageGroupPrototype : IPrototype { [DataField("id", required: true)] public string ID { get; } = default!; diff --git a/Content.Shared/Damage/Prototypes/DamageModifierSetPrototype.cs b/Content.Shared/Damage/Prototypes/DamageModifierSetPrototype.cs index b79d35c8a7..af47c2209d 100644 --- a/Content.Shared/Damage/Prototypes/DamageModifierSetPrototype.cs +++ b/Content.Shared/Damage/Prototypes/DamageModifierSetPrototype.cs @@ -16,7 +16,7 @@ namespace Content.Shared.Damage.Prototypes /// just want normal data to be deserialized. /// [Prototype("damageModifierSet")] - public class DamageModifierSetPrototype : DamageModifierSet, IPrototype + public sealed class DamageModifierSetPrototype : DamageModifierSet, IPrototype { [ViewVariables] [DataField("id", required: true)] diff --git a/Content.Shared/Damage/Prototypes/DamageTypePrototype.cs b/Content.Shared/Damage/Prototypes/DamageTypePrototype.cs index 37d8365c1c..52effb9467 100644 --- a/Content.Shared/Damage/Prototypes/DamageTypePrototype.cs +++ b/Content.Shared/Damage/Prototypes/DamageTypePrototype.cs @@ -6,11 +6,11 @@ using Robust.Shared.Serialization.Manager.Attributes; namespace Content.Shared.Damage.Prototypes { /// - /// A single damage type. These types are grouped together in s. + /// A single damage type. These types are grouped together in s. /// [Prototype("damageType")] [Serializable, NetSerializable] - public class DamageTypePrototype : IPrototype + public sealed class DamageTypePrototype : IPrototype { [DataField("id", required: true)] public string ID { get; } = default!; diff --git a/Content.Shared/Damage/Prototypes/ExaminableDamagePrototype.cs b/Content.Shared/Damage/Prototypes/ExaminableDamagePrototype.cs index 3112c1fca1..ae7f55c22b 100644 --- a/Content.Shared/Damage/Prototypes/ExaminableDamagePrototype.cs +++ b/Content.Shared/Damage/Prototypes/ExaminableDamagePrototype.cs @@ -7,7 +7,7 @@ namespace Content.Shared.Damage.Prototypes; /// Prototype for examinable damage messages. /// [Prototype("examinableDamage")] -public class ExaminableDamagePrototype : IPrototype +public sealed class ExaminableDamagePrototype : IPrototype { [DataField("id", required: true)] public string ID { get; } = default!; diff --git a/Content.Shared/Damage/Systems/DamageableSystem.cs b/Content.Shared/Damage/Systems/DamageableSystem.cs index 64b973f892..e45eaa30c2 100644 --- a/Content.Shared/Damage/Systems/DamageableSystem.cs +++ b/Content.Shared/Damage/Systems/DamageableSystem.cs @@ -10,7 +10,7 @@ using Robust.Shared.Prototypes; namespace Content.Shared.Damage { - public class DamageableSystem : EntitySystem + public sealed class DamageableSystem : EntitySystem { [Dependency] private readonly IPrototypeManager _prototypeManager = default!; @@ -220,7 +220,7 @@ namespace Content.Shared.Damage /// /// For example, armor. /// - public class DamageModifyEvent : EntityEventArgs, IInventoryRelayEvent + public sealed class DamageModifyEvent : EntityEventArgs, IInventoryRelayEvent { // Whenever locational damage is a thing, this should just check only that bit of armour. public SlotFlags TargetSlots { get; } = ~SlotFlags.POCKET; @@ -233,7 +233,7 @@ namespace Content.Shared.Damage } } - public class DamageChangedEvent : EntityEventArgs + public sealed class DamageChangedEvent : EntityEventArgs { /// /// This is the component whose damage was changed. diff --git a/Content.Shared/Damage/Systems/SlowOnDamageSystem.cs b/Content.Shared/Damage/Systems/SlowOnDamageSystem.cs index 18fce7254c..99d2af251e 100644 --- a/Content.Shared/Damage/Systems/SlowOnDamageSystem.cs +++ b/Content.Shared/Damage/Systems/SlowOnDamageSystem.cs @@ -7,7 +7,7 @@ using Robust.Shared.IoC; namespace Content.Shared.Damage { - public class SlowOnDamageSystem : EntitySystem + public sealed class SlowOnDamageSystem : EntitySystem { [Dependency] private readonly MovementSpeedModifierSystem _movementSpeedModifierSystem = default!; diff --git a/Content.Shared/Dataset/DatasetPrototype.cs b/Content.Shared/Dataset/DatasetPrototype.cs index 3c024b4669..527b679b37 100644 --- a/Content.Shared/Dataset/DatasetPrototype.cs +++ b/Content.Shared/Dataset/DatasetPrototype.cs @@ -6,7 +6,7 @@ using Robust.Shared.ViewVariables; namespace Content.Shared.Dataset { [Prototype("dataset")] - public class DatasetPrototype : IPrototype + public sealed class DatasetPrototype : IPrototype { [ViewVariables] [DataField("id", required: true)] diff --git a/Content.Shared/Decals/Decal.cs b/Content.Shared/Decals/Decal.cs index edca3da7e4..0da8a228ce 100644 --- a/Content.Shared/Decals/Decal.cs +++ b/Content.Shared/Decals/Decal.cs @@ -7,7 +7,7 @@ namespace Content.Shared.Decals { [Serializable, NetSerializable] [DataDefinition] - public class Decal + public sealed class Decal { [DataField("coordinates")] public readonly Vector2 Coordinates = Vector2.Zero; [DataField("id")] public readonly string Id = string.Empty; diff --git a/Content.Shared/Decals/DecalChunkUpdateEvent.cs b/Content.Shared/Decals/DecalChunkUpdateEvent.cs index 99bbbd5a84..05a8f8e3d6 100644 --- a/Content.Shared/Decals/DecalChunkUpdateEvent.cs +++ b/Content.Shared/Decals/DecalChunkUpdateEvent.cs @@ -8,7 +8,7 @@ using Robust.Shared.Serialization; namespace Content.Shared.Decals { [Serializable, NetSerializable] - public class DecalChunkUpdateEvent : EntityEventArgs + public sealed class DecalChunkUpdateEvent : EntityEventArgs { public Dictionary>> Data = new(); } diff --git a/Content.Shared/Decals/DecalGridChunkCollectionTypeSerializer.cs b/Content.Shared/Decals/DecalGridChunkCollectionTypeSerializer.cs index 301fb2aaed..2197777263 100644 --- a/Content.Shared/Decals/DecalGridChunkCollectionTypeSerializer.cs +++ b/Content.Shared/Decals/DecalGridChunkCollectionTypeSerializer.cs @@ -12,7 +12,7 @@ using Robust.Shared.Serialization.TypeSerializers.Interfaces; namespace Content.Shared.Decals { [TypeSerializer] - public class DecalGridChunkCollectionTypeSerializer : ITypeSerializer + public sealed class DecalGridChunkCollectionTypeSerializer : ITypeSerializer { public ValidationNode Validate(ISerializationManager serializationManager, MappingDataNode node, IDependencyCollection dependencies, ISerializationContext? context = null) diff --git a/Content.Shared/Decals/DecalGridComponent.cs b/Content.Shared/Decals/DecalGridComponent.cs index 8e53c41e7c..39601f8f5f 100644 --- a/Content.Shared/Decals/DecalGridComponent.cs +++ b/Content.Shared/Decals/DecalGridComponent.cs @@ -8,7 +8,7 @@ namespace Content.Shared.Decals { [RegisterComponent] [Friend(typeof(SharedDecalSystem))] - public class DecalGridComponent : Component + public sealed class DecalGridComponent : Component { [DataField("chunkCollection", serverOnly: true)] public DecalGridChunkCollection ChunkCollection = new(new ()); diff --git a/Content.Shared/Decals/DecalPrototype.cs b/Content.Shared/Decals/DecalPrototype.cs index cd648fa162..d834a37971 100644 --- a/Content.Shared/Decals/DecalPrototype.cs +++ b/Content.Shared/Decals/DecalPrototype.cs @@ -6,7 +6,7 @@ using Robust.Shared.Utility; namespace Content.Shared.Decals { [Prototype("decal")] - public class DecalPrototype : IPrototype + public sealed class DecalPrototype : IPrototype { [DataField("id")] public string ID { get; } = null!; [DataField("sprite")] public SpriteSpecifier Sprite { get; } = SpriteSpecifier.Invalid; diff --git a/Content.Shared/Disposal/Components/SharedDisposalRouterComponent.cs b/Content.Shared/Disposal/Components/SharedDisposalRouterComponent.cs index 9c180cac01..9066971397 100644 --- a/Content.Shared/Disposal/Components/SharedDisposalRouterComponent.cs +++ b/Content.Shared/Disposal/Components/SharedDisposalRouterComponent.cs @@ -5,12 +5,12 @@ using Robust.Shared.Serialization; namespace Content.Shared.Disposal.Components { - public class SharedDisposalRouterComponent : Component + public sealed class SharedDisposalRouterComponent : Component { public static readonly Regex TagRegex = new("^[a-zA-Z0-9, ]*$", RegexOptions.Compiled); [Serializable, NetSerializable] - public class DisposalRouterUserInterfaceState : BoundUserInterfaceState + public sealed class DisposalRouterUserInterfaceState : BoundUserInterfaceState { public readonly string Tags; @@ -21,7 +21,7 @@ namespace Content.Shared.Disposal.Components } [Serializable, NetSerializable] - public class UiActionMessage : BoundUserInterfaceMessage + public sealed class UiActionMessage : BoundUserInterfaceMessage { public readonly UiAction Action; public readonly string Tags = ""; diff --git a/Content.Shared/Disposal/Components/SharedDisposalTaggerComponent.cs b/Content.Shared/Disposal/Components/SharedDisposalTaggerComponent.cs index e2b89cebf4..18e01db58d 100644 --- a/Content.Shared/Disposal/Components/SharedDisposalTaggerComponent.cs +++ b/Content.Shared/Disposal/Components/SharedDisposalTaggerComponent.cs @@ -5,12 +5,12 @@ using Robust.Shared.Serialization; namespace Content.Shared.Disposal.Components { - public class SharedDisposalTaggerComponent : Component + public sealed class SharedDisposalTaggerComponent : Component { public static readonly Regex TagRegex = new("^[a-zA-Z0-9 ]*$", RegexOptions.Compiled); [Serializable, NetSerializable] - public class DisposalTaggerUserInterfaceState : BoundUserInterfaceState + public sealed class DisposalTaggerUserInterfaceState : BoundUserInterfaceState { public readonly string Tag; @@ -21,7 +21,7 @@ namespace Content.Shared.Disposal.Components } [Serializable, NetSerializable] - public class UiActionMessage : BoundUserInterfaceMessage + public sealed class UiActionMessage : BoundUserInterfaceMessage { public readonly UiAction Action; public readonly string Tag = ""; diff --git a/Content.Shared/Disposal/Components/SharedDisposalUnitComponent.cs b/Content.Shared/Disposal/Components/SharedDisposalUnitComponent.cs index 9c7207f50c..816e55d1d3 100644 --- a/Content.Shared/Disposal/Components/SharedDisposalUnitComponent.cs +++ b/Content.Shared/Disposal/Components/SharedDisposalUnitComponent.cs @@ -83,7 +83,7 @@ namespace Content.Shared.Disposal.Components } [Serializable, NetSerializable] - public class DisposalUnitBoundUserInterfaceState : BoundUserInterfaceState, IEquatable + public sealed class DisposalUnitBoundUserInterfaceState : BoundUserInterfaceState, IEquatable { public readonly string UnitName; public readonly string UnitState; @@ -117,7 +117,7 @@ namespace Content.Shared.Disposal.Components /// Message data sent from client to server when a disposal unit ui button is pressed. /// [Serializable, NetSerializable] - public class UiButtonPressedMessage : BoundUserInterfaceMessage + public sealed class UiButtonPressedMessage : BoundUserInterfaceMessage { public readonly UiButton Button; diff --git a/Content.Shared/Doors/Components/DoorComponent.cs b/Content.Shared/Doors/Components/DoorComponent.cs index 748bf8058c..a8b0357ff3 100644 --- a/Content.Shared/Doors/Components/DoorComponent.cs +++ b/Content.Shared/Doors/Components/DoorComponent.cs @@ -209,7 +209,7 @@ public enum DoorVisuals } [Serializable, NetSerializable] -public class DoorComponentState : ComponentState +public sealed class DoorComponentState : ComponentState { public readonly DoorState DoorState; public readonly List CurrentlyCrushing; diff --git a/Content.Shared/Doors/Components/SharedAirlockComponent.cs b/Content.Shared/Doors/Components/SharedAirlockComponent.cs index 2e554014ba..f4ffabdbed 100644 --- a/Content.Shared/Doors/Components/SharedAirlockComponent.cs +++ b/Content.Shared/Doors/Components/SharedAirlockComponent.cs @@ -13,14 +13,14 @@ public abstract class SharedAirlockComponent : Component [ViewVariables(VVAccess.ReadWrite)] [DataField("safety")] public bool Safety = true; - + [ViewVariables(VVAccess.ReadWrite)] [DataField("emergencyAccess")] public bool EmergencyAccess = false; } [Serializable, NetSerializable] -public class AirlockComponentState : ComponentState +public sealed class AirlockComponentState : ComponentState { public readonly bool Safety; diff --git a/Content.Shared/Doors/DoorEvents.cs b/Content.Shared/Doors/DoorEvents.cs index f629b280de..cb5f4f3166 100644 --- a/Content.Shared/Doors/DoorEvents.cs +++ b/Content.Shared/Doors/DoorEvents.cs @@ -6,7 +6,7 @@ namespace Content.Shared.Doors /// /// Raised when the door's State variable is changed to a new variable that it was not equal to before. /// - public class DoorStateChangedEvent : EntityEventArgs + public sealed class DoorStateChangedEvent : EntityEventArgs { public readonly DoorState State; @@ -20,7 +20,7 @@ namespace Content.Shared.Doors /// Raised when the door is determining whether it is able to open. /// Cancel to stop the door from being opened. /// - public class BeforeDoorOpenedEvent : CancellableEntityEventArgs + public sealed class BeforeDoorOpenedEvent : CancellableEntityEventArgs { } @@ -33,7 +33,7 @@ namespace Content.Shared.Doors /// closed (opaque & collidable). If canceled while partially closing, it will start opening again. Useful for /// things like airlock anti-crush safety features. /// - public class BeforeDoorClosedEvent : CancellableEntityEventArgs + public sealed class BeforeDoorClosedEvent : CancellableEntityEventArgs { } @@ -41,7 +41,7 @@ namespace Content.Shared.Doors /// Called when the door is determining whether it is able to deny. /// Cancel to stop the door from being able to deny. /// - public class BeforeDoorDeniedEvent : CancellableEntityEventArgs + public sealed class BeforeDoorDeniedEvent : CancellableEntityEventArgs { } @@ -52,7 +52,7 @@ namespace Content.Shared.Doors /// /// This is called when a door decides whether it SHOULD auto close, not when it actually closes. /// - public class BeforeDoorAutoCloseEvent : CancellableEntityEventArgs + public sealed class BeforeDoorAutoCloseEvent : CancellableEntityEventArgs { } @@ -60,7 +60,7 @@ namespace Content.Shared.Doors /// Raised to determine how long the door's pry time should be modified by. /// Multiply PryTimeModifier by the desired amount. /// - public class DoorGetPryTimeModifierEvent : EntityEventArgs + public sealed class DoorGetPryTimeModifierEvent : EntityEventArgs { public float PryTimeModifier = 1.0f; } @@ -69,7 +69,7 @@ namespace Content.Shared.Doors /// Raised when an attempt to pry open the door is made. /// Cancel to stop the door from being pried open. /// - public class BeforeDoorPryEvent : CancellableEntityEventArgs + public sealed class BeforeDoorPryEvent : CancellableEntityEventArgs { public readonly EntityUid User; diff --git a/Content.Shared/DragDrop/CanDragDropOnEvent.cs b/Content.Shared/DragDrop/CanDragDropOnEvent.cs index 02c5aa95cb..b8b6ffe150 100644 --- a/Content.Shared/DragDrop/CanDragDropOnEvent.cs +++ b/Content.Shared/DragDrop/CanDragDropOnEvent.cs @@ -7,7 +7,7 @@ namespace Content.Shared.DragDrop; /// Mark this event as handled to specify that the entity can be dropped on /// and set CanDrop to true or false, depending on whether dropping the entity onto the target is actually possible. /// -public class CanDragDropOnEvent : HandledEntityEventArgs +public sealed class CanDragDropOnEvent : HandledEntityEventArgs { /// /// Entity doing the drag and drop. diff --git a/Content.Shared/DragDrop/DragDropRequestEvent.cs b/Content.Shared/DragDrop/DragDropRequestEvent.cs index 0fd2fdf33e..99abdcacbb 100644 --- a/Content.Shared/DragDrop/DragDropRequestEvent.cs +++ b/Content.Shared/DragDrop/DragDropRequestEvent.cs @@ -9,7 +9,7 @@ namespace Content.Shared.DragDrop /// Requests a drag / drop interaction to be performed /// [Serializable, NetSerializable] - public class DragDropRequestEvent : EntityEventArgs + public sealed class DragDropRequestEvent : EntityEventArgs { /// /// Location that the entity was dropped. diff --git a/Content.Shared/DragDrop/DropAttemptEvent.cs b/Content.Shared/DragDrop/DropAttemptEvent.cs index 98bdeab9fb..50e83833da 100644 --- a/Content.Shared/DragDrop/DropAttemptEvent.cs +++ b/Content.Shared/DragDrop/DropAttemptEvent.cs @@ -2,7 +2,7 @@ namespace Content.Shared.DragDrop { - public class DropAttemptEvent : CancellableEntityEventArgs + public sealed class DropAttemptEvent : CancellableEntityEventArgs { public DropAttemptEvent(EntityUid uid) { diff --git a/Content.Shared/DragDrop/IDraggable.cs b/Content.Shared/DragDrop/IDraggable.cs index 276abfa58c..b5a52cd0df 100644 --- a/Content.Shared/DragDrop/IDraggable.cs +++ b/Content.Shared/DragDrop/IDraggable.cs @@ -56,6 +56,7 @@ namespace Content.Shared.DragDrop } } + [Virtual] public class StartDragDropEvent : HandledEntityEventArgs { /// @@ -80,6 +81,7 @@ namespace Content.Shared.DragDrop } } + [Virtual] public class CanDropEvent : StartDragDropEvent { /// @@ -100,6 +102,7 @@ namespace Content.Shared.DragDrop } } + [Virtual] public class DragDropEvent : CanDropEvent { /// diff --git a/Content.Shared/Electrocution/ElectrocutionEvents.cs b/Content.Shared/Electrocution/ElectrocutionEvents.cs index d057c7c8b1..2515cfab2b 100644 --- a/Content.Shared/Electrocution/ElectrocutionEvents.cs +++ b/Content.Shared/Electrocution/ElectrocutionEvents.cs @@ -3,7 +3,7 @@ using Robust.Shared.GameObjects; namespace Content.Shared.Electrocution { - public class ElectrocutionAttemptEvent : CancellableEntityEventArgs, IInventoryRelayEvent + public sealed class ElectrocutionAttemptEvent : CancellableEntityEventArgs, IInventoryRelayEvent { public SlotFlags TargetSlots { get; } = ~SlotFlags.POCKET; @@ -19,7 +19,7 @@ namespace Content.Shared.Electrocution } } - public class ElectrocutedEvent : EntityEventArgs + public sealed class ElectrocutedEvent : EntityEventArgs { public readonly EntityUid TargetUid; public readonly EntityUid? SourceUid; diff --git a/Content.Shared/Electrocution/InsulatedComponent.cs b/Content.Shared/Electrocution/InsulatedComponent.cs index 24ba005bb2..99c09320f0 100644 --- a/Content.Shared/Electrocution/InsulatedComponent.cs +++ b/Content.Shared/Electrocution/InsulatedComponent.cs @@ -9,7 +9,7 @@ namespace Content.Shared.Electrocution { [Friend(typeof(SharedElectrocutionSystem))] [RegisterComponent, NetworkedComponent] - public class InsulatedComponent : Component + public sealed class InsulatedComponent : Component { /// /// Siemens coefficient. Zero means completely insulated. @@ -21,7 +21,7 @@ namespace Content.Shared.Electrocution // Technically, people could cheat and figure out which budget insulated gloves are gud and which ones are bad. // We might want to rethink this a little bit. [NetSerializable, Serializable] - public class InsulatedComponentState : ComponentState + public sealed class InsulatedComponentState : ComponentState { public float SiemensCoefficient { get; private set; } diff --git a/Content.Shared/Emoting/EmoteAttemptEvent.cs b/Content.Shared/Emoting/EmoteAttemptEvent.cs index bc619a1ac3..36db0236c5 100644 --- a/Content.Shared/Emoting/EmoteAttemptEvent.cs +++ b/Content.Shared/Emoting/EmoteAttemptEvent.cs @@ -2,7 +2,7 @@ namespace Content.Shared.Emoting { - public class EmoteAttemptEvent : CancellableEntityEventArgs + public sealed class EmoteAttemptEvent : CancellableEntityEventArgs { public EmoteAttemptEvent(EntityUid uid) { diff --git a/Content.Shared/Emoting/EmoteSystem.cs b/Content.Shared/Emoting/EmoteSystem.cs index ebb18d4657..810f44c1a7 100644 --- a/Content.Shared/Emoting/EmoteSystem.cs +++ b/Content.Shared/Emoting/EmoteSystem.cs @@ -2,7 +2,7 @@ namespace Content.Shared.Emoting { - public class EmoteSystem : EntitySystem + public sealed class EmoteSystem : EntitySystem { public override void Initialize() { diff --git a/Content.Shared/Emoting/SharedEmotingComponent.cs b/Content.Shared/Emoting/SharedEmotingComponent.cs index b49f16ff45..3623beef65 100644 --- a/Content.Shared/Emoting/SharedEmotingComponent.cs +++ b/Content.Shared/Emoting/SharedEmotingComponent.cs @@ -9,7 +9,7 @@ using Robust.Shared.ViewVariables; namespace Content.Shared.Emoting { [RegisterComponent, NetworkedComponent] - public class SharedEmotingComponent : Component + public sealed class SharedEmotingComponent : Component { [DataField("enabled")] private bool _enabled = true; diff --git a/Content.Shared/EntityList/EntityListPrototype.cs b/Content.Shared/EntityList/EntityListPrototype.cs index a785c265ac..df4c8ad7ba 100644 --- a/Content.Shared/EntityList/EntityListPrototype.cs +++ b/Content.Shared/EntityList/EntityListPrototype.cs @@ -9,7 +9,7 @@ using Robust.Shared.ViewVariables; namespace Content.Shared.EntityList { [Prototype("entityList")] - public class EntityListPrototype : IPrototype + public sealed class EntityListPrototype : IPrototype { [ViewVariables] [DataField("id", required: true)] diff --git a/Content.Shared/Entry/EntryPoint.cs b/Content.Shared/Entry/EntryPoint.cs index 20d0ea9365..a30db91b08 100644 --- a/Content.Shared/Entry/EntryPoint.cs +++ b/Content.Shared/Entry/EntryPoint.cs @@ -14,7 +14,7 @@ using Robust.Shared.Prototypes; namespace Content.Shared.Entry { - public class EntryPoint : GameShared + public sealed class EntryPoint : GameShared { [Dependency] private readonly IPrototypeManager _prototypeManager = default!; [Dependency] private readonly ITileDefinitionManager _tileDefinitionManager = default!; diff --git a/Content.Shared/Examine/ExamineSystemMessages.cs b/Content.Shared/Examine/ExamineSystemMessages.cs index 3928f142d5..8bccd81f24 100644 --- a/Content.Shared/Examine/ExamineSystemMessages.cs +++ b/Content.Shared/Examine/ExamineSystemMessages.cs @@ -8,7 +8,7 @@ namespace Content.Shared.Examine public static class ExamineSystemMessages { [Serializable, NetSerializable] - public class RequestExamineInfoMessage : EntityEventArgs + public sealed class RequestExamineInfoMessage : EntityEventArgs { public readonly EntityUid EntityUid; @@ -22,7 +22,7 @@ namespace Content.Shared.Examine } [Serializable, NetSerializable] - public class ExamineInfoResponseMessage : EntityEventArgs + public sealed class ExamineInfoResponseMessage : EntityEventArgs { public readonly EntityUid EntityUid; public readonly FormattedMessage Message; diff --git a/Content.Shared/Examine/ExamineSystemShared.cs b/Content.Shared/Examine/ExamineSystemShared.cs index 9ea12a774a..11f3fdf13d 100644 --- a/Content.Shared/Examine/ExamineSystemShared.cs +++ b/Content.Shared/Examine/ExamineSystemShared.cs @@ -284,7 +284,7 @@ namespace Content.Shared.Examine /// /// Raised when an entity is examined. /// - public class ExaminedEvent : EntityEventArgs + public sealed class ExaminedEvent : EntityEventArgs { /// /// The message that will be displayed as the examine text. diff --git a/Content.Shared/Flash/SharedFlashableComponent.cs b/Content.Shared/Flash/SharedFlashableComponent.cs index f933330031..7d5e5211c5 100644 --- a/Content.Shared/Flash/SharedFlashableComponent.cs +++ b/Content.Shared/Flash/SharedFlashableComponent.cs @@ -14,7 +14,7 @@ namespace Content.Shared.Flash } [Serializable, NetSerializable] - public class FlashableComponentState : ComponentState + public sealed class FlashableComponentState : ComponentState { public float Duration { get; } public TimeSpan Time { get; } diff --git a/Content.Shared/Foldable/FoldableComponent.cs b/Content.Shared/Foldable/FoldableComponent.cs index bb6bffdd21..6989b84313 100644 --- a/Content.Shared/Foldable/FoldableComponent.cs +++ b/Content.Shared/Foldable/FoldableComponent.cs @@ -17,7 +17,7 @@ namespace Content.Shared.Foldable; [RegisterComponent] [NetworkedComponent] [Friend(typeof(SharedFoldableSystem))] -public class FoldableComponent : Component +public sealed class FoldableComponent : Component { [DataField("folded")] public bool IsFolded = false; @@ -25,7 +25,7 @@ public class FoldableComponent : Component // ahhh, the ol' "state thats just a copy of the component". [Serializable, NetSerializable] -public class FoldableComponentState : ComponentState +public sealed class FoldableComponentState : ComponentState { public readonly bool IsFolded; diff --git a/Content.Shared/Follower/Components/FollowedComponent.cs b/Content.Shared/Follower/Components/FollowedComponent.cs index cd4862a007..6a3acead70 100644 --- a/Content.Shared/Follower/Components/FollowedComponent.cs +++ b/Content.Shared/Follower/Components/FollowedComponent.cs @@ -8,7 +8,7 @@ namespace Content.Shared.Follower.Components; /// Attached to entities that are currently being followed by a ghost. /// [RegisterComponent, Friend(typeof(FollowerSystem))] -public class FollowedComponent : Component +public sealed class FollowedComponent : Component { public HashSet Following = new(); } diff --git a/Content.Shared/Follower/Components/FollowerComponent.cs b/Content.Shared/Follower/Components/FollowerComponent.cs index 8913e74e9d..60174be561 100644 --- a/Content.Shared/Follower/Components/FollowerComponent.cs +++ b/Content.Shared/Follower/Components/FollowerComponent.cs @@ -5,7 +5,7 @@ namespace Content.Shared.Follower.Components; [RegisterComponent] [Friend(typeof(FollowerSystem))] -public class FollowerComponent : Component +public sealed class FollowerComponent : Component { public EntityUid Following; } diff --git a/Content.Shared/Follower/FollowerSystem.cs b/Content.Shared/Follower/FollowerSystem.cs index ae57159ca1..9083a25e60 100644 --- a/Content.Shared/Follower/FollowerSystem.cs +++ b/Content.Shared/Follower/FollowerSystem.cs @@ -9,7 +9,7 @@ using Robust.Shared.Maths; namespace Content.Shared.Follower; -public class FollowerSystem : EntitySystem +public sealed class FollowerSystem : EntitySystem { public override void Initialize() { diff --git a/Content.Shared/Friction/TileFrictionModifier.cs b/Content.Shared/Friction/TileFrictionModifier.cs index f74c074872..d49bc81034 100644 --- a/Content.Shared/Friction/TileFrictionModifier.cs +++ b/Content.Shared/Friction/TileFrictionModifier.cs @@ -10,7 +10,7 @@ namespace Content.Shared.Friction { [RegisterComponent] [ComponentProtoName("TileFrictionModifier")] - public class SharedTileFrictionModifier : Component + public sealed class SharedTileFrictionModifier : Component { /// /// Multiply the tilefriction cvar by this to get the body's actual tilefriction. @@ -43,7 +43,7 @@ namespace Content.Shared.Friction } [NetSerializable, Serializable] - protected class TileFrictionComponentState : ComponentState + protected sealed class TileFrictionComponentState : ComponentState { public float Modifier; diff --git a/Content.Shared/GameTicking/RoundRestartCleanupEvent.cs b/Content.Shared/GameTicking/RoundRestartCleanupEvent.cs index 1fc9b23fbf..ef71be9a26 100644 --- a/Content.Shared/GameTicking/RoundRestartCleanupEvent.cs +++ b/Content.Shared/GameTicking/RoundRestartCleanupEvent.cs @@ -6,7 +6,7 @@ using Robust.Shared.Serialization; namespace Content.Shared.GameTicking { [Serializable, NetSerializable] - public class RoundRestartCleanupEvent : EntityEventArgs + public sealed class RoundRestartCleanupEvent : EntityEventArgs { } } diff --git a/Content.Shared/GameTicking/SharedGameTicker.cs b/Content.Shared/GameTicking/SharedGameTicker.cs index e1b785fd70..52c5941ff3 100644 --- a/Content.Shared/GameTicking/SharedGameTicker.cs +++ b/Content.Shared/GameTicking/SharedGameTicker.cs @@ -17,17 +17,17 @@ namespace Content.Shared.GameTicking } [Serializable, NetSerializable] - public class TickerJoinLobbyEvent : EntityEventArgs + public sealed class TickerJoinLobbyEvent : EntityEventArgs { } [Serializable, NetSerializable] - public class TickerJoinGameEvent : EntityEventArgs + public sealed class TickerJoinGameEvent : EntityEventArgs { } [Serializable, NetSerializable] - public class TickerLateJoinStatusEvent : EntityEventArgs + public sealed class TickerLateJoinStatusEvent : EntityEventArgs { // TODO: Make this a replicated CVar, honestly. public bool Disallowed { get; } @@ -40,7 +40,7 @@ namespace Content.Shared.GameTicking [Serializable, NetSerializable] - public class TickerLobbyStatusEvent : EntityEventArgs + public sealed class TickerLobbyStatusEvent : EntityEventArgs { public bool IsRoundStarted { get; } public string? LobbySong { get; } @@ -60,7 +60,7 @@ namespace Content.Shared.GameTicking } [Serializable, NetSerializable] - public class TickerLobbyInfoEvent : EntityEventArgs + public sealed class TickerLobbyInfoEvent : EntityEventArgs { public string TextBlob { get; } @@ -71,7 +71,7 @@ namespace Content.Shared.GameTicking } [Serializable, NetSerializable] - public class TickerLobbyCountdownEvent : EntityEventArgs + public sealed class TickerLobbyCountdownEvent : EntityEventArgs { /// /// The game time that the game will start at. @@ -91,7 +91,7 @@ namespace Content.Shared.GameTicking } [Serializable, NetSerializable] - public class TickerLobbyReadyEvent : EntityEventArgs + public sealed class TickerLobbyReadyEvent : EntityEventArgs { /// /// The Status of the Player in the lobby (ready, observer, ...) @@ -105,7 +105,7 @@ namespace Content.Shared.GameTicking } [Serializable, NetSerializable] - public class TickerJobsAvailableEvent : EntityEventArgs + public sealed class TickerJobsAvailableEvent : EntityEventArgs { /// /// The Status of the Player in the lobby (ready, observer, ...) @@ -121,7 +121,7 @@ namespace Content.Shared.GameTicking } [Serializable, NetSerializable] - public class RoundEndMessageEvent : EntityEventArgs + public sealed class RoundEndMessageEvent : EntityEventArgs { [Serializable, NetSerializable] public struct RoundEndPlayerInfo diff --git a/Content.Shared/Ghost/Roles/GhostRolesEuiMessages.cs b/Content.Shared/Ghost/Roles/GhostRolesEuiMessages.cs index a30c6c3a1e..1c6a741029 100644 --- a/Content.Shared/Ghost/Roles/GhostRolesEuiMessages.cs +++ b/Content.Shared/Ghost/Roles/GhostRolesEuiMessages.cs @@ -14,7 +14,7 @@ namespace Content.Shared.Ghost.Roles } [NetSerializable, Serializable] - public class GhostRolesEuiState : EuiStateBase + public sealed class GhostRolesEuiState : EuiStateBase { public GhostRoleInfo[] GhostRoles { get; } @@ -25,7 +25,7 @@ namespace Content.Shared.Ghost.Roles } [NetSerializable, Serializable] - public class GhostRoleTakeoverRequestMessage : EuiMessageBase + public sealed class GhostRoleTakeoverRequestMessage : EuiMessageBase { public uint Identifier { get; } @@ -36,7 +36,7 @@ namespace Content.Shared.Ghost.Roles } [NetSerializable, Serializable] - public class GhostRoleWindowCloseMessage : EuiMessageBase + public sealed class GhostRoleWindowCloseMessage : EuiMessageBase { } } diff --git a/Content.Shared/Ghost/Roles/MakeGhostRoleEuiState.cs b/Content.Shared/Ghost/Roles/MakeGhostRoleEuiState.cs index c28f338d6f..8f1df4f3ea 100644 --- a/Content.Shared/Ghost/Roles/MakeGhostRoleEuiState.cs +++ b/Content.Shared/Ghost/Roles/MakeGhostRoleEuiState.cs @@ -6,7 +6,7 @@ using Robust.Shared.Serialization; namespace Content.Shared.Ghost.Roles { [Serializable, NetSerializable] - public class MakeGhostRoleEuiState : EuiStateBase + public sealed class MakeGhostRoleEuiState : EuiStateBase { public MakeGhostRoleEuiState(EntityUid entityUid) { diff --git a/Content.Shared/Ghost/Roles/MakeGhostRoleWindowClosedMessage.cs b/Content.Shared/Ghost/Roles/MakeGhostRoleWindowClosedMessage.cs index 68754df2a8..dfcea80af3 100644 --- a/Content.Shared/Ghost/Roles/MakeGhostRoleWindowClosedMessage.cs +++ b/Content.Shared/Ghost/Roles/MakeGhostRoleWindowClosedMessage.cs @@ -5,7 +5,7 @@ using Robust.Shared.Serialization; namespace Content.Shared.Ghost.Roles { [Serializable, NetSerializable] - public class MakeGhostRoleWindowClosedMessage : EuiMessageBase + public sealed class MakeGhostRoleWindowClosedMessage : EuiMessageBase { } } diff --git a/Content.Shared/Ghost/Roles/SharedGhostRoleSystem.cs b/Content.Shared/Ghost/Roles/SharedGhostRoleSystem.cs index b3efb6c3ec..d7d2582211 100644 --- a/Content.Shared/Ghost/Roles/SharedGhostRoleSystem.cs +++ b/Content.Shared/Ghost/Roles/SharedGhostRoleSystem.cs @@ -5,7 +5,7 @@ using Robust.Shared.Serialization; namespace Content.Shared.Ghost.Roles { [Serializable, NetSerializable] - public class GhostRole + public sealed class GhostRole { public string Name { get; set; } = string.Empty; public string Description { get; set; } = string.Empty; diff --git a/Content.Shared/Ghost/SharedGhostComponent.cs b/Content.Shared/Ghost/SharedGhostComponent.cs index e081f5dbc5..58eda01faf 100644 --- a/Content.Shared/Ghost/SharedGhostComponent.cs +++ b/Content.Shared/Ghost/SharedGhostComponent.cs @@ -9,7 +9,7 @@ using Robust.Shared.ViewVariables; namespace Content.Shared.Ghost { [NetworkedComponent()] - public class SharedGhostComponent : Component + public abstract class SharedGhostComponent : Component { [ViewVariables(VVAccess.ReadWrite)] public bool CanGhostInteract @@ -65,7 +65,7 @@ namespace Content.Shared.Ghost } [Serializable, NetSerializable] - public class GhostComponentState : ComponentState + public sealed class GhostComponentState : ComponentState { public bool CanReturnToBody { get; } public bool CanGhostInteract { get; } diff --git a/Content.Shared/Ghost/SharedGhostSystem.cs b/Content.Shared/Ghost/SharedGhostSystem.cs index 290c0a92e6..0630f09df1 100644 --- a/Content.Shared/Ghost/SharedGhostSystem.cs +++ b/Content.Shared/Ghost/SharedGhostSystem.cs @@ -43,7 +43,7 @@ namespace Content.Shared.Ghost /// Response is sent via /// [Serializable, NetSerializable] - public class GhostWarpsRequestEvent : EntityEventArgs + public sealed class GhostWarpsRequestEvent : EntityEventArgs { } @@ -52,7 +52,7 @@ namespace Content.Shared.Ghost /// Contains players, and locations a ghost can warp to /// [Serializable, NetSerializable] - public class GhostWarpsResponseEvent : EntityEventArgs + public sealed class GhostWarpsResponseEvent : EntityEventArgs { public GhostWarpsResponseEvent(List locations, Dictionary players) { @@ -75,7 +75,7 @@ namespace Content.Shared.Ghost /// A client to server request for their ghost to be warped to a location /// [Serializable, NetSerializable] - public class GhostWarpToLocationRequestEvent : EntityEventArgs + public sealed class GhostWarpToLocationRequestEvent : EntityEventArgs { /// /// The location name to warp to. @@ -92,7 +92,7 @@ namespace Content.Shared.Ghost /// A client to server request for their ghost to be warped to an entity /// [Serializable, NetSerializable] - public class GhostWarpToTargetRequestEvent : EntityEventArgs + public sealed class GhostWarpToTargetRequestEvent : EntityEventArgs { public EntityUid Target { get; } @@ -106,7 +106,7 @@ namespace Content.Shared.Ghost /// A client to server request for their ghost to return to body /// [Serializable, NetSerializable] - public class GhostReturnToBodyRequest : EntityEventArgs + public sealed class GhostReturnToBodyRequest : EntityEventArgs { } @@ -114,7 +114,7 @@ namespace Content.Shared.Ghost /// A server to client update with the available ghost role count /// [Serializable, NetSerializable] - public class GhostUpdateGhostRoleCountEvent : EntityEventArgs + public sealed class GhostUpdateGhostRoleCountEvent : EntityEventArgs { public int AvailableGhostRoles { get; } diff --git a/Content.Shared/Gravity/GravityChangedMessage.cs b/Content.Shared/Gravity/GravityChangedMessage.cs index b8955f1d6f..a25926db96 100644 --- a/Content.Shared/Gravity/GravityChangedMessage.cs +++ b/Content.Shared/Gravity/GravityChangedMessage.cs @@ -3,7 +3,7 @@ using Robust.Shared.Map; namespace Content.Shared.Gravity { - public class GravityChangedMessage : EntityEventArgs + public sealed class GravityChangedMessage : EntityEventArgs { public GravityChangedMessage(GridId changedGridIndex, bool newGravityState) { diff --git a/Content.Shared/Gravity/SharedGravityGeneratorComponent.cs b/Content.Shared/Gravity/SharedGravityGeneratorComponent.cs index b65269ea13..50fc0b2a8d 100644 --- a/Content.Shared/Gravity/SharedGravityGeneratorComponent.cs +++ b/Content.Shared/Gravity/SharedGravityGeneratorComponent.cs @@ -6,13 +6,14 @@ using Robust.Shared.Serialization; namespace Content.Shared.Gravity { [NetworkedComponent()] + [Virtual] public class SharedGravityGeneratorComponent : Component { /// /// Sent to the server to set whether the generator should be on or off /// [Serializable, NetSerializable] - public class SwitchGeneratorMessage : BoundUserInterfaceMessage + public sealed class SwitchGeneratorMessage : BoundUserInterfaceMessage { public bool On; @@ -23,7 +24,7 @@ namespace Content.Shared.Gravity } [Serializable, NetSerializable] - public class GeneratorState : BoundUserInterfaceState + public sealed class GeneratorState : BoundUserInterfaceState { public bool On; // 0 -> 255 diff --git a/Content.Shared/HUD/HudThemePrototype.cs b/Content.Shared/HUD/HudThemePrototype.cs index 3113166b7f..a8b244c43d 100644 --- a/Content.Shared/HUD/HudThemePrototype.cs +++ b/Content.Shared/HUD/HudThemePrototype.cs @@ -4,7 +4,7 @@ using Robust.Shared.Serialization.Manager.Attributes; namespace Content.Shared.HUD { [Prototype("hudTheme")] - public class HudThemePrototype : IPrototype + public sealed class HudThemePrototype : IPrototype { [DataField("name", required: true)] public string Name { get; } = string.Empty; diff --git a/Content.Shared/Hands/Components/SharedHandsComponent.cs b/Content.Shared/Hands/Components/SharedHandsComponent.cs index 777c79c07d..d1de5c9d52 100644 --- a/Content.Shared/Hands/Components/SharedHandsComponent.cs +++ b/Content.Shared/Hands/Components/SharedHandsComponent.cs @@ -716,7 +716,7 @@ namespace Content.Shared.Hands.Components } [Serializable, NetSerializable] - public class HandsVisualState : ICloneable + public sealed class HandsVisualState : ICloneable { public List Hands { get; } = new(); @@ -750,7 +750,7 @@ namespace Content.Shared.Hands.Components #endregion [Serializable, NetSerializable] - public class Hand + public sealed class Hand { [ViewVariables] public string Name { get; } @@ -803,7 +803,7 @@ namespace Content.Shared.Hands.Components /// A message that calls the activate interaction on the item in the specified hand. /// [Serializable, NetSerializable] - public class ActivateInHandMsg : EntityEventArgs + public sealed class ActivateInHandMsg : EntityEventArgs { public string HandName { get; } @@ -817,7 +817,7 @@ namespace Content.Shared.Hands.Components /// Uses the item in the active hand on the item in the specified hand. /// [Serializable, NetSerializable] - public class ClientInteractUsingInHandMsg : EntityEventArgs + public sealed class ClientInteractUsingInHandMsg : EntityEventArgs { public string HandName { get; } @@ -831,7 +831,7 @@ namespace Content.Shared.Hands.Components /// Moves an item from one hand to the active hand. /// [Serializable, NetSerializable] - public class MoveItemFromHandMsg : EntityEventArgs + public sealed class MoveItemFromHandMsg : EntityEventArgs { public string HandName { get; } @@ -851,7 +851,7 @@ namespace Content.Shared.Hands.Components Right } - public class HandCountChangedEvent : EntityEventArgs + public sealed class HandCountChangedEvent : EntityEventArgs { public HandCountChangedEvent(EntityUid sender) { diff --git a/Content.Shared/Hands/HandEvents.cs b/Content.Shared/Hands/HandEvents.cs index a2c727cf47..1ecba28b93 100644 --- a/Content.Shared/Hands/HandEvents.cs +++ b/Content.Shared/Hands/HandEvents.cs @@ -12,7 +12,7 @@ namespace Content.Shared.Hands /// Raised when an entity item in a hand is deselected. /// [PublicAPI] - public class HandDeselectedEvent : HandledEntityEventArgs + public sealed class HandDeselectedEvent : HandledEntityEventArgs { /// /// Entity that owns the deselected hand. @@ -35,7 +35,7 @@ namespace Content.Shared.Hands /// Raised when an item entity held by a hand is selected. /// [PublicAPI] - public class HandSelectedEvent : HandledEntityEventArgs + public sealed class HandSelectedEvent : HandledEntityEventArgs { /// /// Entity that owns the selected hand. @@ -55,7 +55,7 @@ namespace Content.Shared.Hands } [Serializable, NetSerializable] - public class RequestSetHandEvent : EntityEventArgs + public sealed class RequestSetHandEvent : EntityEventArgs { /// /// The hand to be swapped to. @@ -69,7 +69,7 @@ namespace Content.Shared.Hands } [Serializable, NetSerializable] - public class PickupAnimationEvent : EntityEventArgs + public sealed class PickupAnimationEvent : EntityEventArgs { public EntityUid ItemUid { get; } public EntityCoordinates InitialPosition { get; } @@ -88,7 +88,7 @@ namespace Content.Shared.Hands /// Raised directed on both the blocking entity and user when /// a virtual hand item is deleted. /// - public class VirtualItemDeletedEvent : EntityEventArgs + public sealed class VirtualItemDeletedEvent : EntityEventArgs { public EntityUid BlockingEntity; public EntityUid User; @@ -104,7 +104,7 @@ namespace Content.Shared.Hands /// Raised when putting an entity into a hand slot /// [PublicAPI] - public class EquippedHandEvent : HandledEntityEventArgs + public sealed class EquippedHandEvent : HandledEntityEventArgs { /// /// Entity that equipped the item. @@ -133,7 +133,7 @@ namespace Content.Shared.Hands /// Raised when removing an entity from an inventory slot. /// [PublicAPI] - public class UnequippedHandEvent : HandledEntityEventArgs + public sealed class UnequippedHandEvent : HandledEntityEventArgs { /// /// Entity that equipped the item. diff --git a/Content.Shared/Instruments/SharedInstrumentComponent.cs b/Content.Shared/Instruments/SharedInstrumentComponent.cs index 1400e72ed7..b9d05acd74 100644 --- a/Content.Shared/Instruments/SharedInstrumentComponent.cs +++ b/Content.Shared/Instruments/SharedInstrumentComponent.cs @@ -10,7 +10,7 @@ using Robust.Shared.ViewVariables; namespace Content.Shared.Instruments; [NetworkedComponent, Friend(typeof(SharedInstrumentSystem))] -public class SharedInstrumentComponent : Component +public abstract class SharedInstrumentComponent : Component { [ViewVariables] public bool Playing { get; set; } @@ -42,7 +42,7 @@ public class SharedInstrumentComponent : Component /// This message is sent to the client to completely stop midi input and midi playback. /// [Serializable, NetSerializable] -public class InstrumentStopMidiEvent : EntityEventArgs +public sealed class InstrumentStopMidiEvent : EntityEventArgs { public EntityUid Uid { get; } @@ -56,7 +56,7 @@ public class InstrumentStopMidiEvent : EntityEventArgs /// This message is sent to the client to start the synth. /// [Serializable, NetSerializable] -public class InstrumentStartMidiEvent : EntityEventArgs +public sealed class InstrumentStartMidiEvent : EntityEventArgs { public EntityUid Uid { get; } @@ -70,7 +70,7 @@ public class InstrumentStartMidiEvent : EntityEventArgs /// This message carries a MidiEvent to be played on clients. /// [Serializable, NetSerializable] -public class InstrumentMidiEventEvent : EntityEventArgs +public sealed class InstrumentMidiEventEvent : EntityEventArgs { public EntityUid Uid { get; } public MidiEvent[] MidiEvent { get; } @@ -83,7 +83,7 @@ public class InstrumentMidiEventEvent : EntityEventArgs } [Serializable, NetSerializable] -public class InstrumentState : ComponentState +public sealed class InstrumentState : ComponentState { public bool Playing { get; } public byte InstrumentProgram { get; } diff --git a/Content.Shared/Interaction/BeforeInteract.cs b/Content.Shared/Interaction/BeforeInteract.cs index 156507fd87..76318e229f 100644 --- a/Content.Shared/Interaction/BeforeInteract.cs +++ b/Content.Shared/Interaction/BeforeInteract.cs @@ -8,7 +8,7 @@ namespace Content.Shared.Interaction /// Raised directed on the used object when clicking on another object before an interaction is handled. /// [PublicAPI] - public class BeforeRangedInteractEvent : HandledEntityEventArgs + public sealed class BeforeRangedInteractEvent : HandledEntityEventArgs { /// /// Entity that triggered the interaction. diff --git a/Content.Shared/Interaction/Events/AttackAttemptEvent.cs b/Content.Shared/Interaction/Events/AttackAttemptEvent.cs index 9f27a75fa7..c385aaf7e1 100644 --- a/Content.Shared/Interaction/Events/AttackAttemptEvent.cs +++ b/Content.Shared/Interaction/Events/AttackAttemptEvent.cs @@ -2,7 +2,7 @@ namespace Content.Shared.Interaction.Events { - public class AttackAttemptEvent : CancellableEntityEventArgs + public sealed class AttackAttemptEvent : CancellableEntityEventArgs { public EntityUid Uid { get; } public EntityUid? Target { get; } diff --git a/Content.Shared/Interaction/Events/ChangeDirectionAttemptEvent.cs b/Content.Shared/Interaction/Events/ChangeDirectionAttemptEvent.cs index 1c3e2b35d1..895fa58abc 100644 --- a/Content.Shared/Interaction/Events/ChangeDirectionAttemptEvent.cs +++ b/Content.Shared/Interaction/Events/ChangeDirectionAttemptEvent.cs @@ -2,7 +2,7 @@ namespace Content.Shared.Interaction.Events { - public class ChangeDirectionAttemptEvent : CancellableEntityEventArgs + public sealed class ChangeDirectionAttemptEvent : CancellableEntityEventArgs { public ChangeDirectionAttemptEvent(EntityUid uid) { diff --git a/Content.Shared/Interaction/Events/UseAttemptEvent.cs b/Content.Shared/Interaction/Events/UseAttemptEvent.cs index 06fec96487..f031f28ebe 100644 --- a/Content.Shared/Interaction/Events/UseAttemptEvent.cs +++ b/Content.Shared/Interaction/Events/UseAttemptEvent.cs @@ -2,7 +2,7 @@ namespace Content.Shared.Interaction.Events { - public class UseAttemptEvent : CancellableEntityEventArgs + public sealed class UseAttemptEvent : CancellableEntityEventArgs { public UseAttemptEvent(EntityUid uid) { diff --git a/Content.Shared/Interaction/IActivate.cs b/Content.Shared/Interaction/IActivate.cs index b97e4b7820..4efdee64b2 100644 --- a/Content.Shared/Interaction/IActivate.cs +++ b/Content.Shared/Interaction/IActivate.cs @@ -22,7 +22,7 @@ namespace Content.Shared.Interaction void Activate(ActivateEventArgs eventArgs); } - public class ActivateEventArgs : EventArgs, ITargetedInteractEventArgs + public sealed class ActivateEventArgs : EventArgs, ITargetedInteractEventArgs { public ActivateEventArgs(EntityUid user, EntityUid target) { @@ -38,7 +38,7 @@ namespace Content.Shared.Interaction /// Raised when an entity is activated in the world. /// [PublicAPI] - public class ActivateInWorldEvent : HandledEntityEventArgs, ITargetedInteractEventArgs + public sealed class ActivateInWorldEvent : HandledEntityEventArgs, ITargetedInteractEventArgs { /// /// Entity that activated the target world entity. diff --git a/Content.Shared/Interaction/IAfterInteract.cs b/Content.Shared/Interaction/IAfterInteract.cs index c578d60666..ea2523793f 100644 --- a/Content.Shared/Interaction/IAfterInteract.cs +++ b/Content.Shared/Interaction/IAfterInteract.cs @@ -29,7 +29,7 @@ namespace Content.Shared.Interaction Task AfterInteract(AfterInteractEventArgs eventArgs); } - public class AfterInteractEventArgs : EventArgs + public sealed class AfterInteractEventArgs : EventArgs { public EntityUid User { get; } public EntityCoordinates ClickLocation { get; } diff --git a/Content.Shared/Interaction/IDropped.cs b/Content.Shared/Interaction/IDropped.cs index 5fdcd071ae..58a5ca6cbf 100644 --- a/Content.Shared/Interaction/IDropped.cs +++ b/Content.Shared/Interaction/IDropped.cs @@ -15,7 +15,7 @@ namespace Content.Shared.Interaction void Dropped(DroppedEventArgs eventArgs); } - public class DroppedEventArgs : EventArgs + public sealed class DroppedEventArgs : EventArgs { public DroppedEventArgs(EntityUid user) { @@ -29,7 +29,7 @@ namespace Content.Shared.Interaction /// Raised when an entity is dropped /// [PublicAPI] - public class DroppedEvent : HandledEntityEventArgs + public sealed class DroppedEvent : HandledEntityEventArgs { /// /// Entity that dropped the item. diff --git a/Content.Shared/Interaction/IInteractHand.cs b/Content.Shared/Interaction/IInteractHand.cs index 723c7e09e6..2ef7e881d0 100644 --- a/Content.Shared/Interaction/IInteractHand.cs +++ b/Content.Shared/Interaction/IInteractHand.cs @@ -19,7 +19,7 @@ namespace Content.Shared.Interaction bool InteractHand(InteractHandEventArgs eventArgs); } - public class InteractHandEventArgs : EventArgs, ITargetedInteractEventArgs + public sealed class InteractHandEventArgs : EventArgs, ITargetedInteractEventArgs { public InteractHandEventArgs(EntityUid user, EntityUid target) { @@ -35,7 +35,7 @@ namespace Content.Shared.Interaction /// Raised directed on a target entity when it is interacted with by a user with an empty hand. /// [PublicAPI] - public class InteractHandEvent : HandledEntityEventArgs, ITargetedInteractEventArgs + public sealed class InteractHandEvent : HandledEntityEventArgs, ITargetedInteractEventArgs { /// /// Entity that triggered the interaction. diff --git a/Content.Shared/Interaction/IInteractUsing.cs b/Content.Shared/Interaction/IInteractUsing.cs index 4b3877c840..04f1e6c003 100644 --- a/Content.Shared/Interaction/IInteractUsing.cs +++ b/Content.Shared/Interaction/IInteractUsing.cs @@ -28,7 +28,7 @@ namespace Content.Shared.Interaction Task InteractUsing(InteractUsingEventArgs eventArgs); } - public class InteractUsingEventArgs : EventArgs, ITargetedInteractEventArgs + public sealed class InteractUsingEventArgs : EventArgs, ITargetedInteractEventArgs { public InteractUsingEventArgs(EntityUid user, EntityCoordinates clickLocation, EntityUid @using, EntityUid target) { @@ -48,7 +48,7 @@ namespace Content.Shared.Interaction /// Raised when a target entity is interacted with by a user while holding an object in their hand. /// [PublicAPI] - public class InteractUsingEvent : HandledEntityEventArgs + public sealed class InteractUsingEvent : HandledEntityEventArgs { /// /// Entity that triggered the interaction. diff --git a/Content.Shared/Interaction/IRangedInteract.cs b/Content.Shared/Interaction/IRangedInteract.cs index b9b71e7156..0c9280adaa 100644 --- a/Content.Shared/Interaction/IRangedInteract.cs +++ b/Content.Shared/Interaction/IRangedInteract.cs @@ -8,7 +8,7 @@ namespace Content.Shared.Interaction /// Raised when an entity is interacted with that is out of the user entity's range of direct use. /// [PublicAPI] - public class RangedInteractEvent : HandledEntityEventArgs + public sealed class RangedInteractEvent : HandledEntityEventArgs { /// /// Entity that triggered the interaction. diff --git a/Content.Shared/Interaction/IUse.cs b/Content.Shared/Interaction/IUse.cs index 5cdb81931d..9d8f00934d 100644 --- a/Content.Shared/Interaction/IUse.cs +++ b/Content.Shared/Interaction/IUse.cs @@ -20,7 +20,7 @@ namespace Content.Shared.Interaction bool UseEntity(UseEntityEventArgs eventArgs); } - public class UseEntityEventArgs : EventArgs + public sealed class UseEntityEventArgs : EventArgs { public UseEntityEventArgs(EntityUid user) { @@ -34,7 +34,7 @@ namespace Content.Shared.Interaction /// Raised when using the entity in your hands. /// [PublicAPI] - public class UseInHandEvent : HandledEntityEventArgs + public sealed class UseInHandEvent : HandledEntityEventArgs { /// /// Entity holding the item in their hand. diff --git a/Content.Shared/Interaction/RotateToFaceSystem.cs b/Content.Shared/Interaction/RotateToFaceSystem.cs index 11f68bbfba..e8e915d547 100644 --- a/Content.Shared/Interaction/RotateToFaceSystem.cs +++ b/Content.Shared/Interaction/RotateToFaceSystem.cs @@ -31,7 +31,7 @@ namespace Content.Shared.Interaction /// Doesn't really fit with SharedInteractionSystem so it's not there. /// [UsedImplicitly] - public class RotateToFaceSystem : EntitySystem + public sealed class RotateToFaceSystem : EntitySystem { [Dependency] private readonly ActionBlockerSystem _actionBlockerSystem = default!; public bool TryFaceCoordinates(EntityUid user, Vector2 coordinates) diff --git a/Content.Shared/Inventory/Events/EquipAttemptEvents.cs b/Content.Shared/Inventory/Events/EquipAttemptEvents.cs index adbe9e5709..fca7b1c004 100644 --- a/Content.Shared/Inventory/Events/EquipAttemptEvents.cs +++ b/Content.Shared/Inventory/Events/EquipAttemptEvents.cs @@ -45,7 +45,7 @@ public abstract class EquipAttemptBase : CancellableEntityEventArgs } } -public class BeingEquippedAttemptEvent : EquipAttemptBase +public sealed class BeingEquippedAttemptEvent : EquipAttemptBase { public BeingEquippedAttemptEvent(EntityUid equipee, EntityUid equipTarget, EntityUid equipment, SlotDefinition slotDefinition) : base(equipee, equipTarget, equipment, slotDefinition) @@ -53,7 +53,7 @@ public class BeingEquippedAttemptEvent : EquipAttemptBase } } -public class IsEquippingAttemptEvent : EquipAttemptBase +public sealed class IsEquippingAttemptEvent : EquipAttemptBase { public IsEquippingAttemptEvent(EntityUid equipee, EntityUid equipTarget, EntityUid equipment, SlotDefinition slotDefinition) : base(equipee, equipTarget, equipment, slotDefinition) diff --git a/Content.Shared/Inventory/Events/EquippedEvents.cs b/Content.Shared/Inventory/Events/EquippedEvents.cs index ce447cc473..4d0859ab30 100644 --- a/Content.Shared/Inventory/Events/EquippedEvents.cs +++ b/Content.Shared/Inventory/Events/EquippedEvents.cs @@ -2,7 +2,7 @@ namespace Content.Shared.Inventory.Events; -public class EquippedEventBase : EntityEventArgs +public abstract class EquippedEventBase : EntityEventArgs { /// /// The entity equipping. @@ -33,14 +33,14 @@ public class EquippedEventBase : EntityEventArgs } } -public class DidEquipEvent : EquippedEventBase +public sealed class DidEquipEvent : EquippedEventBase { public DidEquipEvent(EntityUid equipee, EntityUid equipment, SlotDefinition slotDefinition) : base(equipee, equipment, slotDefinition) { } } -public class GotEquippedEvent : EquippedEventBase +public sealed class GotEquippedEvent : EquippedEventBase { public GotEquippedEvent(EntityUid equipee, EntityUid equipment, SlotDefinition slotDefinition) : base(equipee, equipment, slotDefinition) { diff --git a/Content.Shared/Inventory/Events/InventoryEquipActEvent.cs b/Content.Shared/Inventory/Events/InventoryEquipActEvent.cs index a174bedc49..acd00fb71e 100644 --- a/Content.Shared/Inventory/Events/InventoryEquipActEvent.cs +++ b/Content.Shared/Inventory/Events/InventoryEquipActEvent.cs @@ -8,7 +8,7 @@ namespace Content.Shared.Inventory.Events; /// This event is used to tell the server-inventorysystem someone wants to equip something /// [NetSerializable, Serializable] -public class InventoryEquipActEvent : EntityEventArgs +public sealed class InventoryEquipActEvent : EntityEventArgs { public readonly EntityUid Uid; public readonly EntityUid ItemUid; diff --git a/Content.Shared/Inventory/Events/UnequipAttemptEvent.cs b/Content.Shared/Inventory/Events/UnequipAttemptEvent.cs index ab0704b09c..52fb194654 100644 --- a/Content.Shared/Inventory/Events/UnequipAttemptEvent.cs +++ b/Content.Shared/Inventory/Events/UnequipAttemptEvent.cs @@ -2,7 +2,7 @@ using Robust.Shared.GameObjects; namespace Content.Shared.Inventory.Events; -public class UnequipAttemptEventBase : CancellableEntityEventArgs +public abstract class UnequipAttemptEventBase : CancellableEntityEventArgs { /// /// The entity performing the action. NOT necessarily the same as the entity whose equipment is being removed.. @@ -39,7 +39,7 @@ public class UnequipAttemptEventBase : CancellableEntityEventArgs } } -public class BeingUnequippedAttemptEvent : UnequipAttemptEventBase +public sealed class BeingUnequippedAttemptEvent : UnequipAttemptEventBase { public BeingUnequippedAttemptEvent(EntityUid unequipee, EntityUid unEquipTarget, EntityUid equipment, SlotDefinition slotDefinition) : base(unequipee, unEquipTarget, equipment, slotDefinition) @@ -47,7 +47,7 @@ public class BeingUnequippedAttemptEvent : UnequipAttemptEventBase } } -public class IsUnequippingAttemptEvent : UnequipAttemptEventBase +public sealed class IsUnequippingAttemptEvent : UnequipAttemptEventBase { public IsUnequippingAttemptEvent(EntityUid unequipee, EntityUid unEquipTarget, EntityUid equipment, SlotDefinition slotDefinition) : base(unequipee, unEquipTarget, equipment, slotDefinition) diff --git a/Content.Shared/Inventory/Events/UnequippedEvents.cs b/Content.Shared/Inventory/Events/UnequippedEvents.cs index 3522abfb6d..8aa0681481 100644 --- a/Content.Shared/Inventory/Events/UnequippedEvents.cs +++ b/Content.Shared/Inventory/Events/UnequippedEvents.cs @@ -2,7 +2,7 @@ namespace Content.Shared.Inventory.Events; -public class UnequippedEventBase : EntityEventArgs +public abstract class UnequippedEventBase : EntityEventArgs { /// /// The entity unequipping. @@ -27,14 +27,14 @@ public class UnequippedEventBase : EntityEventArgs } } -public class DidUnequipEvent : UnequippedEventBase +public sealed class DidUnequipEvent : UnequippedEventBase { public DidUnequipEvent(EntityUid equipee, EntityUid equipment, SlotDefinition slotDefinition) : base(equipee, equipment, slotDefinition) { } } -public class GotUnequippedEvent : UnequippedEventBase +public sealed class GotUnequippedEvent : UnequippedEventBase { public GotUnequippedEvent(EntityUid equipee, EntityUid equipment, SlotDefinition slotDefinition) : base(equipee, equipment, slotDefinition) { diff --git a/Content.Shared/Inventory/Events/UseSlotNetworkMessage.cs b/Content.Shared/Inventory/Events/UseSlotNetworkMessage.cs index e99856830c..d3b8c59db0 100644 --- a/Content.Shared/Inventory/Events/UseSlotNetworkMessage.cs +++ b/Content.Shared/Inventory/Events/UseSlotNetworkMessage.cs @@ -5,7 +5,7 @@ using Robust.Shared.Serialization; namespace Content.Shared.Inventory.Events; [NetSerializable, Serializable] -public class UseSlotNetworkMessage : EntityEventArgs +public sealed class UseSlotNetworkMessage : EntityEventArgs { // The slot-owner is implicitly the client that is sending this message. // Otherwise clients could start forcefully undressing other clients. diff --git a/Content.Shared/Inventory/InventoryComponent.cs b/Content.Shared/Inventory/InventoryComponent.cs index f3627ab260..fd1959e62c 100644 --- a/Content.Shared/Inventory/InventoryComponent.cs +++ b/Content.Shared/Inventory/InventoryComponent.cs @@ -7,7 +7,7 @@ using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototy namespace Content.Shared.Inventory; -public class InventoryComponent : Component, IExAct +public abstract class InventoryComponent : Component, IExAct { [Dependency] private readonly IEntityManager _entityManager = default!; diff --git a/Content.Shared/Inventory/InventoryTemplatePrototype.cs b/Content.Shared/Inventory/InventoryTemplatePrototype.cs index d98c212239..66478ba7a6 100644 --- a/Content.Shared/Inventory/InventoryTemplatePrototype.cs +++ b/Content.Shared/Inventory/InventoryTemplatePrototype.cs @@ -8,7 +8,7 @@ using Robust.Shared.Utility; namespace Content.Shared.Inventory; [Prototype("inventoryTemplate")] -public class InventoryTemplatePrototype : IPrototype +public sealed class InventoryTemplatePrototype : IPrototype { [DataField("id", required: true)] public string ID { get; } = string.Empty; @@ -18,7 +18,7 @@ public class InventoryTemplatePrototype : IPrototype } [DataDefinition] -public class SlotDefinition +public sealed class SlotDefinition { [DataField("name", required: true)] public string Name { get; } = string.Empty; diff --git a/Content.Shared/Item/ItemSystem.cs b/Content.Shared/Item/ItemSystem.cs index e52d4f0c2b..ef8cef20dd 100644 --- a/Content.Shared/Item/ItemSystem.cs +++ b/Content.Shared/Item/ItemSystem.cs @@ -7,7 +7,7 @@ using Robust.Shared.Localization; namespace Content.Shared.Item { - public class ItemSystem : EntitySystem + public sealed class ItemSystem : EntitySystem { public override void Initialize() { diff --git a/Content.Shared/Item/PickupAttemptEvent.cs b/Content.Shared/Item/PickupAttemptEvent.cs index e52c0722a9..aa1ed2be59 100644 --- a/Content.Shared/Item/PickupAttemptEvent.cs +++ b/Content.Shared/Item/PickupAttemptEvent.cs @@ -5,7 +5,7 @@ namespace Content.Shared.Item /// /// Raised on a *mob* when it tries to pickup something /// - public class PickupAttemptEvent : CancellableEntityEventArgs + public sealed class PickupAttemptEvent : CancellableEntityEventArgs { public PickupAttemptEvent(EntityUid uid) { diff --git a/Content.Shared/Item/SharedItemComponent.cs b/Content.Shared/Item/SharedItemComponent.cs index b3196a86c9..145a5f35dc 100644 --- a/Content.Shared/Item/SharedItemComponent.cs +++ b/Content.Shared/Item/SharedItemComponent.cs @@ -20,7 +20,7 @@ namespace Content.Shared.Item /// Players can pick up, drop, and put items in bags, and they can be seen in player's hands. /// [NetworkedComponent()] - public class SharedItemComponent : Component, IInteractHand + public abstract class SharedItemComponent : Component, IInteractHand { [Dependency] private readonly IEntityManager _entMan = default!; @@ -136,7 +136,7 @@ namespace Content.Shared.Item } [Serializable, NetSerializable] - public class ItemComponentState : ComponentState + public sealed class ItemComponentState : ComponentState { public int Size { get; } public string? EquippedPrefix { get; } @@ -157,7 +157,7 @@ namespace Content.Shared.Item /// that it can properly update its sprite/GUI. /// [Serializable, NetSerializable] - public class ItemPrefixChangeEvent : EntityEventArgs + public sealed class ItemPrefixChangeEvent : EntityEventArgs { public readonly EntityUid Item; public readonly string ContainerId; diff --git a/Content.Shared/Jittering/JitteringComponent.cs b/Content.Shared/Jittering/JitteringComponent.cs index 81d885065f..3bf05c6c82 100644 --- a/Content.Shared/Jittering/JitteringComponent.cs +++ b/Content.Shared/Jittering/JitteringComponent.cs @@ -10,7 +10,7 @@ namespace Content.Shared.Jittering { [Friend(typeof(SharedJitteringSystem))] [RegisterComponent, NetworkedComponent] - public class JitteringComponent : Component + public sealed class JitteringComponent : Component { [ViewVariables(VVAccess.ReadWrite)] public float Amplitude { get; set; } @@ -23,7 +23,7 @@ namespace Content.Shared.Jittering } [Serializable, NetSerializable] - public class JitteringComponentState : ComponentState + public sealed class JitteringComponentState : ComponentState { public float Amplitude { get; } public float Frequency { get; } diff --git a/Content.Shared/Kitchen/Components/SharedMicrowaveComponent.cs b/Content.Shared/Kitchen/Components/SharedMicrowaveComponent.cs index 44188697d0..9c1a4ca01d 100644 --- a/Content.Shared/Kitchen/Components/SharedMicrowaveComponent.cs +++ b/Content.Shared/Kitchen/Components/SharedMicrowaveComponent.cs @@ -8,10 +8,10 @@ namespace Content.Shared.Kitchen.Components { [NetworkedComponent()] - public class SharedMicrowaveComponent : Component + public abstract class SharedMicrowaveComponent : Component { [Serializable, NetSerializable] - public class MicrowaveStartCookMessage : BoundUserInterfaceMessage + public sealed class MicrowaveStartCookMessage : BoundUserInterfaceMessage { public MicrowaveStartCookMessage() { @@ -19,7 +19,7 @@ namespace Content.Shared.Kitchen.Components } [Serializable, NetSerializable] - public class MicrowaveEjectMessage : BoundUserInterfaceMessage + public sealed class MicrowaveEjectMessage : BoundUserInterfaceMessage { public MicrowaveEjectMessage() { @@ -27,7 +27,7 @@ namespace Content.Shared.Kitchen.Components } [Serializable, NetSerializable] - public class MicrowaveEjectSolidIndexedMessage : BoundUserInterfaceMessage + public sealed class MicrowaveEjectSolidIndexedMessage : BoundUserInterfaceMessage { public EntityUid EntityID; @@ -38,7 +38,7 @@ namespace Content.Shared.Kitchen.Components } [Serializable, NetSerializable] - public class MicrowaveVaporizeReagentIndexedMessage : BoundUserInterfaceMessage + public sealed class MicrowaveVaporizeReagentIndexedMessage : BoundUserInterfaceMessage { public Solution.ReagentQuantity ReagentQuantity; @@ -48,7 +48,7 @@ namespace Content.Shared.Kitchen.Components } } [Serializable, NetSerializable] - public class MicrowaveSelectCookTimeMessage : BoundUserInterfaceMessage + public sealed class MicrowaveSelectCookTimeMessage : BoundUserInterfaceMessage { public int ButtonIndex; public uint NewCookTime; @@ -61,7 +61,7 @@ namespace Content.Shared.Kitchen.Components } [NetSerializable, Serializable] - public class MicrowaveUpdateUserInterfaceState : BoundUserInterfaceState + public sealed class MicrowaveUpdateUserInterfaceState : BoundUserInterfaceState { public EntityUid[] ContainedSolids; public bool IsMicrowaveBusy; diff --git a/Content.Shared/Kitchen/Components/SharedReagentGrinderComponent.cs b/Content.Shared/Kitchen/Components/SharedReagentGrinderComponent.cs index 7ab076bfc2..2fa73f8947 100644 --- a/Content.Shared/Kitchen/Components/SharedReagentGrinderComponent.cs +++ b/Content.Shared/Kitchen/Components/SharedReagentGrinderComponent.cs @@ -8,7 +8,7 @@ namespace Content.Shared.Kitchen.Components public abstract class SharedReagentGrinderComponent : Component { [Serializable, NetSerializable] - public class ReagentGrinderGrindStartMessage : BoundUserInterfaceMessage + public sealed class ReagentGrinderGrindStartMessage : BoundUserInterfaceMessage { public ReagentGrinderGrindStartMessage() { @@ -16,7 +16,7 @@ namespace Content.Shared.Kitchen.Components } [Serializable, NetSerializable] - public class ReagentGrinderJuiceStartMessage : BoundUserInterfaceMessage + public sealed class ReagentGrinderJuiceStartMessage : BoundUserInterfaceMessage { public ReagentGrinderJuiceStartMessage() { @@ -24,7 +24,7 @@ namespace Content.Shared.Kitchen.Components } [Serializable, NetSerializable] - public class ReagentGrinderEjectChamberAllMessage : BoundUserInterfaceMessage + public sealed class ReagentGrinderEjectChamberAllMessage : BoundUserInterfaceMessage { public ReagentGrinderEjectChamberAllMessage() { @@ -32,7 +32,7 @@ namespace Content.Shared.Kitchen.Components } [Serializable, NetSerializable] - public class ReagentGrinderEjectBeakerMessage : BoundUserInterfaceMessage + public sealed class ReagentGrinderEjectBeakerMessage : BoundUserInterfaceMessage { public ReagentGrinderEjectBeakerMessage() { @@ -40,7 +40,7 @@ namespace Content.Shared.Kitchen.Components } [Serializable, NetSerializable] - public class ReagentGrinderEjectChamberContentMessage : BoundUserInterfaceMessage + public sealed class ReagentGrinderEjectChamberContentMessage : BoundUserInterfaceMessage { public EntityUid EntityID; public ReagentGrinderEjectChamberContentMessage(EntityUid entityID) @@ -50,7 +50,7 @@ namespace Content.Shared.Kitchen.Components } [Serializable, NetSerializable] - public class ReagentGrinderWorkStartedMessage : BoundUserInterfaceMessage + public sealed class ReagentGrinderWorkStartedMessage : BoundUserInterfaceMessage { public GrinderProgram GrinderProgram; public ReagentGrinderWorkStartedMessage(GrinderProgram grinderProgram) @@ -60,7 +60,7 @@ namespace Content.Shared.Kitchen.Components } [Serializable, NetSerializable] - public class ReagentGrinderWorkCompleteMessage : BoundUserInterfaceMessage + public sealed class ReagentGrinderWorkCompleteMessage : BoundUserInterfaceMessage { public ReagentGrinderWorkCompleteMessage() { diff --git a/Content.Shared/Kitchen/MicrowaveMealRecipePrototype.cs b/Content.Shared/Kitchen/MicrowaveMealRecipePrototype.cs index 71ca6cfb53..f0d1c083a9 100644 --- a/Content.Shared/Kitchen/MicrowaveMealRecipePrototype.cs +++ b/Content.Shared/Kitchen/MicrowaveMealRecipePrototype.cs @@ -14,7 +14,7 @@ namespace Content.Shared.Kitchen /// A recipe for space microwaves. /// [Prototype("microwaveMealRecipe")] - public class FoodRecipePrototype : IPrototype + public sealed class FoodRecipePrototype : IPrototype { [ViewVariables] [DataField("id", required: true)] diff --git a/Content.Shared/Kitchen/RecipeManager.cs b/Content.Shared/Kitchen/RecipeManager.cs index 93c69e8b62..8e9fd13206 100644 --- a/Content.Shared/Kitchen/RecipeManager.cs +++ b/Content.Shared/Kitchen/RecipeManager.cs @@ -4,7 +4,7 @@ using Robust.Shared.Prototypes; namespace Content.Shared.Kitchen { - public class RecipeManager + public sealed class RecipeManager { [Dependency] private readonly IPrototypeManager _prototypeManager = default!; @@ -38,7 +38,7 @@ namespace Content.Shared.Kitchen return false; } - private class RecipeComparer : Comparer + private sealed class RecipeComparer : Comparer { public override int Compare(FoodRecipePrototype? x, FoodRecipePrototype? y) { diff --git a/Content.Shared/Labels/LabelEvents.cs b/Content.Shared/Labels/LabelEvents.cs index b79532189f..32e249ae02 100644 --- a/Content.Shared/Labels/LabelEvents.cs +++ b/Content.Shared/Labels/LabelEvents.cs @@ -24,7 +24,7 @@ namespace Content.Shared.Labels /// Represents a state that can be sent to the client /// [Serializable, NetSerializable] - public class HandLabelerBoundUserInterfaceState : BoundUserInterfaceState + public sealed class HandLabelerBoundUserInterfaceState : BoundUserInterfaceState { public string CurrentLabel { get; } @@ -35,7 +35,7 @@ namespace Content.Shared.Labels } [Serializable, NetSerializable] - public class HandLabelerLabelChangedMessage : BoundUserInterfaceMessage + public sealed class HandLabelerLabelChangedMessage : BoundUserInterfaceMessage { public string Label { get; } diff --git a/Content.Shared/Lathe/SharedLatheComponent.cs b/Content.Shared/Lathe/SharedLatheComponent.cs index fbd05fe70f..f47212cbcc 100644 --- a/Content.Shared/Lathe/SharedLatheComponent.cs +++ b/Content.Shared/Lathe/SharedLatheComponent.cs @@ -10,6 +10,7 @@ using Robust.Shared.Serialization; namespace Content.Shared.Lathe { [NetworkedComponent()] + [Virtual] public class SharedLatheComponent : Component { [Dependency] private readonly IEntityManager _entMan = default!; @@ -38,7 +39,7 @@ namespace Content.Shared.Lathe /// Sent to the server to sync material storage and the recipe queue. /// [Serializable, NetSerializable] - public class LatheSyncRequestMessage : BoundUserInterfaceMessage + public sealed class LatheSyncRequestMessage : BoundUserInterfaceMessage { public LatheSyncRequestMessage() { @@ -51,7 +52,7 @@ namespace Content.Shared.Lathe /// Sent to the server to sync the lathe's technology database with the research server. /// [Serializable, NetSerializable] - public class LatheServerSyncMessage : BoundUserInterfaceMessage + public sealed class LatheServerSyncMessage : BoundUserInterfaceMessage { public LatheServerSyncMessage() { @@ -62,7 +63,7 @@ namespace Content.Shared.Lathe /// Sent to the server to open the ResearchClient UI. /// [Serializable, NetSerializable] - public class LatheServerSelectionMessage : BoundUserInterfaceMessage + public sealed class LatheServerSelectionMessage : BoundUserInterfaceMessage { public LatheServerSelectionMessage() { @@ -73,7 +74,7 @@ namespace Content.Shared.Lathe /// Sent to the client when the lathe is producing a recipe. /// [Serializable, NetSerializable] - public class LatheProducingRecipeMessage : BoundUserInterfaceMessage + public sealed class LatheProducingRecipeMessage : BoundUserInterfaceMessage { public readonly string ID; public LatheProducingRecipeMessage(string id) @@ -86,7 +87,7 @@ namespace Content.Shared.Lathe /// Sent to the client when the lathe stopped/finished producing a recipe. /// [Serializable, NetSerializable] - public class LatheStoppedProducingRecipeMessage : BoundUserInterfaceMessage + public sealed class LatheStoppedProducingRecipeMessage : BoundUserInterfaceMessage { public LatheStoppedProducingRecipeMessage() { @@ -97,7 +98,7 @@ namespace Content.Shared.Lathe /// Sent to the client to let it know about the recipe queue. /// [Serializable, NetSerializable] - public class LatheFullQueueMessage : BoundUserInterfaceMessage + public sealed class LatheFullQueueMessage : BoundUserInterfaceMessage { public readonly Queue Recipes; public LatheFullQueueMessage(Queue recipes) @@ -110,7 +111,7 @@ namespace Content.Shared.Lathe /// Sent to the server when a client queues a new recipe. /// [Serializable, NetSerializable] - public class LatheQueueRecipeMessage : BoundUserInterfaceMessage + public sealed class LatheQueueRecipeMessage : BoundUserInterfaceMessage { public readonly string ID; public readonly int Quantity; diff --git a/Content.Shared/Lathe/SharedLatheDatabaseComponent.cs b/Content.Shared/Lathe/SharedLatheDatabaseComponent.cs index b431c5c81b..e15a4c71de 100644 --- a/Content.Shared/Lathe/SharedLatheDatabaseComponent.cs +++ b/Content.Shared/Lathe/SharedLatheDatabaseComponent.cs @@ -13,7 +13,7 @@ using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototy namespace Content.Shared.Lathe { [NetworkedComponent()] - public class SharedLatheDatabaseComponent : Component, IEnumerable, ISerializationHooks + public abstract class SharedLatheDatabaseComponent : Component, IEnumerable, ISerializationHooks { [DataField("recipes", customTypeSerializer: typeof(PrototypeIdListSerializer))] private List _recipeIds = new(); @@ -122,7 +122,7 @@ namespace Content.Shared.Lathe } [NetSerializable, Serializable] - public class LatheDatabaseState : ComponentState + public sealed class LatheDatabaseState : ComponentState { public readonly List Recipes; public LatheDatabaseState(List recipes) diff --git a/Content.Shared/Lathe/SharedMaterialStorageComponent.cs b/Content.Shared/Lathe/SharedMaterialStorageComponent.cs index 888f42a982..0dc3384169 100644 --- a/Content.Shared/Lathe/SharedMaterialStorageComponent.cs +++ b/Content.Shared/Lathe/SharedMaterialStorageComponent.cs @@ -10,7 +10,7 @@ using Robust.Shared.ViewVariables; namespace Content.Shared.Lathe { [NetworkedComponent()] - public class SharedMaterialStorageComponent : Component, IEnumerable> + public abstract class SharedMaterialStorageComponent : Component, IEnumerable> { [ViewVariables] protected virtual Dictionary Storage { get; set; } = new(); @@ -66,7 +66,7 @@ namespace Content.Shared.Lathe } [NetSerializable, Serializable] - public class MaterialStorageState : ComponentState + public sealed class MaterialStorageState : ComponentState { public readonly Dictionary Storage; public MaterialStorageState(Dictionary storage) diff --git a/Content.Shared/Lathe/SharedProtolatheDatabaseComponent.cs b/Content.Shared/Lathe/SharedProtolatheDatabaseComponent.cs index 51253c3503..5b415de972 100644 --- a/Content.Shared/Lathe/SharedProtolatheDatabaseComponent.cs +++ b/Content.Shared/Lathe/SharedProtolatheDatabaseComponent.cs @@ -13,7 +13,7 @@ namespace Content.Shared.Lathe { [ComponentReference(typeof(SharedLatheDatabaseComponent))] [NetworkedComponent()] - public class SharedProtolatheDatabaseComponent : SharedLatheDatabaseComponent, ISerializationHooks + public abstract class SharedProtolatheDatabaseComponent : SharedLatheDatabaseComponent, ISerializationHooks { [Dependency] private readonly IPrototypeManager _prototypeManager = default!; @@ -36,7 +36,7 @@ namespace Content.Shared.Lathe } [NetSerializable, Serializable] - public class ProtolatheDatabaseState : ComponentState + public sealed class ProtolatheDatabaseState : ComponentState { public readonly List Recipes; public ProtolatheDatabaseState(List recipes) diff --git a/Content.Shared/Light/Component/RgbLightControllerComponent.cs b/Content.Shared/Light/Component/RgbLightControllerComponent.cs index f18445243c..770269c1b8 100644 --- a/Content.Shared/Light/Component/RgbLightControllerComponent.cs +++ b/Content.Shared/Light/Component/RgbLightControllerComponent.cs @@ -34,7 +34,7 @@ public sealed class RgbLightControllerComponent : Robust.Shared.GameObjects.Comp } [Serializable, NetSerializable] -public class RgbLightControllerState : ComponentState +public sealed class RgbLightControllerState : ComponentState { public readonly float CycleRate; public readonly List? Layers; diff --git a/Content.Shared/Light/Component/SharedLightBehaviourComponent.cs b/Content.Shared/Light/Component/SharedLightBehaviourComponent.cs index 1752bd3730..3d10b73e69 100644 --- a/Content.Shared/Light/Component/SharedLightBehaviourComponent.cs +++ b/Content.Shared/Light/Component/SharedLightBehaviourComponent.cs @@ -3,7 +3,7 @@ /// /// A component which applies a specific behaviour to a PointLightComponent on its owner. /// - public class SharedLightBehaviourComponent : Robust.Shared.GameObjects.Component + public abstract class SharedLightBehaviourComponent : Robust.Shared.GameObjects.Component { } } diff --git a/Content.Shared/MachineLinking/UIMessages.cs b/Content.Shared/MachineLinking/UIMessages.cs index c5dd63f6d4..074b9cddd0 100644 --- a/Content.Shared/MachineLinking/UIMessages.cs +++ b/Content.Shared/MachineLinking/UIMessages.cs @@ -7,7 +7,7 @@ using Robust.Shared.Serialization; namespace Content.Shared.MachineLinking { [Serializable, NetSerializable] - public class SignalPortsState : BoundUserInterfaceState + public sealed class SignalPortsState : BoundUserInterfaceState { /// /// A Dictionary containing all ports and wether or not they can be selected. @@ -25,7 +25,7 @@ namespace Content.Shared.MachineLinking } [Serializable, NetSerializable] - public class SignalPortSelected : BoundUserInterfaceMessage + public sealed class SignalPortSelected : BoundUserInterfaceMessage { public readonly string Port; diff --git a/Content.Shared/Markers/SharedSpawnPointComponent.cs b/Content.Shared/Markers/SharedSpawnPointComponent.cs index 8f9c76167e..2169a69504 100644 --- a/Content.Shared/Markers/SharedSpawnPointComponent.cs +++ b/Content.Shared/Markers/SharedSpawnPointComponent.cs @@ -2,6 +2,7 @@ using Robust.Shared.GameObjects; namespace Content.Shared.Markers { + [Virtual] public class SharedSpawnPointComponent : Component { } diff --git a/Content.Shared/Materials/MaterialPrototype.cs b/Content.Shared/Materials/MaterialPrototype.cs index a4b83fd36a..1423021b32 100644 --- a/Content.Shared/Materials/MaterialPrototype.cs +++ b/Content.Shared/Materials/MaterialPrototype.cs @@ -13,7 +13,7 @@ namespace Content.Shared.Materials /// Properties should be intrinsic (or at least as much is necessary for game purposes). /// [Prototype("material")] - public class MaterialPrototype : IPrototype, IInheritingPrototype + public sealed class MaterialPrototype : IPrototype, IInheritingPrototype { [ViewVariables] [DataField("parent")] diff --git a/Content.Shared/Medical/CrewMonitoring/CrewMonitoringShared.cs b/Content.Shared/Medical/CrewMonitoring/CrewMonitoringShared.cs index 53f19f1295..a8893f0a08 100644 --- a/Content.Shared/Medical/CrewMonitoring/CrewMonitoringShared.cs +++ b/Content.Shared/Medical/CrewMonitoring/CrewMonitoringShared.cs @@ -15,7 +15,7 @@ namespace Content.Shared.Medical.CrewMonitoring } [Serializable, NetSerializable] - public class CrewMonitoringState : BoundUserInterfaceState + public sealed class CrewMonitoringState : BoundUserInterfaceState { public List Sensors; diff --git a/Content.Shared/Medical/SuitSensor/SharedSuitSensor.cs b/Content.Shared/Medical/SuitSensor/SharedSuitSensor.cs index e717c6dad5..982efd9b3b 100644 --- a/Content.Shared/Medical/SuitSensor/SharedSuitSensor.cs +++ b/Content.Shared/Medical/SuitSensor/SharedSuitSensor.cs @@ -7,7 +7,7 @@ using Robust.Shared.Serialization; namespace Content.Shared.Medical.SuitSensor { [Serializable, NetSerializable] - public class SuitSensorStatus + public sealed class SuitSensorStatus { public SuitSensorStatus(string name, string job) { diff --git a/Content.Shared/MedicalScanner/SharedMedicalScannerComponent.cs b/Content.Shared/MedicalScanner/SharedMedicalScannerComponent.cs index 4a0399f6b0..d4a8244c76 100644 --- a/Content.Shared/MedicalScanner/SharedMedicalScannerComponent.cs +++ b/Content.Shared/MedicalScanner/SharedMedicalScannerComponent.cs @@ -13,7 +13,7 @@ namespace Content.Shared.MedicalScanner public abstract class SharedMedicalScannerComponent : Component, IDragDropOn { [Serializable, NetSerializable] - public class MedicalScannerBoundUserInterfaceState : BoundUserInterfaceState + public sealed class MedicalScannerBoundUserInterfaceState : BoundUserInterfaceState { public readonly EntityUid? Entity; public readonly IReadOnlyDictionary DamagePerGroup; @@ -67,7 +67,7 @@ namespace Content.Shared.MedicalScanner } [Serializable, NetSerializable] - public class UiButtonPressedMessage : BoundUserInterfaceMessage + public sealed class UiButtonPressedMessage : BoundUserInterfaceMessage { public readonly UiButton Button; diff --git a/Content.Shared/MobState/Components/MobStateComponent.cs b/Content.Shared/MobState/Components/MobStateComponent.cs index bfd8be67f9..a49f84c70b 100644 --- a/Content.Shared/MobState/Components/MobStateComponent.cs +++ b/Content.Shared/MobState/Components/MobStateComponent.cs @@ -24,7 +24,7 @@ namespace Content.Shared.MobState.Components /// [RegisterComponent] [NetworkedComponent] - public class MobStateComponent : Component + public sealed class MobStateComponent : Component { [Dependency] private readonly IEntityManager _entMan = default!; @@ -318,7 +318,7 @@ namespace Content.Shared.MobState.Components } [Serializable, NetSerializable] - public class MobStateComponentState : ComponentState + public sealed class MobStateComponentState : ComponentState { public readonly FixedPoint2? CurrentThreshold; diff --git a/Content.Shared/MobState/EntitySystems/MobStateSystem.cs b/Content.Shared/MobState/EntitySystems/MobStateSystem.cs index 9467cc6535..9ed89c7f1f 100644 --- a/Content.Shared/MobState/EntitySystems/MobStateSystem.cs +++ b/Content.Shared/MobState/EntitySystems/MobStateSystem.cs @@ -15,7 +15,7 @@ using Robust.Shared.GameObjects; namespace Content.Shared.MobState.EntitySystems { - public class MobStateSystem : EntitySystem + public sealed class MobStateSystem : EntitySystem { public override void Initialize() { diff --git a/Content.Shared/MobState/MobStateChangedEvent.cs b/Content.Shared/MobState/MobStateChangedEvent.cs index 8fcb40b1fc..75a60bd7d2 100644 --- a/Content.Shared/MobState/MobStateChangedEvent.cs +++ b/Content.Shared/MobState/MobStateChangedEvent.cs @@ -4,7 +4,7 @@ using Robust.Shared.GameObjects; namespace Content.Shared.MobState { - public class MobStateChangedEvent : EntityEventArgs + public sealed class MobStateChangedEvent : EntityEventArgs { public MobStateChangedEvent( MobStateComponent component, diff --git a/Content.Shared/Movement/Components/SharedDummyInputMoverComponent.cs b/Content.Shared/Movement/Components/SharedDummyInputMoverComponent.cs index 1615efcbda..47a7705c64 100644 --- a/Content.Shared/Movement/Components/SharedDummyInputMoverComponent.cs +++ b/Content.Shared/Movement/Components/SharedDummyInputMoverComponent.cs @@ -5,7 +5,7 @@ namespace Content.Shared.Movement.Components { [RegisterComponent] [ComponentReference(typeof(IMoverComponent))] - public class SharedDummyInputMoverComponent : Component, IMoverComponent + public sealed class SharedDummyInputMoverComponent : Component, IMoverComponent { public bool IgnorePaused => false; public float CurrentWalkSpeed => 0f; diff --git a/Content.Shared/Movement/Components/SharedPlayerInputMoverComponent.cs b/Content.Shared/Movement/Components/SharedPlayerInputMoverComponent.cs index 5791e4389e..d24bc816d2 100644 --- a/Content.Shared/Movement/Components/SharedPlayerInputMoverComponent.cs +++ b/Content.Shared/Movement/Components/SharedPlayerInputMoverComponent.cs @@ -15,7 +15,7 @@ namespace Content.Shared.Movement.Components [RegisterComponent] [ComponentReference(typeof(IMoverComponent))] [NetworkedComponent()] - public class SharedPlayerInputMoverComponent : Component, IMoverComponent + public sealed class SharedPlayerInputMoverComponent : Component, IMoverComponent { // This class has to be able to handle server TPS being lower than client FPS. // While still having perfectly responsive movement client side. diff --git a/Content.Shared/Movement/Components/SharedPlayerMobMoverComponent.cs b/Content.Shared/Movement/Components/SharedPlayerMobMoverComponent.cs index 076dd3c9c0..71e9d1d338 100644 --- a/Content.Shared/Movement/Components/SharedPlayerMobMoverComponent.cs +++ b/Content.Shared/Movement/Components/SharedPlayerMobMoverComponent.cs @@ -17,7 +17,7 @@ namespace Content.Shared.Movement.Components [RegisterComponent] [ComponentReference(typeof(IMobMoverComponent))] [NetworkedComponent()] - public class SharedPlayerMobMoverComponent : Component, IMobMoverComponent + public sealed class SharedPlayerMobMoverComponent : Component, IMobMoverComponent { private float _stepSoundDistance; [DataField("grabRange")] diff --git a/Content.Shared/Movement/Components/SlowContactsComponent.cs b/Content.Shared/Movement/Components/SlowContactsComponent.cs index 6cdcc84d90..791559c96c 100644 --- a/Content.Shared/Movement/Components/SlowContactsComponent.cs +++ b/Content.Shared/Movement/Components/SlowContactsComponent.cs @@ -6,7 +6,7 @@ using Robust.Shared.ViewVariables; namespace Content.Shared.Movement.Components; [NetworkedComponent, RegisterComponent] -public class SlowContactsComponent : Component +public sealed class SlowContactsComponent : Component { [ViewVariables, DataField("walkSpeedModifier")] public float WalkSpeedModifier { get; private set; } = 1.0f; diff --git a/Content.Shared/Movement/Components/SlowsOnContactComponent.cs b/Content.Shared/Movement/Components/SlowsOnContactComponent.cs index 1aa3589e7f..d11962ebb3 100644 --- a/Content.Shared/Movement/Components/SlowsOnContactComponent.cs +++ b/Content.Shared/Movement/Components/SlowsOnContactComponent.cs @@ -7,6 +7,6 @@ namespace Content.Shared.Movement.Components; /// Exists just to listen to a single event. What a life. /// [NetworkedComponent, RegisterComponent] -public class SlowsOnContactComponent : Component +public sealed class SlowsOnContactComponent : Component { } diff --git a/Content.Shared/Movement/EntitySystems/MovementSpeedModifierSystem.cs b/Content.Shared/Movement/EntitySystems/MovementSpeedModifierSystem.cs index 88993c4aa6..07bd37cb8d 100644 --- a/Content.Shared/Movement/EntitySystems/MovementSpeedModifierSystem.cs +++ b/Content.Shared/Movement/EntitySystems/MovementSpeedModifierSystem.cs @@ -85,7 +85,7 @@ namespace Content.Shared.Movement.EntitySystems /// should hook into this event and set it then. If you want this event to be raised, /// call . /// - public class RefreshMovementSpeedModifiersEvent : EntityEventArgs, IInventoryRelayEvent + public sealed class RefreshMovementSpeedModifiersEvent : EntityEventArgs, IInventoryRelayEvent { public SlotFlags TargetSlots { get; } = ~SlotFlags.POCKET; diff --git a/Content.Shared/Movement/EntitySystems/SlowContactsSystem.cs b/Content.Shared/Movement/EntitySystems/SlowContactsSystem.cs index 667f91b67e..5601e4ec66 100644 --- a/Content.Shared/Movement/EntitySystems/SlowContactsSystem.cs +++ b/Content.Shared/Movement/EntitySystems/SlowContactsSystem.cs @@ -8,7 +8,7 @@ using Robust.Shared.Physics.Dynamics; namespace Content.Shared.Movement.EntitySystems; -public class SlowContactsSystem : EntitySystem +public sealed class SlowContactsSystem : EntitySystem { [Dependency] private readonly SharedPhysicsSystem _physics = default!; [Dependency] private readonly MovementSpeedModifierSystem _speedModifierSystem = default!; diff --git a/Content.Shared/Movement/MovementAttemptEvent.cs b/Content.Shared/Movement/MovementAttemptEvent.cs index 0d8bd98afd..7a398793fa 100644 --- a/Content.Shared/Movement/MovementAttemptEvent.cs +++ b/Content.Shared/Movement/MovementAttemptEvent.cs @@ -2,7 +2,7 @@ namespace Content.Shared.Movement { - public class MovementAttemptEvent : CancellableEntityEventArgs + public sealed class MovementAttemptEvent : CancellableEntityEventArgs { public MovementAttemptEvent(EntityUid uid) { diff --git a/Content.Shared/Nuke/SharedNuke.cs b/Content.Shared/Nuke/SharedNuke.cs index a440aaeeb9..6c0309bede 100644 --- a/Content.Shared/Nuke/SharedNuke.cs +++ b/Content.Shared/Nuke/SharedNuke.cs @@ -19,7 +19,7 @@ namespace Content.Shared.Nuke } [Serializable, NetSerializable] - public class NukeUiState : BoundUserInterfaceState + public sealed class NukeUiState : BoundUserInterfaceState { public bool DiskInserted; public NukeStatus Status; diff --git a/Content.Shared/Nutrition/Components/CreamPieComponent.cs b/Content.Shared/Nutrition/Components/CreamPieComponent.cs index ed97a4c355..29b421acea 100644 --- a/Content.Shared/Nutrition/Components/CreamPieComponent.cs +++ b/Content.Shared/Nutrition/Components/CreamPieComponent.cs @@ -9,7 +9,7 @@ namespace Content.Shared.Nutrition.Components { [Friend(typeof(SharedCreamPieSystem))] [RegisterComponent] - public class CreamPieComponent : Component + public sealed class CreamPieComponent : Component { [ViewVariables] [DataField("paralyzeTime")] diff --git a/Content.Shared/Nutrition/Components/CreamPiedComponent.cs b/Content.Shared/Nutrition/Components/CreamPiedComponent.cs index aec35c8afc..51fa1e2dd2 100644 --- a/Content.Shared/Nutrition/Components/CreamPiedComponent.cs +++ b/Content.Shared/Nutrition/Components/CreamPiedComponent.cs @@ -9,7 +9,7 @@ namespace Content.Shared.Nutrition.Components { [Friend(typeof(SharedCreamPieSystem))] [RegisterComponent] - public class CreamPiedComponent : Component + public sealed class CreamPiedComponent : Component { [ViewVariables] public bool CreamPied { get; set; } = false; diff --git a/Content.Shared/Nutrition/Components/SharedButcherableComponent.cs b/Content.Shared/Nutrition/Components/SharedButcherableComponent.cs index 8c33ed6b76..aeb8706613 100644 --- a/Content.Shared/Nutrition/Components/SharedButcherableComponent.cs +++ b/Content.Shared/Nutrition/Components/SharedButcherableComponent.cs @@ -11,7 +11,7 @@ namespace Content.Shared.Nutrition.Components /// Indicates that the entity can be thrown on a kitchen spike for butchering. /// [RegisterComponent] - public class SharedButcherableComponent : Component, IDraggable + public sealed class SharedButcherableComponent : Component, IDraggable { //TODO: List for sub-products like animal-hides, organs and etc? [ViewVariables] diff --git a/Content.Shared/Nutrition/EntitySystems/SharedHungerSystem.cs b/Content.Shared/Nutrition/EntitySystems/SharedHungerSystem.cs index 0bb7897661..4843fdabbf 100644 --- a/Content.Shared/Nutrition/EntitySystems/SharedHungerSystem.cs +++ b/Content.Shared/Nutrition/EntitySystems/SharedHungerSystem.cs @@ -4,7 +4,7 @@ using Robust.Shared.GameObjects; namespace Content.Shared.Nutrition.EntitySystems { - public class SharedHungerSystem : EntitySystem + public sealed class SharedHungerSystem : EntitySystem { public override void Initialize() { diff --git a/Content.Shared/Nutrition/EntitySystems/SharedThirstSystem.cs b/Content.Shared/Nutrition/EntitySystems/SharedThirstSystem.cs index 311867b2f1..36a0106e90 100644 --- a/Content.Shared/Nutrition/EntitySystems/SharedThirstSystem.cs +++ b/Content.Shared/Nutrition/EntitySystems/SharedThirstSystem.cs @@ -4,7 +4,7 @@ using Robust.Shared.GameObjects; namespace Content.Shared.Nutrition.EntitySystems { - public class SharedThirstSystem : EntitySystem + public sealed class SharedThirstSystem : EntitySystem { public override void Initialize() { diff --git a/Content.Shared/Objectives/ConditionInfo.cs b/Content.Shared/Objectives/ConditionInfo.cs index de0e7f934b..e86f41df4d 100644 --- a/Content.Shared/Objectives/ConditionInfo.cs +++ b/Content.Shared/Objectives/ConditionInfo.cs @@ -5,7 +5,7 @@ using Robust.Shared.Utility; namespace Content.Shared.Objectives { [Serializable, NetSerializable] - public class ConditionInfo + public sealed class ConditionInfo { public string Title { get; } public string Description { get; } diff --git a/Content.Shared/PAI/PAIComponent.cs b/Content.Shared/PAI/PAIComponent.cs index 0e6c1d74b7..eb86912f59 100644 --- a/Content.Shared/PAI/PAIComponent.cs +++ b/Content.Shared/PAI/PAIComponent.cs @@ -15,7 +15,7 @@ namespace Content.Shared.PAI /// All logic in PAISystem. /// [RegisterComponent, NetworkedComponent] - public class PAIComponent : Component + public sealed class PAIComponent : Component { } } diff --git a/Content.Shared/PDA/PDAComponent.cs b/Content.Shared/PDA/PDAComponent.cs index ddc0ec058e..5920ea33dd 100644 --- a/Content.Shared/PDA/PDAComponent.cs +++ b/Content.Shared/PDA/PDAComponent.cs @@ -9,7 +9,7 @@ using Robust.Shared.ViewVariables; namespace Content.Shared.PDA { [RegisterComponent] - public class PDAComponent : Component + public sealed class PDAComponent : Component { [DataField("idSlot")] public ItemSlot IdSlot = new(); diff --git a/Content.Shared/PDA/UplinkStoreListingPrototype.cs b/Content.Shared/PDA/UplinkStoreListingPrototype.cs index b03a1855be..28cac2d8f0 100644 --- a/Content.Shared/PDA/UplinkStoreListingPrototype.cs +++ b/Content.Shared/PDA/UplinkStoreListingPrototype.cs @@ -7,7 +7,7 @@ using Robust.Shared.ViewVariables; namespace Content.Shared.PDA { [Prototype("uplinkListing")] - public class UplinkStoreListingPrototype : IPrototype + public sealed class UplinkStoreListingPrototype : IPrototype { [ViewVariables] [DataField("id", required: true)] diff --git a/Content.Shared/Paper/SharedPaperComponent.cs b/Content.Shared/Paper/SharedPaperComponent.cs index b2a4c472d8..ff529e43b2 100644 --- a/Content.Shared/Paper/SharedPaperComponent.cs +++ b/Content.Shared/Paper/SharedPaperComponent.cs @@ -4,10 +4,11 @@ using Robust.Shared.Serialization; namespace Content.Shared.Paper { + [Virtual] public class SharedPaperComponent : Component { [Serializable, NetSerializable] - public class PaperBoundUserInterfaceState : BoundUserInterfaceState + public sealed class PaperBoundUserInterfaceState : BoundUserInterfaceState { public readonly string Text; public readonly PaperAction Mode; @@ -20,7 +21,7 @@ namespace Content.Shared.Paper } [Serializable, NetSerializable] - public class PaperActionMessage : BoundUserInterfaceMessage + public sealed class PaperActionMessage : BoundUserInterfaceMessage { public readonly PaperAction Action; public PaperActionMessage(PaperAction action) @@ -30,7 +31,7 @@ namespace Content.Shared.Paper } [Serializable, NetSerializable] - public class PaperInputText : BoundUserInterfaceMessage + public sealed class PaperInputText : BoundUserInterfaceMessage { public readonly string Text; diff --git a/Content.Shared/Pinpointer/PinpointerComponent.cs b/Content.Shared/Pinpointer/PinpointerComponent.cs index 129013c923..5250943bc6 100644 --- a/Content.Shared/Pinpointer/PinpointerComponent.cs +++ b/Content.Shared/Pinpointer/PinpointerComponent.cs @@ -12,7 +12,7 @@ namespace Content.Shared.Pinpointer [RegisterComponent] [NetworkedComponent] [Friend(typeof(SharedPinpointerSystem))] - public class PinpointerComponent : Component + public sealed class PinpointerComponent : Component { [DataField("whitelist")] public EntityWhitelist? Whitelist; diff --git a/Content.Shared/Placeable/PlaceableSurfaceComponent.cs b/Content.Shared/Placeable/PlaceableSurfaceComponent.cs index 701d5884f3..0f56a346e0 100644 --- a/Content.Shared/Placeable/PlaceableSurfaceComponent.cs +++ b/Content.Shared/Placeable/PlaceableSurfaceComponent.cs @@ -12,7 +12,7 @@ namespace Content.Shared.Placeable { [RegisterComponent, NetworkedComponent] [Friend(typeof(PlaceableSurfaceSystem))] - public class PlaceableSurfaceComponent : Component + public sealed class PlaceableSurfaceComponent : Component { [ViewVariables] [DataField("isPlaceable")] @@ -33,7 +33,7 @@ namespace Content.Shared.Placeable } [Serializable, NetSerializable] - public class PlaceableSurfaceComponentState : ComponentState + public sealed class PlaceableSurfaceComponentState : ComponentState { public readonly bool IsPlaceable; public readonly bool PlaceCentered; diff --git a/Content.Shared/Placeable/PlaceableSurfaceSystem.cs b/Content.Shared/Placeable/PlaceableSurfaceSystem.cs index 36127e59d8..dd00d01e01 100644 --- a/Content.Shared/Placeable/PlaceableSurfaceSystem.cs +++ b/Content.Shared/Placeable/PlaceableSurfaceSystem.cs @@ -7,7 +7,7 @@ using Robust.Shared.Maths; namespace Content.Shared.Placeable { - public class PlaceableSurfaceSystem : EntitySystem + public sealed class PlaceableSurfaceSystem : EntitySystem { public override void Initialize() { diff --git a/Content.Shared/Pointing/Components/SharedRoguePointingArrowComponent.cs b/Content.Shared/Pointing/Components/SharedRoguePointingArrowComponent.cs index 906a5a4e57..35e21135b0 100644 --- a/Content.Shared/Pointing/Components/SharedRoguePointingArrowComponent.cs +++ b/Content.Shared/Pointing/Components/SharedRoguePointingArrowComponent.cs @@ -4,7 +4,7 @@ using Robust.Shared.Serialization; namespace Content.Shared.Pointing.Components { - public class SharedRoguePointingArrowComponent : Component + public abstract class SharedRoguePointingArrowComponent : Component { } diff --git a/Content.Shared/Popups/SharedPopupSystem.cs b/Content.Shared/Popups/SharedPopupSystem.cs index 019600fc1c..b31e0dea66 100644 --- a/Content.Shared/Popups/SharedPopupSystem.cs +++ b/Content.Shared/Popups/SharedPopupSystem.cs @@ -53,7 +53,7 @@ namespace Content.Shared.Popups /// Network event for displaying a popup on the user's cursor. /// [Serializable, NetSerializable] - public class PopupCursorEvent : PopupEvent + public sealed class PopupCursorEvent : PopupEvent { public PopupCursorEvent(string message) : base(message) { @@ -64,7 +64,7 @@ namespace Content.Shared.Popups /// Network event for displaying a popup at a world location. /// [Serializable, NetSerializable] - public class PopupCoordinatesEvent : PopupEvent + public sealed class PopupCoordinatesEvent : PopupEvent { public EntityCoordinates Coordinates { get; } @@ -78,7 +78,7 @@ namespace Content.Shared.Popups /// Network event for displaying a popup above an entity. /// [Serializable, NetSerializable] - public class PopupEntityEvent : PopupEvent + public sealed class PopupEntityEvent : PopupEvent { public EntityUid Uid { get; } diff --git a/Content.Shared/PowerCell/Components/PowerCellSlotComponent.cs b/Content.Shared/PowerCell/Components/PowerCellSlotComponent.cs index 1a7789fcb1..01da510c50 100644 --- a/Content.Shared/PowerCell/Components/PowerCellSlotComponent.cs +++ b/Content.Shared/PowerCell/Components/PowerCellSlotComponent.cs @@ -65,7 +65,7 @@ public sealed class PowerCellSlotComponent : Component /// /// Raised directed at an entity with a power cell slot when the power cell inside has its charge updated or is ejected/inserted. /// -public class PowerCellChangedEvent : EntityEventArgs +public sealed class PowerCellChangedEvent : EntityEventArgs { public readonly bool Ejected; diff --git a/Content.Shared/Preferences/HumanoidCharacterProfile.cs b/Content.Shared/Preferences/HumanoidCharacterProfile.cs index b4415c51b0..a961cc6455 100644 --- a/Content.Shared/Preferences/HumanoidCharacterProfile.cs +++ b/Content.Shared/Preferences/HumanoidCharacterProfile.cs @@ -23,7 +23,7 @@ namespace Content.Shared.Preferences /// Character profile. Looks immutable, but uses non-immutable semantics internally for serialization/code sanity purposes. /// [Serializable, NetSerializable] - public class HumanoidCharacterProfile : ICharacterProfile + public sealed class HumanoidCharacterProfile : ICharacterProfile { public const int MinimumAge = 18; public const int MaximumAge = 120; diff --git a/Content.Shared/Preferences/MsgDeleteCharacter.cs b/Content.Shared/Preferences/MsgDeleteCharacter.cs index 0378551918..3b97a8b054 100644 --- a/Content.Shared/Preferences/MsgDeleteCharacter.cs +++ b/Content.Shared/Preferences/MsgDeleteCharacter.cs @@ -6,7 +6,7 @@ namespace Content.Shared.Preferences /// /// The client sends this to delete a character profile. /// - public class MsgDeleteCharacter : NetMessage + public sealed class MsgDeleteCharacter : NetMessage { public override MsgGroups MsgGroup => MsgGroups.Command; diff --git a/Content.Shared/Preferences/MsgPreferencesAndSettings.cs b/Content.Shared/Preferences/MsgPreferencesAndSettings.cs index 85d6041c5b..72859dcc56 100644 --- a/Content.Shared/Preferences/MsgPreferencesAndSettings.cs +++ b/Content.Shared/Preferences/MsgPreferencesAndSettings.cs @@ -9,7 +9,7 @@ namespace Content.Shared.Preferences /// /// The server sends this before the client joins the lobby. /// - public class MsgPreferencesAndSettings : NetMessage + public sealed class MsgPreferencesAndSettings : NetMessage { public override MsgGroups MsgGroup => MsgGroups.Command; diff --git a/Content.Shared/Preferences/MsgSelectCharacter.cs b/Content.Shared/Preferences/MsgSelectCharacter.cs index 423666c185..9dbbb62167 100644 --- a/Content.Shared/Preferences/MsgSelectCharacter.cs +++ b/Content.Shared/Preferences/MsgSelectCharacter.cs @@ -6,7 +6,7 @@ namespace Content.Shared.Preferences /// /// The client sends this to select a character slot. /// - public class MsgSelectCharacter : NetMessage + public sealed class MsgSelectCharacter : NetMessage { public override MsgGroups MsgGroup => MsgGroups.Command; diff --git a/Content.Shared/Preferences/MsgUpdateCharacter.cs b/Content.Shared/Preferences/MsgUpdateCharacter.cs index bc44c860ca..d98de44260 100644 --- a/Content.Shared/Preferences/MsgUpdateCharacter.cs +++ b/Content.Shared/Preferences/MsgUpdateCharacter.cs @@ -9,7 +9,7 @@ namespace Content.Shared.Preferences /// /// The client sends this to update a character profile. /// - public class MsgUpdateCharacter : NetMessage + public sealed class MsgUpdateCharacter : NetMessage { public override MsgGroups MsgGroup => MsgGroups.Command; diff --git a/Content.Shared/Projectiles/SharedProjectileComponent.cs b/Content.Shared/Projectiles/SharedProjectileComponent.cs index 2555d95aae..bb784f253c 100644 --- a/Content.Shared/Projectiles/SharedProjectileComponent.cs +++ b/Content.Shared/Projectiles/SharedProjectileComponent.cs @@ -24,7 +24,7 @@ namespace Content.Shared.Projectiles } [NetSerializable, Serializable] - protected class ProjectileComponentState : ComponentState + protected sealed class ProjectileComponentState : ComponentState { public ProjectileComponentState(EntityUid shooter, bool ignoreShooter) { diff --git a/Content.Shared/Pulling/Components/PullableComponent.cs b/Content.Shared/Pulling/Components/PullableComponent.cs index 7afa3ad121..aac141dade 100644 --- a/Content.Shared/Pulling/Components/PullableComponent.cs +++ b/Content.Shared/Pulling/Components/PullableComponent.cs @@ -14,7 +14,7 @@ namespace Content.Shared.Pulling.Components [NetworkedComponent()] [Friend(typeof(SharedPullingStateManagementSystem))] [RegisterComponent] - public class SharedPullableComponent : Component + public sealed class SharedPullableComponent : Component { public float? MaxDistance => PullJoint?.MaxLength; @@ -88,7 +88,7 @@ namespace Content.Shared.Pulling.Components } [Serializable, NetSerializable] - public class PullableComponentState : ComponentState + public sealed class PullableComponentState : ComponentState { public readonly EntityUid? Puller; diff --git a/Content.Shared/Pulling/Components/SharedPullerComponent.cs b/Content.Shared/Pulling/Components/SharedPullerComponent.cs index 0cfa9df14c..4e3976168b 100644 --- a/Content.Shared/Pulling/Components/SharedPullerComponent.cs +++ b/Content.Shared/Pulling/Components/SharedPullerComponent.cs @@ -7,7 +7,7 @@ namespace Content.Shared.Pulling.Components { [RegisterComponent] [Friend(typeof(SharedPullingStateManagementSystem))] - public class SharedPullerComponent : Component + public sealed class SharedPullerComponent : Component { // Before changing how this is updated, please see SharedPullerSystem.RefreshMovementSpeed public float WalkSpeedModifier => Pulling == default ? 1.0f : 0.75f; diff --git a/Content.Shared/Pulling/Events/PullAttemptMessage.cs b/Content.Shared/Pulling/Events/PullAttemptMessage.cs index 85617f5f27..f6c8b43377 100644 --- a/Content.Shared/Pulling/Events/PullAttemptMessage.cs +++ b/Content.Shared/Pulling/Events/PullAttemptMessage.cs @@ -2,7 +2,7 @@ namespace Content.Shared.Physics.Pull { - public class PullAttemptMessage : PullMessage + public sealed class PullAttemptMessage : PullMessage { public PullAttemptMessage(IPhysBody puller, IPhysBody pulled) : base(puller, pulled) { } diff --git a/Content.Shared/Pulling/Events/PullMessage.cs b/Content.Shared/Pulling/Events/PullMessage.cs index 4376720a03..77564aa075 100644 --- a/Content.Shared/Pulling/Events/PullMessage.cs +++ b/Content.Shared/Pulling/Events/PullMessage.cs @@ -3,7 +3,7 @@ using Robust.Shared.Physics; namespace Content.Shared.Physics.Pull { - public class PullMessage : EntityEventArgs + public abstract class PullMessage : EntityEventArgs { public readonly IPhysBody Puller; public readonly IPhysBody Pulled; diff --git a/Content.Shared/Pulling/Events/PullStartedMessage.cs b/Content.Shared/Pulling/Events/PullStartedMessage.cs index d4364c36fd..30c7891eeb 100644 --- a/Content.Shared/Pulling/Events/PullStartedMessage.cs +++ b/Content.Shared/Pulling/Events/PullStartedMessage.cs @@ -2,7 +2,7 @@ namespace Content.Shared.Physics.Pull { - public class PullStartedMessage : PullMessage + public sealed class PullStartedMessage : PullMessage { public PullStartedMessage(IPhysBody puller, IPhysBody pulled) : base(puller, pulled) diff --git a/Content.Shared/Pulling/Events/PullStoppedMessage.cs b/Content.Shared/Pulling/Events/PullStoppedMessage.cs index 177c1b4f4f..d77873b7c1 100644 --- a/Content.Shared/Pulling/Events/PullStoppedMessage.cs +++ b/Content.Shared/Pulling/Events/PullStoppedMessage.cs @@ -2,7 +2,7 @@ namespace Content.Shared.Physics.Pull { - public class PullStoppedMessage : PullMessage + public sealed class PullStoppedMessage : PullMessage { public PullStoppedMessage(IPhysBody puller, IPhysBody pulled) : base(puller, pulled) { diff --git a/Content.Shared/Pulling/Events/StartPullAttemptEvent.cs b/Content.Shared/Pulling/Events/StartPullAttemptEvent.cs index d8f2665319..7d670c4a72 100644 --- a/Content.Shared/Pulling/Events/StartPullAttemptEvent.cs +++ b/Content.Shared/Pulling/Events/StartPullAttemptEvent.cs @@ -5,7 +5,7 @@ namespace Content.Shared.Pulling.Events /// /// Directed event raised on the puller to see if it can start pulling something. /// - public class StartPullAttemptEvent : CancellableEntityEventArgs + public sealed class StartPullAttemptEvent : CancellableEntityEventArgs { public StartPullAttemptEvent(EntityUid puller, EntityUid pulled) { diff --git a/Content.Shared/Pulling/PullableMoveMessage.cs b/Content.Shared/Pulling/PullableMoveMessage.cs index fb37dee134..ae05d6cabd 100644 --- a/Content.Shared/Pulling/PullableMoveMessage.cs +++ b/Content.Shared/Pulling/PullableMoveMessage.cs @@ -2,7 +2,7 @@ namespace Content.Shared.Pulling { - public class PullableMoveMessage : EntityEventArgs + public sealed class PullableMoveMessage : EntityEventArgs { } } diff --git a/Content.Shared/Pulling/PullableStopMovingMessage.cs b/Content.Shared/Pulling/PullableStopMovingMessage.cs index 77b9465140..7ad111fe18 100644 --- a/Content.Shared/Pulling/PullableStopMovingMessage.cs +++ b/Content.Shared/Pulling/PullableStopMovingMessage.cs @@ -2,7 +2,7 @@ namespace Content.Shared.Pulling { - public class PullableStopMovingMessage : EntityEventArgs + public sealed class PullableStopMovingMessage : EntityEventArgs { } } diff --git a/Content.Shared/Pulling/Systems/SharedPullableSystem.cs b/Content.Shared/Pulling/Systems/SharedPullableSystem.cs index 7d928c0a7c..e53943431b 100644 --- a/Content.Shared/Pulling/Systems/SharedPullableSystem.cs +++ b/Content.Shared/Pulling/Systems/SharedPullableSystem.cs @@ -6,7 +6,7 @@ using Robust.Shared.IoC; namespace Content.Shared.Pulling.Systems { - public class SharedPullableSystem : EntitySystem + public sealed class SharedPullableSystem : EntitySystem { [Dependency] private readonly ActionBlockerSystem _blocker = default!; [Dependency] private readonly SharedPullingSystem _pullSystem = default!; diff --git a/Content.Shared/Pulling/Systems/SharedPullingStateManagementSystem.cs b/Content.Shared/Pulling/Systems/SharedPullingStateManagementSystem.cs index 4ee4303662..95f9d7a8cb 100644 --- a/Content.Shared/Pulling/Systems/SharedPullingStateManagementSystem.cs +++ b/Content.Shared/Pulling/Systems/SharedPullingStateManagementSystem.cs @@ -27,7 +27,7 @@ namespace Content.Shared.Pulling /// Because pulling state is such a mess to get right, all writes to pulling state must go through this class. /// [UsedImplicitly] - public class SharedPullingStateManagementSystem : EntitySystem + public sealed class SharedPullingStateManagementSystem : EntitySystem { [Dependency] private readonly SharedJointSystem _jointSystem = default!; [Dependency] private readonly SharedPhysicsSystem _physics = default!; diff --git a/Content.Shared/Radiation/SharedRadiationStorm.cs b/Content.Shared/Radiation/SharedRadiationStorm.cs index 430395e167..eedd39b160 100644 --- a/Content.Shared/Radiation/SharedRadiationStorm.cs +++ b/Content.Shared/Radiation/SharedRadiationStorm.cs @@ -28,7 +28,7 @@ namespace Content.Shared.Radiation /// For syncing the pulse's lifespan between client and server for the overlay /// [Serializable, NetSerializable] - public class RadiationPulseState : ComponentState + public sealed class RadiationPulseState : ComponentState { // not networking RadsPerSecond because damage is only ever dealt by server-side systems. diff --git a/Content.Shared/Research/Components/SharedResearchClientComponent.cs b/Content.Shared/Research/Components/SharedResearchClientComponent.cs index 0489655f42..52fc64a69d 100644 --- a/Content.Shared/Research/Components/SharedResearchClientComponent.cs +++ b/Content.Shared/Research/Components/SharedResearchClientComponent.cs @@ -4,13 +4,14 @@ using Robust.Shared.Serialization; namespace Content.Shared.Research.Components { + [Virtual] public class SharedResearchClientComponent : Component { /// /// Request that the server updates the client. /// [Serializable, NetSerializable] - public class ResearchClientSyncMessage : BoundUserInterfaceMessage + public sealed class ResearchClientSyncMessage : BoundUserInterfaceMessage { public ResearchClientSyncMessage() @@ -22,7 +23,7 @@ namespace Content.Shared.Research.Components /// Sent to the server when the client chooses a research server. /// [Serializable, NetSerializable] - public class ResearchClientServerSelectedMessage : BoundUserInterfaceMessage + public sealed class ResearchClientServerSelectedMessage : BoundUserInterfaceMessage { public int ServerId; @@ -36,7 +37,7 @@ namespace Content.Shared.Research.Components /// Sent to the server when the client deselects a research server. /// [Serializable, NetSerializable] - public class ResearchClientServerDeselectedMessage : BoundUserInterfaceMessage + public sealed class ResearchClientServerDeselectedMessage : BoundUserInterfaceMessage { public ResearchClientServerDeselectedMessage() { diff --git a/Content.Shared/Research/Components/SharedResearchConsoleComponent.cs b/Content.Shared/Research/Components/SharedResearchConsoleComponent.cs index e2a327e840..42f1d1fdad 100644 --- a/Content.Shared/Research/Components/SharedResearchConsoleComponent.cs +++ b/Content.Shared/Research/Components/SharedResearchConsoleComponent.cs @@ -6,6 +6,7 @@ using Robust.Shared.Serialization; namespace Content.Shared.Research.Components { [NetworkedComponent()] + [Virtual] public class SharedResearchConsoleComponent : Component { @@ -16,7 +17,7 @@ namespace Content.Shared.Research.Components } [Serializable, NetSerializable] - public class ConsoleUnlockTechnologyMessage : BoundUserInterfaceMessage + public sealed class ConsoleUnlockTechnologyMessage : BoundUserInterfaceMessage { public string Id; @@ -27,14 +28,14 @@ namespace Content.Shared.Research.Components } [Serializable, NetSerializable] - public class ConsoleServerSyncMessage : BoundUserInterfaceMessage + public sealed class ConsoleServerSyncMessage : BoundUserInterfaceMessage { public ConsoleServerSyncMessage() {} } [Serializable, NetSerializable] - public class ConsoleServerSelectionMessage : BoundUserInterfaceMessage + public sealed class ConsoleServerSelectionMessage : BoundUserInterfaceMessage { public ConsoleServerSelectionMessage() {} diff --git a/Content.Shared/Research/Components/SharedTechnologyDatabaseComponent.cs b/Content.Shared/Research/Components/SharedTechnologyDatabaseComponent.cs index 1a67321a8e..73b6edbdc8 100644 --- a/Content.Shared/Research/Components/SharedTechnologyDatabaseComponent.cs +++ b/Content.Shared/Research/Components/SharedTechnologyDatabaseComponent.cs @@ -12,7 +12,7 @@ using Robust.Shared.Serialization.Manager.Attributes; namespace Content.Shared.Research.Components { [NetworkedComponent()] - public class SharedTechnologyDatabaseComponent : Component, IEnumerable, ISerializationHooks + public abstract class SharedTechnologyDatabaseComponent : Component, IEnumerable, ISerializationHooks { [DataField("technologies")] private List _technologyIds = new(); @@ -108,7 +108,7 @@ namespace Content.Shared.Research.Components } [Serializable, NetSerializable] - public class TechnologyDatabaseState : ComponentState + public sealed class TechnologyDatabaseState : ComponentState { public List Technologies; public TechnologyDatabaseState(List technologies) diff --git a/Content.Shared/Research/Prototypes/LatheRecipePrototype.cs b/Content.Shared/Research/Prototypes/LatheRecipePrototype.cs index 6ec7652072..229eb94ac9 100644 --- a/Content.Shared/Research/Prototypes/LatheRecipePrototype.cs +++ b/Content.Shared/Research/Prototypes/LatheRecipePrototype.cs @@ -13,7 +13,7 @@ using Robust.Shared.ViewVariables; namespace Content.Shared.Research.Prototypes { [NetSerializable, Serializable, Prototype("latheRecipe")] - public class LatheRecipePrototype : IPrototype + public sealed class LatheRecipePrototype : IPrototype { [ViewVariables] [DataField("id", required: true)] diff --git a/Content.Shared/Research/Prototypes/TechnologyPrototype.cs b/Content.Shared/Research/Prototypes/TechnologyPrototype.cs index a7b029af03..9714ca07f0 100644 --- a/Content.Shared/Research/Prototypes/TechnologyPrototype.cs +++ b/Content.Shared/Research/Prototypes/TechnologyPrototype.cs @@ -10,7 +10,7 @@ using Robust.Shared.ViewVariables; namespace Content.Shared.Research.Prototypes { [NetSerializable, Serializable, Prototype("technology")] - public class TechnologyPrototype : IPrototype + public sealed class TechnologyPrototype : IPrototype { /// /// The ID of this technology prototype. diff --git a/Content.Shared/Roles/AntagPrototype.cs b/Content.Shared/Roles/AntagPrototype.cs index 3f03f22377..a365d7b3e7 100644 --- a/Content.Shared/Roles/AntagPrototype.cs +++ b/Content.Shared/Roles/AntagPrototype.cs @@ -8,7 +8,7 @@ namespace Content.Shared.Roles /// Describes information for a single antag. /// [Prototype("antag")] - public class AntagPrototype : IPrototype + public sealed class AntagPrototype : IPrototype { [ViewVariables] [DataField("id", required: true)] diff --git a/Content.Shared/Roles/JobPrototype.cs b/Content.Shared/Roles/JobPrototype.cs index b60d7a7337..0c338c8600 100644 --- a/Content.Shared/Roles/JobPrototype.cs +++ b/Content.Shared/Roles/JobPrototype.cs @@ -13,7 +13,7 @@ namespace Content.Shared.Roles /// Describes information for a single job on the station. /// [Prototype("job")] - public class JobPrototype : IPrototype + public sealed class JobPrototype : IPrototype { private string _name = string.Empty; diff --git a/Content.Shared/Roles/StartingGearPrototype.cs b/Content.Shared/Roles/StartingGearPrototype.cs index 42631fbda7..ac21006c31 100644 --- a/Content.Shared/Roles/StartingGearPrototype.cs +++ b/Content.Shared/Roles/StartingGearPrototype.cs @@ -8,7 +8,7 @@ using Robust.Shared.ViewVariables; namespace Content.Shared.Roles { [Prototype("startingGear")] - public class StartingGearPrototype : IPrototype + public sealed class StartingGearPrototype : IPrototype { // TODO: Custom TypeSerializer for dictionary value prototype IDs [DataField("equipment")] private Dictionary _equipment = new(); diff --git a/Content.Shared/Rotatable/RotatableComponent.cs b/Content.Shared/Rotatable/RotatableComponent.cs index 524cfaf512..225119d1f0 100644 --- a/Content.Shared/Rotatable/RotatableComponent.cs +++ b/Content.Shared/Rotatable/RotatableComponent.cs @@ -6,7 +6,7 @@ using Robust.Shared.Maths; namespace Content.Shared.Rotatable { [RegisterComponent] - public class RotatableComponent : Component + public sealed class RotatableComponent : Component { /// /// If true, this entity can be rotated even while anchored. diff --git a/Content.Shared/Singularity/Components/SharedParticleAcceleratorComponent.cs b/Content.Shared/Singularity/Components/SharedParticleAcceleratorComponent.cs index 24884fce7b..c18649a0b7 100644 --- a/Content.Shared/Singularity/Components/SharedParticleAcceleratorComponent.cs +++ b/Content.Shared/Singularity/Components/SharedParticleAcceleratorComponent.cs @@ -49,7 +49,7 @@ namespace Content.Shared.Singularity.Components } [NetSerializable, Serializable] - public class ParticleAcceleratorUIState : BoundUserInterfaceState + public sealed class ParticleAcceleratorUIState : BoundUserInterfaceState { public bool Assembled; public bool Enabled; @@ -89,7 +89,7 @@ namespace Content.Shared.Singularity.Components } [NetSerializable, Serializable] - public class ParticleAcceleratorSetEnableMessage : BoundUserInterfaceMessage + public sealed class ParticleAcceleratorSetEnableMessage : BoundUserInterfaceMessage { public readonly bool Enabled; public ParticleAcceleratorSetEnableMessage(bool enabled) @@ -99,7 +99,7 @@ namespace Content.Shared.Singularity.Components } [NetSerializable, Serializable] - public class ParticleAcceleratorRescanPartsMessage : BoundUserInterfaceMessage + public sealed class ParticleAcceleratorRescanPartsMessage : BoundUserInterfaceMessage { public ParticleAcceleratorRescanPartsMessage() { @@ -107,7 +107,7 @@ namespace Content.Shared.Singularity.Components } [NetSerializable, Serializable] - public class ParticleAcceleratorSetPowerStateMessage : BoundUserInterfaceMessage + public sealed class ParticleAcceleratorSetPowerStateMessage : BoundUserInterfaceMessage { public readonly ParticleAcceleratorPowerState State; diff --git a/Content.Shared/Singularity/Components/SingularityDistortionComponent.cs b/Content.Shared/Singularity/Components/SingularityDistortionComponent.cs index 3915504c8b..f9dc1aa523 100644 --- a/Content.Shared/Singularity/Components/SingularityDistortionComponent.cs +++ b/Content.Shared/Singularity/Components/SingularityDistortionComponent.cs @@ -10,7 +10,7 @@ namespace Content.Shared.Singularity.Components { [RegisterComponent] [NetworkedComponent] - public class SingularityDistortionComponent : Component + public sealed class SingularityDistortionComponent : Component { [DataField("intensity")] private float _intensity = 0.25f; @@ -52,7 +52,7 @@ namespace Content.Shared.Singularity.Components } [Serializable, NetSerializable] - public class SingularityDistortionComponentState : ComponentState + public sealed class SingularityDistortionComponentState : ComponentState { public SingularityDistortionComponentState(float intensity, float falloff) { diff --git a/Content.Shared/Slippery/NoSlipComponent.cs b/Content.Shared/Slippery/NoSlipComponent.cs index 20a6f01d1d..a4bfb7152a 100644 --- a/Content.Shared/Slippery/NoSlipComponent.cs +++ b/Content.Shared/Slippery/NoSlipComponent.cs @@ -3,7 +3,7 @@ using Robust.Shared.GameObjects; namespace Content.Shared.Slippery { [RegisterComponent] - public class NoSlipComponent : Component + public sealed class NoSlipComponent : Component { } } diff --git a/Content.Shared/Slippery/SharedSlipperySystem.cs b/Content.Shared/Slippery/SharedSlipperySystem.cs index 7a3204c848..a443eea497 100644 --- a/Content.Shared/Slippery/SharedSlipperySystem.cs +++ b/Content.Shared/Slippery/SharedSlipperySystem.cs @@ -159,7 +159,7 @@ namespace Content.Shared.Slippery /// /// Raised on an entity to determine if it can slip or not. /// - public class SlipAttemptEvent : CancellableEntityEventArgs, IInventoryRelayEvent + public sealed class SlipAttemptEvent : CancellableEntityEventArgs, IInventoryRelayEvent { public SlotFlags TargetSlots { get; } = SlotFlags.FEET; } diff --git a/Content.Shared/Slippery/SlipperyComponent.cs b/Content.Shared/Slippery/SlipperyComponent.cs index 56f4aea6f7..f62c9a24be 100644 --- a/Content.Shared/Slippery/SlipperyComponent.cs +++ b/Content.Shared/Slippery/SlipperyComponent.cs @@ -161,7 +161,7 @@ namespace Content.Shared.Slippery } [Serializable, NetSerializable] - public class SlipperyComponentState : ComponentState + public sealed class SlipperyComponentState : ComponentState { public float ParalyzeTime { get; } public float IntersectPercentage { get; } diff --git a/Content.Shared/Solar/SharedSolarControlConsoleComponent.cs b/Content.Shared/Solar/SharedSolarControlConsoleComponent.cs index 9154efd066..6a174051b3 100644 --- a/Content.Shared/Solar/SharedSolarControlConsoleComponent.cs +++ b/Content.Shared/Solar/SharedSolarControlConsoleComponent.cs @@ -6,7 +6,7 @@ using Robust.Shared.Serialization; namespace Content.Shared.Solar { [Serializable, NetSerializable] - public class SolarControlConsoleBoundInterfaceState : BoundUserInterfaceState + public sealed class SolarControlConsoleBoundInterfaceState : BoundUserInterfaceState { /// /// The target rotation of the panels in radians. diff --git a/Content.Shared/Sound/SoundSpecifierTypeSerializer.cs b/Content.Shared/Sound/SoundSpecifierTypeSerializer.cs index 52c81c537c..8497b76a44 100644 --- a/Content.Shared/Sound/SoundSpecifierTypeSerializer.cs +++ b/Content.Shared/Sound/SoundSpecifierTypeSerializer.cs @@ -12,7 +12,7 @@ using Robust.Shared.Utility; namespace Content.Shared.Sound { [TypeSerializer] - public class SoundSpecifierTypeSerializer : + public sealed class SoundSpecifierTypeSerializer : ITypeReader, ITypeReader { diff --git a/Content.Shared/Species/SpeciesManager.cs b/Content.Shared/Species/SpeciesManager.cs index 496b7a29b2..f00de87a71 100644 --- a/Content.Shared/Species/SpeciesManager.cs +++ b/Content.Shared/Species/SpeciesManager.cs @@ -1,6 +1,6 @@ namespace Content.Shared.Species; -public class SpeciesManager +public sealed class SpeciesManager { public const string DefaultSpecies = "Human"; } diff --git a/Content.Shared/Species/SpeciesPrototype.cs b/Content.Shared/Species/SpeciesPrototype.cs index a1b2fbe56b..22e43d78d6 100644 --- a/Content.Shared/Species/SpeciesPrototype.cs +++ b/Content.Shared/Species/SpeciesPrototype.cs @@ -5,7 +5,7 @@ using Robust.Shared.ViewVariables; namespace Content.Shared.Species; [Prototype("species")] -public class SpeciesPrototype : IPrototype +public sealed class SpeciesPrototype : IPrototype { /// /// Prototype ID of the species. diff --git a/Content.Shared/Speech/SharedSpeechComponent.cs b/Content.Shared/Speech/SharedSpeechComponent.cs index 17eaf3315c..d42e922562 100644 --- a/Content.Shared/Speech/SharedSpeechComponent.cs +++ b/Content.Shared/Speech/SharedSpeechComponent.cs @@ -7,7 +7,7 @@ namespace Content.Shared.Speech /// Component required for entities to be able to speak. /// [RegisterComponent] - public class SharedSpeechComponent : Component + public sealed class SharedSpeechComponent : Component { [DataField("enabled")] private bool _enabled = true; diff --git a/Content.Shared/Speech/SpeakAttemptEvent.cs b/Content.Shared/Speech/SpeakAttemptEvent.cs index b710a2ec6e..078abcc372 100644 --- a/Content.Shared/Speech/SpeakAttemptEvent.cs +++ b/Content.Shared/Speech/SpeakAttemptEvent.cs @@ -2,7 +2,7 @@ namespace Content.Shared.Speech { - public class SpeakAttemptEvent : CancellableEntityEventArgs + public sealed class SpeakAttemptEvent : CancellableEntityEventArgs { public SpeakAttemptEvent(EntityUid uid) { diff --git a/Content.Shared/Speech/SpeechSystem.cs b/Content.Shared/Speech/SpeechSystem.cs index 680959e562..9d22073597 100644 --- a/Content.Shared/Speech/SpeechSystem.cs +++ b/Content.Shared/Speech/SpeechSystem.cs @@ -2,7 +2,7 @@ namespace Content.Shared.Speech { - public class SpeechSystem : EntitySystem + public sealed class SpeechSystem : EntitySystem { public override void Initialize() { diff --git a/Content.Shared/Stacks/SharedStackSystem.cs b/Content.Shared/Stacks/SharedStackSystem.cs index a1c6a55e13..0daf9a2eb6 100644 --- a/Content.Shared/Stacks/SharedStackSystem.cs +++ b/Content.Shared/Stacks/SharedStackSystem.cs @@ -123,7 +123,7 @@ namespace Content.Shared.Stacks /// /// Event raised when a stack's count has changed. /// - public class StackCountChangedEvent : EntityEventArgs + public sealed class StackCountChangedEvent : EntityEventArgs { /// /// The old stack count. diff --git a/Content.Shared/Stacks/StackPrototype.cs b/Content.Shared/Stacks/StackPrototype.cs index 567b24d5d5..d54d745605 100644 --- a/Content.Shared/Stacks/StackPrototype.cs +++ b/Content.Shared/Stacks/StackPrototype.cs @@ -7,7 +7,7 @@ using Robust.Shared.ViewVariables; namespace Content.Shared.Stacks { [Prototype("stack")] - public class StackPrototype : IPrototype + public sealed class StackPrototype : IPrototype { [ViewVariables] [DataField("id", required: true)] diff --git a/Content.Shared/StationEvents/MsgRequestStationEvents.cs b/Content.Shared/StationEvents/MsgRequestStationEvents.cs index aeb8c5d9ca..09345c692e 100644 --- a/Content.Shared/StationEvents/MsgRequestStationEvents.cs +++ b/Content.Shared/StationEvents/MsgRequestStationEvents.cs @@ -3,7 +3,7 @@ using Robust.Shared.Network; namespace Content.Shared.StationEvents { - public class MsgRequestStationEvents : NetMessage + public sealed class MsgRequestStationEvents : NetMessage { public override MsgGroups MsgGroup => MsgGroups.Command; diff --git a/Content.Shared/StationEvents/MsgStationEvents.cs b/Content.Shared/StationEvents/MsgStationEvents.cs index b03e6db7f7..f6739f071e 100644 --- a/Content.Shared/StationEvents/MsgStationEvents.cs +++ b/Content.Shared/StationEvents/MsgStationEvents.cs @@ -7,7 +7,7 @@ using Robust.Shared.Serialization; namespace Content.Shared.StationEvents { - public class MsgStationEvents : NetMessage + public sealed class MsgStationEvents : NetMessage { public override MsgGroups MsgGroup => MsgGroups.Command; diff --git a/Content.Shared/StatusEffect/StatusEffectPrototype.cs b/Content.Shared/StatusEffect/StatusEffectPrototype.cs index 075a2b4fff..6b3e3846c9 100644 --- a/Content.Shared/StatusEffect/StatusEffectPrototype.cs +++ b/Content.Shared/StatusEffect/StatusEffectPrototype.cs @@ -5,7 +5,7 @@ using Robust.Shared.Serialization.Manager.Attributes; namespace Content.Shared.StatusEffect { [Prototype("statusEffect")] - public class StatusEffectPrototype : IPrototype + public sealed class StatusEffectPrototype : IPrototype { [DataField("id", required: true)] public string ID { get; } = default!; diff --git a/Content.Shared/StatusEffect/StatusEffectsComponent.cs b/Content.Shared/StatusEffect/StatusEffectsComponent.cs index a90ab27472..8dd3ef7813 100644 --- a/Content.Shared/StatusEffect/StatusEffectsComponent.cs +++ b/Content.Shared/StatusEffect/StatusEffectsComponent.cs @@ -12,7 +12,7 @@ namespace Content.Shared.StatusEffect [RegisterComponent] [NetworkedComponent] [Friend(typeof(StatusEffectsSystem))] - public class StatusEffectsComponent : Component + public sealed class StatusEffectsComponent : Component { [ViewVariables] public Dictionary ActiveEffects = new(); @@ -28,7 +28,7 @@ namespace Content.Shared.StatusEffect /// Holds information about an active status effect. /// [Serializable, NetSerializable] - public class StatusEffectState + public sealed class StatusEffectState { /// /// The start and end times of the status effect. @@ -59,7 +59,7 @@ namespace Content.Shared.StatusEffect } [Serializable, NetSerializable] - public class StatusEffectsComponentState : ComponentState + public sealed class StatusEffectsComponentState : ComponentState { public Dictionary ActiveEffects; public List AllowedEffects; diff --git a/Content.Shared/Storage/Components/ItemCounterComponent.cs b/Content.Shared/Storage/Components/ItemCounterComponent.cs index 5296dcf266..a56bfea063 100644 --- a/Content.Shared/Storage/Components/ItemCounterComponent.cs +++ b/Content.Shared/Storage/Components/ItemCounterComponent.cs @@ -20,7 +20,7 @@ namespace Content.Shared.Storage.Components /// [RegisterComponent] [Friend(typeof(SharedItemCounterSystem))] - public class ItemCounterComponent : Component + public sealed class ItemCounterComponent : Component { [DataField("count", required: true)] public EntityWhitelist Count { get; set; } = default!; diff --git a/Content.Shared/Storage/Components/ItemMapperComponent.cs b/Content.Shared/Storage/Components/ItemMapperComponent.cs index eb9e1812c3..c3a21ffc2a 100644 --- a/Content.Shared/Storage/Components/ItemMapperComponent.cs +++ b/Content.Shared/Storage/Components/ItemMapperComponent.cs @@ -9,7 +9,7 @@ namespace Content.Shared.Storage.Components { [RegisterComponent] [Friend(typeof(SharedItemMapperSystem))] - public class ItemMapperComponent : Component, ISerializationHooks + public sealed class ItemMapperComponent : Component, ISerializationHooks { [DataField("mapLayers")] public readonly Dictionary MapLayers = new(); diff --git a/Content.Shared/Storage/Components/SharedMapLayerData.cs b/Content.Shared/Storage/Components/SharedMapLayerData.cs index 5f9f82f8d8..7ce1be7541 100644 --- a/Content.Shared/Storage/Components/SharedMapLayerData.cs +++ b/Content.Shared/Storage/Components/SharedMapLayerData.cs @@ -15,7 +15,7 @@ namespace Content.Shared.Storage.Components [Serializable] [DataDefinition] - public class SharedMapLayerData + public sealed class SharedMapLayerData { public string Layer = string.Empty; @@ -24,7 +24,7 @@ namespace Content.Shared.Storage.Components } [Serializable, NetSerializable] - public class ShowLayerData : ICloneable + public sealed class ShowLayerData : ICloneable { public IReadOnlyList QueuedEntities { get; internal set; } diff --git a/Content.Shared/Storage/SharedStorageComponent.cs b/Content.Shared/Storage/SharedStorageComponent.cs index f9f5c4a4fe..dbc6f93fc3 100644 --- a/Content.Shared/Storage/SharedStorageComponent.cs +++ b/Content.Shared/Storage/SharedStorageComponent.cs @@ -60,7 +60,7 @@ namespace Content.Shared.Storage } [Serializable, NetSerializable] - public class StorageComponentState : ComponentState + public sealed class StorageComponentState : ComponentState { public readonly EntityUid[] StoredEntities; @@ -75,7 +75,7 @@ namespace Content.Shared.Storage /// [Serializable, NetSerializable] #pragma warning disable 618 - public class StorageHeldItemsMessage : ComponentMessage + public sealed class StorageHeldItemsMessage : ComponentMessage #pragma warning restore 618 { public readonly int StorageSizeMax; @@ -96,7 +96,7 @@ namespace Content.Shared.Storage /// [Serializable, NetSerializable] #pragma warning disable 618 - public class InsertEntityMessage : ComponentMessage + public sealed class InsertEntityMessage : ComponentMessage #pragma warning restore 618 { public InsertEntityMessage() @@ -110,7 +110,7 @@ namespace Content.Shared.Storage /// [Serializable, NetSerializable] #pragma warning disable 618 - public class AnimateInsertingEntitiesMessage : ComponentMessage + public sealed class AnimateInsertingEntitiesMessage : ComponentMessage #pragma warning restore 618 { public readonly List StoredEntities; @@ -128,7 +128,7 @@ namespace Content.Shared.Storage /// [Serializable, NetSerializable] #pragma warning disable 618 - public class RemoveEntityMessage : ComponentMessage + public sealed class RemoveEntityMessage : ComponentMessage #pragma warning restore 618 { public EntityUid EntityUid; @@ -145,7 +145,7 @@ namespace Content.Shared.Storage /// [Serializable, NetSerializable] #pragma warning disable 618 - public class OpenStorageUIMessage : ComponentMessage + public sealed class OpenStorageUIMessage : ComponentMessage #pragma warning restore 618 { public OpenStorageUIMessage() @@ -160,7 +160,7 @@ namespace Content.Shared.Storage /// [Serializable, NetSerializable] #pragma warning disable 618 - public class CloseStorageUIMessage : ComponentMessage + public sealed class CloseStorageUIMessage : ComponentMessage #pragma warning restore 618 { public CloseStorageUIMessage() diff --git a/Content.Shared/Strip/Components/SharedStrippableComponent.cs b/Content.Shared/Strip/Components/SharedStrippableComponent.cs index 1546e69885..43521309ea 100644 --- a/Content.Shared/Strip/Components/SharedStrippableComponent.cs +++ b/Content.Shared/Strip/Components/SharedStrippableComponent.cs @@ -35,7 +35,7 @@ namespace Content.Shared.Strip.Components } [NetSerializable, Serializable] - public class StrippingInventoryButtonPressed : BoundUserInterfaceMessage + public sealed class StrippingInventoryButtonPressed : BoundUserInterfaceMessage { public string Slot { get; } @@ -46,7 +46,7 @@ namespace Content.Shared.Strip.Components } [NetSerializable, Serializable] - public class StrippingHandButtonPressed : BoundUserInterfaceMessage + public sealed class StrippingHandButtonPressed : BoundUserInterfaceMessage { public string Hand { get; } @@ -57,7 +57,7 @@ namespace Content.Shared.Strip.Components } [NetSerializable, Serializable] - public class StrippingHandcuffButtonPressed : BoundUserInterfaceMessage + public sealed class StrippingHandcuffButtonPressed : BoundUserInterfaceMessage { public EntityUid Handcuff { get; } @@ -68,7 +68,7 @@ namespace Content.Shared.Strip.Components } [NetSerializable, Serializable] - public class StrippingBoundUserInterfaceState : BoundUserInterfaceState + public sealed class StrippingBoundUserInterfaceState : BoundUserInterfaceState { public Dictionary<(string ID, string Name), string> Inventory { get; } public Dictionary Hands { get; } diff --git a/Content.Shared/Strip/Components/SharedStrippingComponent.cs b/Content.Shared/Strip/Components/SharedStrippingComponent.cs index 731257169f..33ea82fb64 100644 --- a/Content.Shared/Strip/Components/SharedStrippingComponent.cs +++ b/Content.Shared/Strip/Components/SharedStrippingComponent.cs @@ -8,7 +8,7 @@ namespace Content.Shared.Strip.Components /// Give to an entity to say they can strip another entity. /// [RegisterComponent] - public class SharedStrippingComponent : Component, IDragDropOn + public sealed class SharedStrippingComponent : Component, IDragDropOn { bool IDragDropOn.CanDragDropOn(DragDropEvent eventArgs) { diff --git a/Content.Shared/Stunnable/KnockedDownComponent.cs b/Content.Shared/Stunnable/KnockedDownComponent.cs index 6972d542af..a3f0526203 100644 --- a/Content.Shared/Stunnable/KnockedDownComponent.cs +++ b/Content.Shared/Stunnable/KnockedDownComponent.cs @@ -12,7 +12,7 @@ namespace Content.Shared.Stunnable [RegisterComponent] [NetworkedComponent] [Friend(typeof(SharedStunSystem))] - public class KnockedDownComponent : Component + public sealed class KnockedDownComponent : Component { [DataField("helpInterval")] public float HelpInterval { get; set; } = 1f; @@ -25,7 +25,7 @@ namespace Content.Shared.Stunnable } [Serializable, NetSerializable] - public class KnockedDownComponentState : ComponentState + public sealed class KnockedDownComponentState : ComponentState { public float HelpInterval { get; set; } public float HelpTimer { get; set; } diff --git a/Content.Shared/Stunnable/SlowedDownComponent.cs b/Content.Shared/Stunnable/SlowedDownComponent.cs index ca32b8ffb3..68fd3d176b 100644 --- a/Content.Shared/Stunnable/SlowedDownComponent.cs +++ b/Content.Shared/Stunnable/SlowedDownComponent.cs @@ -10,14 +10,14 @@ namespace Content.Shared.Stunnable [RegisterComponent] [NetworkedComponent] [Friend(typeof(SharedStunSystem))] - public class SlowedDownComponent : Component + public sealed class SlowedDownComponent : Component { public float SprintSpeedModifier { get; set; } = 0.5f; public float WalkSpeedModifier { get; set; } = 0.5f; } [Serializable, NetSerializable] - public class SlowedDownComponentState : ComponentState + public sealed class SlowedDownComponentState : ComponentState { public float SprintSpeedModifier { get; set; } public float WalkSpeedModifier { get; set; } diff --git a/Content.Shared/Suspicion/SharedSuspicionRoleComponent.cs b/Content.Shared/Suspicion/SharedSuspicionRoleComponent.cs index 79fcb0cf36..e3018c19e6 100644 --- a/Content.Shared/Suspicion/SharedSuspicionRoleComponent.cs +++ b/Content.Shared/Suspicion/SharedSuspicionRoleComponent.cs @@ -11,7 +11,7 @@ namespace Content.Shared.Suspicion } [Serializable, NetSerializable] - public class SuspicionRoleComponentState : ComponentState + public sealed class SuspicionRoleComponentState : ComponentState { public readonly string? Role; public readonly bool? Antagonist; diff --git a/Content.Shared/Tabletop/Events/TabletopMoveEvent.cs b/Content.Shared/Tabletop/Events/TabletopMoveEvent.cs index c1b20ca1c1..6230e12326 100644 --- a/Content.Shared/Tabletop/Events/TabletopMoveEvent.cs +++ b/Content.Shared/Tabletop/Events/TabletopMoveEvent.cs @@ -11,7 +11,7 @@ namespace Content.Shared.Tabletop.Events /// has been moved. /// [Serializable, NetSerializable] - public class TabletopMoveEvent : EntityEventArgs + public sealed class TabletopMoveEvent : EntityEventArgs { /// /// The UID of the entity being moved. diff --git a/Content.Shared/Tabletop/Events/TabletopPlayEvent.cs b/Content.Shared/Tabletop/Events/TabletopPlayEvent.cs index 7c5ee899c9..513750b9c6 100644 --- a/Content.Shared/Tabletop/Events/TabletopPlayEvent.cs +++ b/Content.Shared/Tabletop/Events/TabletopPlayEvent.cs @@ -9,7 +9,7 @@ namespace Content.Shared.Tabletop.Events /// An event sent by the server to the client to tell the client to open a tabletop game window. /// [Serializable, NetSerializable] - public class TabletopPlayEvent : EntityEventArgs + public sealed class TabletopPlayEvent : EntityEventArgs { public EntityUid TableUid; public EntityUid CameraUid; diff --git a/Content.Shared/Tabletop/Events/TabletopStopPlayingEvent.cs b/Content.Shared/Tabletop/Events/TabletopStopPlayingEvent.cs index 6b03c1c27e..565ee1380a 100644 --- a/Content.Shared/Tabletop/Events/TabletopStopPlayingEvent.cs +++ b/Content.Shared/Tabletop/Events/TabletopStopPlayingEvent.cs @@ -8,7 +8,7 @@ namespace Content.Shared.Tabletop.Events /// An event ot tell the server that we have stopped playing this tabletop game. /// [Serializable, NetSerializable] - public class TabletopStopPlayingEvent : EntityEventArgs + public sealed class TabletopStopPlayingEvent : EntityEventArgs { /// /// The entity UID of the table associated with this tabletop game. diff --git a/Content.Shared/Tag/TagComponentState.cs b/Content.Shared/Tag/TagComponentState.cs index bd19aae427..1ecce9fee2 100644 --- a/Content.Shared/Tag/TagComponentState.cs +++ b/Content.Shared/Tag/TagComponentState.cs @@ -5,7 +5,7 @@ using Robust.Shared.Serialization; namespace Content.Shared.Tag { [Serializable, NetSerializable] - public class TagComponentState : ComponentState + public sealed class TagComponentState : ComponentState { public TagComponentState(string[] tags) { diff --git a/Content.Shared/Tag/TagPrototype.cs b/Content.Shared/Tag/TagPrototype.cs index 7ce6b1f03a..6cca137b27 100644 --- a/Content.Shared/Tag/TagPrototype.cs +++ b/Content.Shared/Tag/TagPrototype.cs @@ -10,7 +10,7 @@ namespace Content.Shared.Tag /// gets saved in TagComponent. /// [Prototype("Tag")] - public class TagPrototype : IPrototype + public sealed class TagPrototype : IPrototype { [ViewVariables] [DataField("id", required: true)] diff --git a/Content.Shared/Temperature/IsHotEvent.cs b/Content.Shared/Temperature/IsHotEvent.cs index a70965a159..e68a6f2268 100644 --- a/Content.Shared/Temperature/IsHotEvent.cs +++ b/Content.Shared/Temperature/IsHotEvent.cs @@ -7,7 +7,7 @@ namespace Content.Shared.Temperature /// Directed event raised on entities to query whether they're "hot" or not. /// For example, a lit welder or matchstick would be hot, etc. /// - public class IsHotEvent : EntityEventArgs + public sealed class IsHotEvent : EntityEventArgs { public bool IsHot { get; set; } = false; } diff --git a/Content.Shared/Throwing/IThrown.cs b/Content.Shared/Throwing/IThrown.cs index f0e474ac86..c25f7da07f 100644 --- a/Content.Shared/Throwing/IThrown.cs +++ b/Content.Shared/Throwing/IThrown.cs @@ -7,7 +7,7 @@ namespace Content.Shared.Throwing /// Raised when throwing the entity in your hands. /// [PublicAPI] - public class ThrownEvent : HandledEntityEventArgs + public sealed class ThrownEvent : HandledEntityEventArgs { /// /// Entity that threw the item. diff --git a/Content.Shared/Throwing/ThrowAttemptEvent.cs b/Content.Shared/Throwing/ThrowAttemptEvent.cs index 9c23647c69..044ada0ebe 100644 --- a/Content.Shared/Throwing/ThrowAttemptEvent.cs +++ b/Content.Shared/Throwing/ThrowAttemptEvent.cs @@ -2,7 +2,7 @@ namespace Content.Shared.Throwing { - public class ThrowAttemptEvent : CancellableEntityEventArgs + public sealed class ThrowAttemptEvent : CancellableEntityEventArgs { public ThrowAttemptEvent(EntityUid uid) { diff --git a/Content.Shared/Throwing/ThrowEvents.cs b/Content.Shared/Throwing/ThrowEvents.cs index 1142eceb07..34a3145e95 100644 --- a/Content.Shared/Throwing/ThrowEvents.cs +++ b/Content.Shared/Throwing/ThrowEvents.cs @@ -36,7 +36,7 @@ namespace Content.Shared.Throwing /// /// Raised directed on the target entity being hit by the thrown entity. /// - public class ThrowHitByEvent : ThrowEvent + public sealed class ThrowHitByEvent : ThrowEvent { public ThrowHitByEvent(EntityUid? user, EntityUid thrown, EntityUid target) : base(user, thrown, target) { @@ -46,7 +46,7 @@ namespace Content.Shared.Throwing /// /// Raised directed on the thrown entity that hits another. /// - public class ThrowDoHitEvent : ThrowEvent + public sealed class ThrowDoHitEvent : ThrowEvent { public ThrowDoHitEvent(EntityUid? user, EntityUid thrown, EntityUid target) : base(user, thrown, target) { diff --git a/Content.Shared/Throwing/ThrownItemComponent.cs b/Content.Shared/Throwing/ThrownItemComponent.cs index 59c39b553f..6895e22404 100644 --- a/Content.Shared/Throwing/ThrownItemComponent.cs +++ b/Content.Shared/Throwing/ThrownItemComponent.cs @@ -6,13 +6,13 @@ using Robust.Shared.Serialization; namespace Content.Shared.Throwing { [RegisterComponent, NetworkedComponent] - public class ThrownItemComponent : Component + public sealed class ThrownItemComponent : Component { public EntityUid? Thrower { get; set; } } [Serializable, NetSerializable] - public class ThrownItemComponentState : ComponentState + public sealed class ThrownItemComponentState : ComponentState { public EntityUid? Thrower { get; } diff --git a/Content.Shared/Tools/Components/SharedMultipleToolComponent.cs b/Content.Shared/Tools/Components/SharedMultipleToolComponent.cs index 4c33d9a2a8..597d6f1e3c 100644 --- a/Content.Shared/Tools/Components/SharedMultipleToolComponent.cs +++ b/Content.Shared/Tools/Components/SharedMultipleToolComponent.cs @@ -6,12 +6,12 @@ using Robust.Shared.Serialization; namespace Content.Shared.Tools.Components { [NetworkedComponent] - public class SharedMultipleToolComponent : Component + public abstract class SharedMultipleToolComponent : Component { } [NetSerializable, Serializable] - public class MultipleToolComponentState : ComponentState + public sealed class MultipleToolComponentState : ComponentState { public string QualityName { get; } diff --git a/Content.Shared/Tools/Components/SharedWelderComponent.cs b/Content.Shared/Tools/Components/SharedWelderComponent.cs index 2aaada2825..e1460bae82 100644 --- a/Content.Shared/Tools/Components/SharedWelderComponent.cs +++ b/Content.Shared/Tools/Components/SharedWelderComponent.cs @@ -12,7 +12,7 @@ namespace Content.Shared.Tools.Components } [NetSerializable, Serializable] - public class WelderComponentState : ComponentState + public sealed class WelderComponentState : ComponentState { public float FuelCapacity { get; } public float Fuel { get; } diff --git a/Content.Shared/Tools/ToolQualityPrototype.cs b/Content.Shared/Tools/ToolQualityPrototype.cs index d54e36ce35..9b3db28362 100644 --- a/Content.Shared/Tools/ToolQualityPrototype.cs +++ b/Content.Shared/Tools/ToolQualityPrototype.cs @@ -7,7 +7,7 @@ using Robust.Shared.Utility; namespace Content.Shared.Tools { [Prototype("tool")] - public class ToolQualityPrototype : IPrototype + public sealed class ToolQualityPrototype : IPrototype { [DataField("id", required: true)] public string ID { get; } = default!; diff --git a/Content.Shared/Traitor/Uplink/UplinkAccount.cs b/Content.Shared/Traitor/Uplink/UplinkAccount.cs index 5d37820d38..ec2684c6b9 100644 --- a/Content.Shared/Traitor/Uplink/UplinkAccount.cs +++ b/Content.Shared/Traitor/Uplink/UplinkAccount.cs @@ -2,7 +2,7 @@ using Robust.Shared.GameObjects; namespace Content.Shared.Traitor.Uplink { - public class UplinkAccount + public sealed class UplinkAccount { public readonly EntityUid? AccountHolder; public int Balance; diff --git a/Content.Shared/Traitor/Uplink/UplinkAccountData.cs b/Content.Shared/Traitor/Uplink/UplinkAccountData.cs index 534fbb1002..dcbc548572 100644 --- a/Content.Shared/Traitor/Uplink/UplinkAccountData.cs +++ b/Content.Shared/Traitor/Uplink/UplinkAccountData.cs @@ -5,7 +5,7 @@ using System; namespace Content.Shared.Traitor.Uplink { [Serializable, NetSerializable] - public class UplinkAccountData + public sealed class UplinkAccountData { public EntityUid? DataAccountHolder; public int DataBalance; diff --git a/Content.Shared/Traitor/Uplink/UplinkListingData.cs b/Content.Shared/Traitor/Uplink/UplinkListingData.cs index e1037a52da..3ac74eeff5 100644 --- a/Content.Shared/Traitor/Uplink/UplinkListingData.cs +++ b/Content.Shared/Traitor/Uplink/UplinkListingData.cs @@ -7,7 +7,7 @@ using System; namespace Content.Shared.Traitor.Uplink { [Serializable, NetSerializable] - public class UplinkListingData : ComponentState, IEquatable + public sealed class UplinkListingData : ComponentState, IEquatable { public readonly string ItemId; public readonly int Price; diff --git a/Content.Shared/Traitor/Uplink/UplinkUpdateState.cs b/Content.Shared/Traitor/Uplink/UplinkUpdateState.cs index 496d4e1d9c..a89a0a5bb5 100644 --- a/Content.Shared/Traitor/Uplink/UplinkUpdateState.cs +++ b/Content.Shared/Traitor/Uplink/UplinkUpdateState.cs @@ -5,7 +5,7 @@ using System; namespace Content.Shared.Traitor.Uplink { [Serializable, NetSerializable] - public class UplinkUpdateState : BoundUserInterfaceState + public sealed class UplinkUpdateState : BoundUserInterfaceState { public UplinkAccountData Account; public UplinkListingData[] Listings; diff --git a/Content.Shared/Vapor/SharedVaporComponent.cs b/Content.Shared/Vapor/SharedVaporComponent.cs index 8d0160ff34..8ea575ed7f 100644 --- a/Content.Shared/Vapor/SharedVaporComponent.cs +++ b/Content.Shared/Vapor/SharedVaporComponent.cs @@ -4,6 +4,7 @@ using Robust.Shared.Serialization; namespace Content.Shared.Vapor { + [Virtual] public class SharedVaporComponent : Component { public const string SolutionName = "vapor"; diff --git a/Content.Shared/VendingMachines/SharedVendingMachineComponent.cs b/Content.Shared/VendingMachines/SharedVendingMachineComponent.cs index 220ccf0f8b..6633736f3d 100644 --- a/Content.Shared/VendingMachines/SharedVendingMachineComponent.cs +++ b/Content.Shared/VendingMachines/SharedVendingMachineComponent.cs @@ -7,6 +7,7 @@ using Robust.Shared.ViewVariables; namespace Content.Shared.VendingMachines { + [Virtual] [NetworkedComponent()] public class SharedVendingMachineComponent : Component { @@ -30,7 +31,7 @@ namespace Content.Shared.VendingMachines } [Serializable, NetSerializable] - public class VendingMachineEjectMessage : BoundUserInterfaceMessage + public sealed class VendingMachineEjectMessage : BoundUserInterfaceMessage { public readonly string ID; public VendingMachineEjectMessage(string id) @@ -46,12 +47,12 @@ namespace Content.Shared.VendingMachines } [Serializable, NetSerializable] - public class InventorySyncRequestMessage : BoundUserInterfaceMessage + public sealed class InventorySyncRequestMessage : BoundUserInterfaceMessage { } [Serializable, NetSerializable] - public class VendingMachineInventoryMessage : BoundUserInterfaceMessage + public sealed class VendingMachineInventoryMessage : BoundUserInterfaceMessage { public readonly List Inventory; public VendingMachineInventoryMessage(List inventory) @@ -61,7 +62,7 @@ namespace Content.Shared.VendingMachines } [Serializable, NetSerializable] - public class VendingMachineInventoryEntry + public sealed class VendingMachineInventoryEntry { [ViewVariables(VVAccess.ReadWrite)] public string ID; diff --git a/Content.Shared/VendingMachines/VendingMachineInventoryPrototype.cs b/Content.Shared/VendingMachines/VendingMachineInventoryPrototype.cs index 663aea5490..9b2d5e7514 100644 --- a/Content.Shared/VendingMachines/VendingMachineInventoryPrototype.cs +++ b/Content.Shared/VendingMachines/VendingMachineInventoryPrototype.cs @@ -8,7 +8,7 @@ using Robust.Shared.ViewVariables; namespace Content.Shared.VendingMachines { [Serializable, NetSerializable, Prototype("vendingMachineInventory")] - public class VendingMachineInventoryPrototype : IPrototype + public sealed class VendingMachineInventoryPrototype : IPrototype { [ViewVariables] [DataField("id", required: true)] diff --git a/Content.Shared/Verbs/Verb.cs b/Content.Shared/Verbs/Verb.cs index ce21a4bc1f..f718022073 100644 --- a/Content.Shared/Verbs/Verb.cs +++ b/Content.Shared/Verbs/Verb.cs @@ -12,7 +12,7 @@ namespace Content.Shared.Verbs /// events, or networked events. Verbs also provide text, icons, and categories for displaying in the /// context-menu. /// - [Serializable, NetSerializable] + [Serializable, NetSerializable, Virtual] public class Verb : IComparable { public static string DefaultTextStyleClass = "Verb"; diff --git a/Content.Shared/Verbs/VerbCategory.cs b/Content.Shared/Verbs/VerbCategory.cs index 07417a4894..96b0c1027e 100644 --- a/Content.Shared/Verbs/VerbCategory.cs +++ b/Content.Shared/Verbs/VerbCategory.cs @@ -9,7 +9,7 @@ namespace Content.Shared.Verbs /// Contains combined name and icon information for a verb category. /// [Serializable, NetSerializable] - public class VerbCategory + public sealed class VerbCategory { public readonly string Text; diff --git a/Content.Shared/Weapons/Melee/AttackEvent.cs b/Content.Shared/Weapons/Melee/AttackEvent.cs index 2772aeb239..7331fb0056 100644 --- a/Content.Shared/Weapons/Melee/AttackEvent.cs +++ b/Content.Shared/Weapons/Melee/AttackEvent.cs @@ -7,7 +7,7 @@ namespace Content.Shared.Weapons.Melee /// /// Raised directed on the used entity when a target entity is click attacked by a user. /// - public class ClickAttackEvent : HandledEntityEventArgs + public sealed class ClickAttackEvent : HandledEntityEventArgs { /// /// Entity used to attack, for broadcast purposes. @@ -41,7 +41,7 @@ namespace Content.Shared.Weapons.Melee /// /// Raised directed on the used entity when a target entity is wide attacked by a user. /// - public class WideAttackEvent : HandledEntityEventArgs + public sealed class WideAttackEvent : HandledEntityEventArgs { /// /// Entity used to attack, for broadcast purposes. @@ -69,7 +69,7 @@ namespace Content.Shared.Weapons.Melee /// /// Event raised on entities that have been attacked. /// - public class AttackedEvent : EntityEventArgs + public sealed class AttackedEvent : EntityEventArgs { /// /// Entity used to attack, for broadcast purposes. diff --git a/Content.Shared/Weapons/Ranged/Barrels/Components/SharedBoltActionBarrelComponent.cs b/Content.Shared/Weapons/Ranged/Barrels/Components/SharedBoltActionBarrelComponent.cs index 0f21330a70..1fc9272274 100644 --- a/Content.Shared/Weapons/Ranged/Barrels/Components/SharedBoltActionBarrelComponent.cs +++ b/Content.Shared/Weapons/Ranged/Barrels/Components/SharedBoltActionBarrelComponent.cs @@ -6,7 +6,7 @@ using Robust.Shared.Serialization; namespace Content.Shared.Weapons.Ranged.Barrels.Components { [Serializable, NetSerializable] - public class BoltActionBarrelComponentState : ComponentState + public sealed class BoltActionBarrelComponentState : ComponentState { public (bool chambered, bool spent) Chamber { get; } public FireRateSelector FireRateSelector { get; } diff --git a/Content.Shared/Weapons/Ranged/Barrels/Components/SharedMagazineBarrelComponent.cs b/Content.Shared/Weapons/Ranged/Barrels/Components/SharedMagazineBarrelComponent.cs index 246e2fea37..aaeb58678f 100644 --- a/Content.Shared/Weapons/Ranged/Barrels/Components/SharedMagazineBarrelComponent.cs +++ b/Content.Shared/Weapons/Ranged/Barrels/Components/SharedMagazineBarrelComponent.cs @@ -26,7 +26,7 @@ namespace Content.Shared.Weapons.Ranged.Barrels.Components } [Serializable, NetSerializable] - public class MagazineBarrelComponentState : ComponentState + public sealed class MagazineBarrelComponentState : ComponentState { public bool Chambered { get; } public FireRateSelector FireRateSelector { get; } diff --git a/Content.Shared/Weapons/Ranged/Barrels/Components/SharedPumpBarrelComponent.cs b/Content.Shared/Weapons/Ranged/Barrels/Components/SharedPumpBarrelComponent.cs index 24b8564006..35353f4326 100644 --- a/Content.Shared/Weapons/Ranged/Barrels/Components/SharedPumpBarrelComponent.cs +++ b/Content.Shared/Weapons/Ranged/Barrels/Components/SharedPumpBarrelComponent.cs @@ -6,7 +6,7 @@ using Robust.Shared.Serialization; namespace Content.Shared.Weapons.Ranged.Barrels.Components { [Serializable, NetSerializable] - public class PumpBarrelComponentState : ComponentState + public sealed class PumpBarrelComponentState : ComponentState { public (bool chambered, bool spent) Chamber { get; } public FireRateSelector FireRateSelector { get; } diff --git a/Content.Shared/Weapons/Ranged/Barrels/Components/SharedRevolverBarrelComponent.cs b/Content.Shared/Weapons/Ranged/Barrels/Components/SharedRevolverBarrelComponent.cs index 0e4e3dcfb2..17cb18216b 100644 --- a/Content.Shared/Weapons/Ranged/Barrels/Components/SharedRevolverBarrelComponent.cs +++ b/Content.Shared/Weapons/Ranged/Barrels/Components/SharedRevolverBarrelComponent.cs @@ -6,7 +6,7 @@ using Robust.Shared.Serialization; namespace Content.Shared.Weapons.Ranged.Barrels.Components { [Serializable, NetSerializable] - public class RevolverBarrelComponentState : ComponentState + public sealed class RevolverBarrelComponentState : ComponentState { public int CurrentSlot { get; } public FireRateSelector FireRateSelector { get; } diff --git a/Content.Shared/Whitelist/EntityWhitelist.cs b/Content.Shared/Whitelist/EntityWhitelist.cs index da68546f53..96bd3080e2 100644 --- a/Content.Shared/Whitelist/EntityWhitelist.cs +++ b/Content.Shared/Whitelist/EntityWhitelist.cs @@ -25,7 +25,7 @@ namespace Content.Shared.Whitelist /// - AsteroidRock /// [DataDefinition] - public class EntityWhitelist : ISerializationHooks + public sealed class EntityWhitelist : ISerializationHooks { /// /// Component names that are allowed in the whitelist. diff --git a/Content.Shared/Wires/SharedWiresComponent.cs b/Content.Shared/Wires/SharedWiresComponent.cs index 306a9c663c..72ba8d9d12 100644 --- a/Content.Shared/Wires/SharedWiresComponent.cs +++ b/Content.Shared/Wires/SharedWiresComponent.cs @@ -9,6 +9,7 @@ using static Content.Shared.Wires.SharedWiresComponent; namespace Content.Shared.Wires { + [Virtual] public class SharedWiresComponent : Component { [Serializable, NetSerializable] @@ -110,7 +111,7 @@ namespace Content.Shared.Wires } [Serializable, NetSerializable] - public class WiresBoundUserInterfaceState : BoundUserInterfaceState + public sealed class WiresBoundUserInterfaceState : BoundUserInterfaceState { public string BoardName { get; } public string? SerialNumber { get; } @@ -148,7 +149,7 @@ namespace Content.Shared.Wires [Serializable, NetSerializable] - public class ClientWire + public sealed class ClientWire { public int Id; public bool IsCut; @@ -165,7 +166,7 @@ namespace Content.Shared.Wires } [Serializable, NetSerializable] - public class WiresActionMessage : BoundUserInterfaceMessage + public sealed class WiresActionMessage : BoundUserInterfaceMessage { public readonly int Id; public readonly WiresAction Action; diff --git a/Content.Tests/Client/ClickMapTest.cs b/Content.Tests/Client/ClickMapTest.cs index 30ba7b1e8d..88e8e93e29 100644 --- a/Content.Tests/Client/ClickMapTest.cs +++ b/Content.Tests/Client/ClickMapTest.cs @@ -7,7 +7,7 @@ using SixLabors.ImageSharp.PixelFormats; namespace Content.Tests.Client { [TestFixture] - public class ClickMapTest + public sealed class ClickMapTest { [Test] public void TestBasic() diff --git a/Content.Tests/ContentUnitTest.cs b/Content.Tests/ContentUnitTest.cs index 16f9d4130b..04bc5fa61d 100644 --- a/Content.Tests/ContentUnitTest.cs +++ b/Content.Tests/ContentUnitTest.cs @@ -6,11 +6,13 @@ using Content.Server; using Content.Server.IoC; using Content.Shared; using Content.Shared.IoC; +using Robust.Shared.Analyzers; using Robust.UnitTesting; using EntryPoint = Content.Server.Entry.EntryPoint; namespace Content.Tests { + [Virtual] public class ContentUnitTest : RobustUnitTest { protected override void OverrideIoC() diff --git a/Content.Tests/Server/Jobs/JobQueueTest.cs b/Content.Tests/Server/Jobs/JobQueueTest.cs index b75d58af89..5f6cb21d02 100644 --- a/Content.Tests/Server/Jobs/JobQueueTest.cs +++ b/Content.Tests/Server/Jobs/JobQueueTest.cs @@ -12,7 +12,7 @@ namespace Content.Tests.Server.Jobs [TestFixture] [TestOf(typeof(Job<>))] [TestOf(typeof(JobQueue))] - public class JobQueueTest : RobustUnitTest + public sealed class JobQueueTest : RobustUnitTest { /// /// Test a job that immediately exits with a value. @@ -128,7 +128,7 @@ namespace Content.Tests.Server.Jobs Assert.That(job.Result, Is.Null); } - private class DebugStopwatch : IStopwatch + private sealed class DebugStopwatch : IStopwatch { public TimeSpan Elapsed { get; set; } @@ -143,7 +143,7 @@ namespace Content.Tests.Server.Jobs } } - private class ImmediateJob : Job + private sealed class ImmediateJob : Job { public ImmediateJob() : base(0) { @@ -155,7 +155,7 @@ namespace Content.Tests.Server.Jobs } } - private class LongJob : Job + private sealed class LongJob : Job { private readonly DebugStopwatch _stopwatch; private readonly DebugStopwatch _stopwatchB; @@ -187,7 +187,7 @@ namespace Content.Tests.Server.Jobs } } - private class LongJobQueue : JobQueue + private sealed class LongJobQueue : JobQueue { public LongJobQueue(IStopwatch swB) : base(swB) { @@ -196,7 +196,7 @@ namespace Content.Tests.Server.Jobs public override double MaxTime => 0.9; } - private class WaitingJob : Job + private sealed class WaitingJob : Job { private readonly Task _t; diff --git a/Content.Tests/Server/Preferences/ServerDbSqliteTests.cs b/Content.Tests/Server/Preferences/ServerDbSqliteTests.cs index 35a321df81..bc44046019 100644 --- a/Content.Tests/Server/Preferences/ServerDbSqliteTests.cs +++ b/Content.Tests/Server/Preferences/ServerDbSqliteTests.cs @@ -20,7 +20,7 @@ using Robust.Shared.Serialization.Manager; namespace Content.Tests.Server.Preferences { [TestFixture] - public class ServerDbSqliteTests : ContentUnitTest + public sealed class ServerDbSqliteTests : ContentUnitTest { private const string Prototypes = @" - type: dataset diff --git a/Content.Tests/Server/Utility/IPAddressExtTest.cs b/Content.Tests/Server/Utility/IPAddressExtTest.cs index 49c17032e2..a57430267b 100644 --- a/Content.Tests/Server/Utility/IPAddressExtTest.cs +++ b/Content.Tests/Server/Utility/IPAddressExtTest.cs @@ -4,7 +4,7 @@ using NUnit.Framework; namespace Content.Tests.Server.Utility { - public class IPAddressExtTest + public sealed class IPAddressExtTest { [Test] [TestCase("192.168.5.85/24", "192.168.5.1")] diff --git a/Content.Tests/Shared/Administration/AdminFlagsExtTest.cs b/Content.Tests/Shared/Administration/AdminFlagsExtTest.cs index e2bc95a8f7..c36aad7718 100644 --- a/Content.Tests/Shared/Administration/AdminFlagsExtTest.cs +++ b/Content.Tests/Shared/Administration/AdminFlagsExtTest.cs @@ -6,7 +6,7 @@ namespace Content.Tests.Shared.Administration { [TestFixture] [Parallelizable(ParallelScope.All)] - public class AdminFlagsExtTest + public sealed class AdminFlagsExtTest { [Test] [TestCase("ADMIN", AdminFlags.Admin)] diff --git a/Content.Tests/Shared/Administration/Logs/LogTypeTests.cs b/Content.Tests/Shared/Administration/Logs/LogTypeTests.cs index ec5864ab62..5ae269a8f3 100644 --- a/Content.Tests/Shared/Administration/Logs/LogTypeTests.cs +++ b/Content.Tests/Shared/Administration/Logs/LogTypeTests.cs @@ -7,7 +7,7 @@ using NUnit.Framework; namespace Content.Tests.Shared.Administration.Logs; [TestFixture] -public class LogTypeTests +public sealed class LogTypeTests { [Test] public void Unique() diff --git a/Content.Tests/Shared/Alert/AlertManagerTests.cs b/Content.Tests/Shared/Alert/AlertManagerTests.cs index ec6108f1b0..803da7d25e 100644 --- a/Content.Tests/Shared/Alert/AlertManagerTests.cs +++ b/Content.Tests/Shared/Alert/AlertManagerTests.cs @@ -12,7 +12,7 @@ using Robust.Shared.Utility; namespace Content.Tests.Shared.Alert { [TestFixture, TestOf(typeof(AlertsSystem))] - public class AlertManagerTests : ContentUnitTest + public sealed class AlertManagerTests : ContentUnitTest { const string PROTOTYPES = @" - type: alert diff --git a/Content.Tests/Shared/Alert/AlertOrderPrototypeTests.cs b/Content.Tests/Shared/Alert/AlertOrderPrototypeTests.cs index 6ebb979133..977c5f4658 100644 --- a/Content.Tests/Shared/Alert/AlertOrderPrototypeTests.cs +++ b/Content.Tests/Shared/Alert/AlertOrderPrototypeTests.cs @@ -10,7 +10,7 @@ using Robust.Shared.Serialization.Manager; namespace Content.Tests.Shared.Alert { [TestFixture, TestOf(typeof(AlertOrderPrototype))] - public class AlertOrderPrototypeTests : ContentUnitTest + public sealed class AlertOrderPrototypeTests : ContentUnitTest { const string PROTOTYPES = @" - type: alertOrder diff --git a/Content.Tests/Shared/Alert/AlertPrototypeTests.cs b/Content.Tests/Shared/Alert/AlertPrototypeTests.cs index 3a82566542..cdc7d0208a 100644 --- a/Content.Tests/Shared/Alert/AlertPrototypeTests.cs +++ b/Content.Tests/Shared/Alert/AlertPrototypeTests.cs @@ -11,7 +11,7 @@ using YamlDotNet.RepresentationModel; namespace Content.Tests.Shared.Alert { [TestFixture, TestOf(typeof(AlertPrototype))] - public class AlertPrototypeTests : ContentUnitTest + public sealed class AlertPrototypeTests : ContentUnitTest { private const string Prototypes = @" - type: alert diff --git a/Content.Tests/Shared/Alert/ServerAlertsComponentTests.cs b/Content.Tests/Shared/Alert/ServerAlertsComponentTests.cs index 87c57ab57d..d317803592 100644 --- a/Content.Tests/Shared/Alert/ServerAlertsComponentTests.cs +++ b/Content.Tests/Shared/Alert/ServerAlertsComponentTests.cs @@ -12,7 +12,7 @@ namespace Content.Tests.Shared.Alert { [TestFixture] [TestOf(typeof(AlertsComponent))] - public class ServerAlertsComponentTests : ContentUnitTest + public sealed class ServerAlertsComponentTests : ContentUnitTest { const string PROTOTYPES = @" - type: alert diff --git a/Content.Tests/Shared/Chemistry/FixedPoint2_Tests.cs b/Content.Tests/Shared/Chemistry/FixedPoint2_Tests.cs index dae9806e63..34e5db1047 100644 --- a/Content.Tests/Shared/Chemistry/FixedPoint2_Tests.cs +++ b/Content.Tests/Shared/Chemistry/FixedPoint2_Tests.cs @@ -5,7 +5,7 @@ using NUnit.Framework; namespace Content.Tests.Shared.Chemistry { [TestFixture, TestOf(typeof(FixedPoint2))] - public class FixedPoint2_Tests + public sealed class FixedPoint2_Tests { [Test] [TestCase(1, "1")] diff --git a/Content.Tests/Shared/Chemistry/ReagentPrototype_Tests.cs b/Content.Tests/Shared/Chemistry/ReagentPrototype_Tests.cs index f7a5d1a478..d3ebb7eff0 100644 --- a/Content.Tests/Shared/Chemistry/ReagentPrototype_Tests.cs +++ b/Content.Tests/Shared/Chemistry/ReagentPrototype_Tests.cs @@ -12,7 +12,7 @@ using YamlDotNet.RepresentationModel; namespace Content.Tests.Shared.Chemistry { [TestFixture, TestOf(typeof(ReagentPrototype))] - public class ReagentPrototype_Tests : ContentUnitTest + public sealed class ReagentPrototype_Tests : ContentUnitTest { [Test] public void DeserializeReagentPrototype() diff --git a/Content.Tests/Shared/Chemistry/Solution_Tests.cs b/Content.Tests/Shared/Chemistry/Solution_Tests.cs index 7caadfb6bc..95ebba9a9c 100644 --- a/Content.Tests/Shared/Chemistry/Solution_Tests.cs +++ b/Content.Tests/Shared/Chemistry/Solution_Tests.cs @@ -8,7 +8,7 @@ using NUnit.Framework; namespace Content.Tests.Shared.Chemistry { [TestFixture, Parallelizable, TestOf(typeof(Solution))] - public class Solution_Tests : ContentUnitTest + public sealed class Solution_Tests : ContentUnitTest { [OneTimeSetUp] public void Setup() diff --git a/Content.Tests/Shared/DamageTest.cs b/Content.Tests/Shared/DamageTest.cs index 634c57c1c6..d19aa64860 100644 --- a/Content.Tests/Shared/DamageTest.cs +++ b/Content.Tests/Shared/DamageTest.cs @@ -14,7 +14,7 @@ namespace Content.Tests.Shared [TestOf(typeof(DamageSpecifier))] [TestOf(typeof(DamageModifierSetPrototype))] [TestOf(typeof(DamageGroupPrototype))] - public class DamageTest : ContentUnitTest + public sealed class DamageTest : ContentUnitTest { static private Dictionary _resistanceCoefficientDict = new() diff --git a/Content.Tests/Shared/Gamestates/ComponentStateNullTest.cs b/Content.Tests/Shared/Gamestates/ComponentStateNullTest.cs index 2bcb217f58..651c9a2585 100644 --- a/Content.Tests/Shared/Gamestates/ComponentStateNullTest.cs +++ b/Content.Tests/Shared/Gamestates/ComponentStateNullTest.cs @@ -9,7 +9,7 @@ using Robust.Shared.Reflection; namespace Content.Tests.Shared.Gamestates { [TestFixture] - public class ComponentStateNullTest + public sealed class ComponentStateNullTest { [Test] public void HandleComponentState_NullStates_NotThrow() @@ -52,7 +52,7 @@ namespace Content.Tests.Shared.Gamestates return reflection; } - private class FullReflectionManager : ReflectionManager + private sealed class FullReflectionManager : ReflectionManager { protected override IEnumerable TypePrefixes => Prefixes; diff --git a/Content.Tests/Shared/Preferences/Job/JobPriorityTest.cs b/Content.Tests/Shared/Preferences/Job/JobPriorityTest.cs index 180fbc7adb..fc095d1c96 100644 --- a/Content.Tests/Shared/Preferences/Job/JobPriorityTest.cs +++ b/Content.Tests/Shared/Preferences/Job/JobPriorityTest.cs @@ -8,7 +8,7 @@ namespace Content.Tests.Shared.Preferences.Job [TestFixture] [TestOf(typeof(JobPriority))] [TestOf(typeof(DbJobPriority))] - public class JobPriorityTest + public sealed class JobPriorityTest { [Test] public void JobPriorityEnumParityTest() diff --git a/Content.Tests/Shared/Utility/ContentHelpers_Test.cs b/Content.Tests/Shared/Utility/ContentHelpers_Test.cs index 04e621c111..52d4286b8c 100644 --- a/Content.Tests/Shared/Utility/ContentHelpers_Test.cs +++ b/Content.Tests/Shared/Utility/ContentHelpers_Test.cs @@ -7,7 +7,7 @@ namespace Content.Tests.Shared.Utility [Parallelizable] [TestFixture] [TestOf(typeof(ContentHelpers))] - public class ContentHelpers_Test + public sealed class ContentHelpers_Test { public static readonly IEnumerable<(double val, double max, int levels, int expected)> TestData = new (double, double, int, int)[] diff --git a/Content.Tests/Shared/Utility/RandomExtensionsTests.cs b/Content.Tests/Shared/Utility/RandomExtensionsTests.cs index e27cc556f7..f051daa32d 100644 --- a/Content.Tests/Shared/Utility/RandomExtensionsTests.cs +++ b/Content.Tests/Shared/Utility/RandomExtensionsTests.cs @@ -11,7 +11,7 @@ namespace Content.Tests.Shared.Utility { [TestFixture] [TestOf(typeof(SharedRandomExtensions))] - public class RandomExtensionsTests : ContentUnitTest + public sealed class RandomExtensionsTests : ContentUnitTest { private const string TestDatasetId = "TestDataset"; diff --git a/Content.Tests/Shared/WireHackingTest.cs b/Content.Tests/Shared/WireHackingTest.cs index f1ba574861..9e5c140799 100644 --- a/Content.Tests/Shared/WireHackingTest.cs +++ b/Content.Tests/Shared/WireHackingTest.cs @@ -11,7 +11,7 @@ namespace Content.Tests.Shared // Also a thinly veiled excuse to bloat the test count. [TestFixture] - public class WireHackingTest : RobustUnitTest + public sealed class WireHackingTest : RobustUnitTest { public static IEnumerable ColorValues = (WireColor[]) Enum.GetValues(typeof(WireColor)); public static IEnumerable LetterValues = (WireLetter[]) Enum.GetValues(typeof(WireLetter)); diff --git a/Content.Tools/Map.cs b/Content.Tools/Map.cs index 116ae2608f..ad98762307 100644 --- a/Content.Tools/Map.cs +++ b/Content.Tools/Map.cs @@ -8,7 +8,7 @@ using YamlDotNet.RepresentationModel; namespace Content.Tools { - public class Map + public sealed class Map { public Map(string path) { diff --git a/Content.Tools/Merger.cs b/Content.Tools/Merger.cs index 1b5aaa4fe3..94ad9c7a60 100644 --- a/Content.Tools/Merger.cs +++ b/Content.Tools/Merger.cs @@ -8,7 +8,7 @@ using YamlDotNet.RepresentationModel; namespace Content.Tools { - public class Merger + public sealed class Merger { public Map MapOurs { get; } public Map MapBased { get; } diff --git a/Content.Tools/TypeTagPreserver.cs b/Content.Tools/TypeTagPreserver.cs index 94996767d3..54653ec737 100644 --- a/Content.Tools/TypeTagPreserver.cs +++ b/Content.Tools/TypeTagPreserver.cs @@ -3,7 +3,7 @@ using YamlDotNet.Core.Events; namespace Content.Tools { - public class TypeTagPreserver : IEmitter + public sealed class TypeTagPreserver : IEmitter { public TypeTagPreserver(IEmitter emitter) {