2021-12-21 21:23:29 +01:00
|
|
|
using Content.Server.Sandbox;
|
|
|
|
|
|
|
|
|
|
namespace Content.Server.GameTicking.Rules;
|
|
|
|
|
|
2022-02-16 00:23:23 -07:00
|
|
|
public sealed class SandboxRuleSystem : GameRuleSystem
|
2021-12-21 21:23:29 +01:00
|
|
|
{
|
2022-02-24 11:00:30 +11:00
|
|
|
[Dependency] private readonly SandboxSystem _sandbox = default!;
|
2021-12-21 21:23:29 +01:00
|
|
|
|
|
|
|
|
public override string Prototype => "Sandbox";
|
|
|
|
|
|
2022-02-15 20:06:28 -07:00
|
|
|
public override void Started()
|
2021-12-21 21:23:29 +01:00
|
|
|
{
|
|
|
|
|
_sandbox.IsSandboxEnabled = true;
|
|
|
|
|
}
|
|
|
|
|
|
2022-02-15 20:06:28 -07:00
|
|
|
public override void Ended()
|
2021-12-21 21:23:29 +01:00
|
|
|
{
|
|
|
|
|
_sandbox.IsSandboxEnabled = false;
|
|
|
|
|
}
|
|
|
|
|
}
|