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

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

View File

@@ -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<BaseButton.ButtonEventArgs> requestAction)

View File

@@ -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<BaseButton.ButtonEventArgs> requestAction)
{

View File

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

View File

@@ -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<GhostRoleInfo>? RoleRequested;

View File

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

View File

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

View File

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

View File

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