Seal/abstract/virtual everything (#6739)

This commit is contained in:
mirrorcult
2022-02-16 00:23:23 -07:00
committed by GitHub
parent 4dfcacb86a
commit ec4d4688c7
1771 changed files with 2216 additions and 2164 deletions

View File

@@ -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;

View File

@@ -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
{
}
}

View File

@@ -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; }

View File

@@ -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 =
{

View File

@@ -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; }

View File

@@ -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
{
}
}

View File

@@ -6,7 +6,7 @@ using BenchmarkDotNet.Attributes;
namespace Content.Benchmarks
{
[SimpleJob]
public class NetSerializerIntBenchmark
public sealed class NetSerializerIntBenchmark
{
private MemoryStream _writeStream;
private MemoryStream _readStream;

View File

@@ -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;

View File

@@ -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; }

View File

@@ -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!;

View File

@@ -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!;

View File

@@ -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;

View File

@@ -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)
{

View File

@@ -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)
{

View File

@@ -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)
{

View File

@@ -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!;

View File

@@ -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;

View File

@@ -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!;

View File

@@ -9,7 +9,7 @@ namespace Content.Client.Actions.Assignments
/// <summary>
/// Tracks and manages the hotbar assignments for actions.
/// </summary>
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

View File

@@ -11,7 +11,7 @@ namespace Content.Client.Actions.UI
/// <summary>
/// Tooltip for actions or alerts because they are very similar.
/// </summary>
public class ActionAlertTooltip : PanelContainer
public sealed class ActionAlertTooltip : PanelContainer
{
private const float TooltipTextMaxWidth = 350;

View File

@@ -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.
/// </summary>
public class ActionMenu : DefaultWindow
public sealed class ActionMenu : DefaultWindow
{
private const string ItemTag = "item";
private const string NotItemTag = "not item";

View File

@@ -10,7 +10,7 @@ namespace Content.Client.Actions.UI
/// <summary>
/// An individual action visible in the action menu.
/// </summary>
public class ActionMenuItem : ContainerButton
public sealed class ActionMenuItem : ContainerButton
{
// shorter than default tooltip delay so user can
// quickly explore what each action is

View File

@@ -25,7 +25,7 @@ namespace Content.Client.Actions.UI
/// A slot in the action hotbar. Not extending BaseButton because
/// its needs diverged too much.
/// </summary>
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

View File

@@ -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;

View File

@@ -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!;

View File

@@ -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!;

View File

@@ -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<List<PlayerInfo>>? PlayerListChanged;

View File

@@ -9,7 +9,7 @@ namespace Content.Client.Verbs
/// <summary>
/// Client-side admin verb system. These usually open some sort of UIs.
/// </summary>
class AdminVerbSystem : EntitySystem
sealed class AdminVerbSystem : EntitySystem
{
[Dependency] private readonly IClientConGroupController _clientConGroupController = default!;
[Dependency] private readonly IClientConsoleHost _clientConsoleHost = default!;

View File

@@ -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!;

View File

@@ -2,6 +2,6 @@
namespace Content.Client.Administration.Logs;
public class AdminLogSystem : SharedAdminLogSystem
public sealed class AdminLogSystem : SharedAdminLogSystem
{
}

View File

@@ -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!;

View File

@@ -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!;

View File

@@ -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!;

View File

@@ -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!;

View File

@@ -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;

View File

@@ -19,7 +19,7 @@ namespace Content.Client.Administration.UI
/// This window connects to a BwoinkSystem channel. BwoinkSystem manages the rest.
/// </summary>
[GenerateTypedNameReferences]
public partial class BwoinkWindow : DefaultWindow
public sealed partial class BwoinkWindow : DefaultWindow
{
[Dependency] private readonly IClientAdminManager _adminManager = default!;
[Dependency] private readonly IClientConsoleHost _console = default!;

View File

@@ -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)
{

View File

@@ -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)
{

View File

@@ -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)
{

View File

@@ -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)
{

View File

@@ -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;

View File

@@ -4,6 +4,7 @@ using Robust.Shared.IoC;
namespace Content.Client.Administration.UI.CustomControls
{
[Virtual]
public class CommandButton : Button
{
public string? Command { get; set; }

View File

@@ -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");

View File

@@ -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;

View File

@@ -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;

View File

@@ -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");

View File

@@ -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<AdminLogTypeButton> _adminLogTypeButtonComparer =
Comparer<AdminLogTypeButton>.Create((a, b) =>

View File

@@ -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!;

View File

@@ -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()
{

View File

@@ -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!;

View File

@@ -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()
{

View File

@@ -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
{
}
}

View File

@@ -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()
{

View File

@@ -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;

View File

@@ -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;

View File

@@ -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<string>? _data;

View File

@@ -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<IMapGrid>? _data;

View File

@@ -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<IMapGrid>? _gridData;
private IEnumerable<GasPrototype>? _gasData;

View File

@@ -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
{
}
}

View File

@@ -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<IMapGrid>? _gridData;
private IEnumerable<GasPrototype>? _gasData;

View File

@@ -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<IMapGrid>? _data;

View File

@@ -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;

View File

@@ -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;

View File

@@ -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
{
}
}

View File

@@ -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
{
}
}

View File

@@ -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; }

View File

@@ -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

View File

@@ -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!;

View File

@@ -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);

View File

@@ -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;

View File

@@ -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;

View File

@@ -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;

View File

@@ -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; }

View File

@@ -4,7 +4,7 @@ using JetBrains.Annotations;
namespace Content.Client.Atmos.EntitySystems
{
[UsedImplicitly]
public class AtmosphereSystem : SharedAtmosphereSystem
public sealed class AtmosphereSystem : SharedAtmosphereSystem
{
}
}

View File

@@ -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")]

View File

@@ -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;

View File

@@ -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<string, IAtmosDeviceData>? AtmosDeviceDataChanged;
public event Action<AtmosMonitorThresholdType, AtmosAlarmThreshold, Gas?>? AtmosAlarmThresholdChanged;

View File

@@ -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;

View File

@@ -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;

View File

@@ -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)

View File

@@ -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;

View File

@@ -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)
{

View File

@@ -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; }

View File

@@ -9,7 +9,7 @@ namespace Content.Client.Atmos.UI
/// Initializes a <see cref="GasCanisterWindow"/> and updates it when new server messages are received.
/// </summary>
[UsedImplicitly]
public class GasCanisterBoundUserInterface : BoundUserInterface
public sealed class GasCanisterBoundUserInterface : BoundUserInterface
{
private GasCanisterWindow? _window;

View File

@@ -11,7 +11,7 @@ namespace Content.Client.Atmos.UI
/// Client-side UI used to control a canister.
/// </summary>
[GenerateTypedNameReferences]
public partial class GasCanisterWindow : DefaultWindow
public sealed partial class GasCanisterWindow : DefaultWindow
{
private readonly ButtonGroup _buttonGroup = new();

View File

@@ -12,7 +12,7 @@ namespace Content.Client.Atmos.UI
/// Initializes a <see cref="GasFilterWindow"/> and updates it when new server messages are received.
/// </summary>
[UsedImplicitly]
public class GasFilterBoundUserInterface : BoundUserInterface
public sealed class GasFilterBoundUserInterface : BoundUserInterface
{
private GasFilterWindow? _window;

View File

@@ -14,7 +14,7 @@ namespace Content.Client.Atmos.UI
/// Client-side UI used to control a gas filter.
/// </summary>
[GenerateTypedNameReferences]
public partial class GasFilterWindow : DefaultWindow
public sealed partial class GasFilterWindow : DefaultWindow
{
private readonly ButtonGroup _buttonGroup = new();

View File

@@ -13,7 +13,7 @@ namespace Content.Client.Atmos.UI
/// Initializes a <see cref="GasMixerWindow"/> and updates it when new server messages are received.
/// </summary>
[UsedImplicitly]
public class GasMixerBoundUserInterface : BoundUserInterface
public sealed class GasMixerBoundUserInterface : BoundUserInterface
{
private GasMixerWindow? _window;

View File

@@ -19,7 +19,7 @@ namespace Content.Client.Atmos.UI
/// Client-side UI used to control a gas mixer.
/// </summary>
[GenerateTypedNameReferences]
public partial class GasMixerWindow : DefaultWindow
public sealed partial class GasMixerWindow : DefaultWindow
{
public bool MixerStatus = true;

View File

@@ -13,7 +13,7 @@ namespace Content.Client.Atmos.UI
/// Initializes a <see cref="GasPressurePumpWindow"/> and updates it when new server messages are received.
/// </summary>
[UsedImplicitly]
public class GasPressurePumpBoundUserInterface : BoundUserInterface
public sealed class GasPressurePumpBoundUserInterface : BoundUserInterface
{
private GasPressurePumpWindow? _window;

View File

@@ -16,7 +16,7 @@ namespace Content.Client.Atmos.UI
/// Client-side UI used to control a gas pressure pump.
/// </summary>
[GenerateTypedNameReferences]
public partial class GasPressurePumpWindow : DefaultWindow
public sealed partial class GasPressurePumpWindow : DefaultWindow
{
public bool PumpStatus = true;

View File

@@ -10,7 +10,7 @@ namespace Content.Client.Atmos.UI
/// Initializes a <see cref="GasVolumePumpWindow"/> and updates it when new server messages are received.
/// </summary>
[UsedImplicitly]
public class GasVolumePumpBoundUserInterface : BoundUserInterface
public sealed class GasVolumePumpBoundUserInterface : BoundUserInterface
{
private GasVolumePumpWindow? _window;

View File

@@ -16,7 +16,7 @@ namespace Content.Client.Atmos.UI
/// Client-side UI used to control a gas volume pump.
/// </summary>
[GenerateTypedNameReferences]
public partial class GasVolumePumpWindow : DefaultWindow
public sealed partial class GasVolumePumpWindow : DefaultWindow
{
public bool PumpStatus = true;

View File

@@ -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; }

View File

@@ -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;

View File

@@ -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;

View File

@@ -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 = {"", "", "", ""};

View File

@@ -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;

View File

@@ -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;

View File

@@ -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;

Some files were not shown because too many files have changed in this diff Show More