Seal/abstract/virtual everything (#6739)
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
@@ -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!;
|
||||
|
||||
@@ -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.";
|
||||
|
||||
@@ -2,7 +2,7 @@ using Robust.Shared.GameObjects;
|
||||
|
||||
namespace Content.Server.Ghost
|
||||
{
|
||||
public class GhostBooEvent : HandledEntityEventArgs
|
||||
public sealed class GhostBooEvent : HandledEntityEventArgs
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
@@ -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!;
|
||||
|
||||
@@ -6,7 +6,7 @@ namespace Content.Server.Ghost
|
||||
/// <summary>
|
||||
/// This is used to mark Observers properly, as they get Minds
|
||||
/// </summary>
|
||||
public class ObserverRole : Role
|
||||
public sealed class ObserverRole : Role
|
||||
{
|
||||
public override string Name => Loc.GetString("observer-role-name");
|
||||
public override bool Antagonist => false;
|
||||
|
||||
@@ -16,7 +16,7 @@ namespace Content.Server.Ghost.Roles.Components
|
||||
/// Allows a ghost to take this role, spawning a new entity.
|
||||
/// </summary>
|
||||
[RegisterComponent, ComponentReference(typeof(GhostRoleComponent))]
|
||||
public class GhostRoleMobSpawnerComponent : GhostRoleComponent
|
||||
public sealed class GhostRoleMobSpawnerComponent : GhostRoleComponent
|
||||
{
|
||||
[Dependency] private readonly IEntityManager _entMan = default!;
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@ namespace Content.Server.Ghost.Roles.Components
|
||||
/// Allows a ghost to take over the Owner entity.
|
||||
/// </summary>
|
||||
[RegisterComponent, ComponentReference(typeof(GhostRoleComponent))]
|
||||
public class GhostTakeoverAvailableComponent : GhostRoleComponent
|
||||
public sealed class GhostTakeoverAvailableComponent : GhostRoleComponent
|
||||
{
|
||||
public override bool Take(IPlayerSession session)
|
||||
{
|
||||
|
||||
@@ -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.
|
||||
/// </summary>
|
||||
public class GhostRoleMarkerRole : Role
|
||||
public sealed class GhostRoleMarkerRole : Role
|
||||
{
|
||||
private readonly string _name;
|
||||
public override string Name => _name;
|
||||
|
||||
@@ -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.";
|
||||
|
||||
@@ -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.";
|
||||
|
||||
@@ -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()
|
||||
{
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user