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

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

View File

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

View File

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

View File

@@ -19,7 +19,7 @@ namespace Content.Server.Mind.Components
/// Stores a <see cref="Server.Mind.Mind"/> on a mob.
/// </summary>
[RegisterComponent, Friend(typeof(MindSystem))]
public class MindComponent : Component
public sealed class MindComponent : Component
{
/// <summary>
/// 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
{
}
}

View File

@@ -16,7 +16,7 @@ namespace Content.Server.Mind.Components
}
}
public class MindUnvisitedMessage : EntityEventArgs
public sealed class MindUnvisitedMessage : EntityEventArgs
{
}
}

View File

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

View File

@@ -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.
/// </summary>
public class MindTrackerSystem : EntitySystem
public sealed class MindTrackerSystem : EntitySystem
{
[ViewVariables]
public readonly HashSet<Mind> AllMinds = new();