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

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

View File

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

View File

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

View File

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

View File

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