Implement game rule configs. Game rules are now proper prototypes instead of just an alias for a system. (#8539)
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
using System.Linq;
|
||||
using Content.Server.GameTicking.Presets;
|
||||
using Content.Server.GameTicking.Rules.Configurations;
|
||||
using Content.Shared.Random;
|
||||
using Content.Shared.Random.Helpers;
|
||||
using Robust.Shared.Prototypes;
|
||||
@@ -15,12 +16,12 @@ public sealed class SecretRuleSystem : GameRuleSystem
|
||||
|
||||
public override string Prototype => "Secret";
|
||||
|
||||
public override void Started()
|
||||
public override void Started(GameRuleConfiguration _)
|
||||
{
|
||||
PickRule();
|
||||
}
|
||||
|
||||
public override void Ended()
|
||||
public override void Ended(GameRuleConfiguration _)
|
||||
{
|
||||
// noop
|
||||
// Preset should already handle it.
|
||||
|
||||
Reference in New Issue
Block a user