Files
tbd-station-14/Content.Server/GameTicking/Rules/SandboxRuleSystem.cs
2023-04-24 16:21:05 +10:00

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