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

@@ -29,7 +29,7 @@ using Robust.Shared.ViewVariables;
namespace Content.Server.GameTicking
{
public partial class GameTicker
public sealed partial class GameTicker
{
private static readonly Counter RoundNumberMetric = Metrics.CreateCounter(
"ss14_round_number",
@@ -572,7 +572,7 @@ namespace Content.Server.GameTicking
PostRound = 2
}
public class GameRunLevelChangedEvent
public sealed class GameRunLevelChangedEvent
{
public GameRunLevel Old { get; }
public GameRunLevel New { get; }
@@ -589,7 +589,7 @@ namespace Content.Server.GameTicking
/// Contains a list of game map prototypes to load; modify it if you want to load different maps,
/// for example as part of a game rule.
/// </summary>
public class LoadingMapsEvent : EntityEventArgs
public sealed class LoadingMapsEvent : EntityEventArgs
{
public List<GameMapPrototype> Maps;
@@ -603,7 +603,7 @@ namespace Content.Server.GameTicking
/// Event raised to refresh the late join status.
/// If you want to disallow late joins, listen to this and call Disallow.
/// </summary>
public class RefreshLateJoinAllowedEvent
public sealed class RefreshLateJoinAllowedEvent
{
public bool DisallowLateJoin { get; private set; } = false;
@@ -617,7 +617,7 @@ namespace Content.Server.GameTicking
/// Attempt event raised on round start.
/// This can be listened to by GameRule systems to cancel round start if some condition is not met, like player count.
/// </summary>
public class RoundStartAttemptEvent : CancellableEntityEventArgs
public sealed class RoundStartAttemptEvent : CancellableEntityEventArgs
{
public IPlayerSession[] Players { get; }
public bool Forced { get; }
@@ -634,7 +634,7 @@ namespace Content.Server.GameTicking
/// You can use this to spawn people off-station, like in the case of nuke ops or wizard.
/// Remove the players you spawned from the PlayerPool and call <see cref="GameTicker.PlayerJoinGame"/> on them.
/// </summary>
public class RulePlayerSpawningEvent
public sealed class RulePlayerSpawningEvent
{
/// <summary>
/// Pool of players to be spawned.
@@ -657,7 +657,7 @@ namespace Content.Server.GameTicking
/// Event raised after players were assigned jobs by the GameTicker.
/// You can give on-station people special roles by listening to this event.
/// </summary>
public class RulePlayerJobsAssignedEvent
public sealed class RulePlayerJobsAssignedEvent
{
public IPlayerSession[] Players { get; }
public IReadOnlyDictionary<NetUserId, HumanoidCharacterProfile> Profiles { get; }
@@ -674,7 +674,7 @@ namespace Content.Server.GameTicking
/// <summary>
/// Event raised to allow subscribers to add text to the round end summary screen.
/// </summary>
public class RoundEndTextAppendEvent
public sealed class RoundEndTextAppendEvent
{
private bool _doNewLine;