22 lines
536 B
C#
22 lines
536 B
C#
using Content.Server.GameTicking.Rules.Configurations;
|
|
using Content.Server.Sandbox;
|
|
|
|
namespace Content.Server.GameTicking.Rules;
|
|
|
|
public sealed class SandboxRuleSystem : GameRuleSystem
|
|
{
|
|
[Dependency] private readonly SandboxSystem _sandbox = default!;
|
|
|
|
public override string Prototype => "Sandbox";
|
|
|
|
public override void Started(GameRuleConfiguration _)
|
|
{
|
|
_sandbox.IsSandboxEnabled = true;
|
|
}
|
|
|
|
public override void Ended(GameRuleConfiguration _)
|
|
{
|
|
_sandbox.IsSandboxEnabled = false;
|
|
}
|
|
}
|