Files
tbd-station-14/Content.Server/GameTicking/Rules/SandboxRuleSystem.cs
2022-02-23 17:00:30 -07:00

21 lines
435 B
C#

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()
{
_sandbox.IsSandboxEnabled = true;
}
public override void Ended()
{
_sandbox.IsSandboxEnabled = false;
}
}