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,3 +1,4 @@
|
||||
using Content.Server.GameTicking.Rules.Configurations;
|
||||
using Content.Server.Sandbox;
|
||||
|
||||
namespace Content.Server.GameTicking.Rules;
|
||||
@@ -8,12 +9,12 @@ public sealed class SandboxRuleSystem : GameRuleSystem
|
||||
|
||||
public override string Prototype => "Sandbox";
|
||||
|
||||
public override void Started()
|
||||
public override void Started(GameRuleConfiguration _)
|
||||
{
|
||||
_sandbox.IsSandboxEnabled = true;
|
||||
}
|
||||
|
||||
public override void Ended()
|
||||
public override void Ended(GameRuleConfiguration _)
|
||||
{
|
||||
_sandbox.IsSandboxEnabled = false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user