Files
OldThink/Content.Server/GameTicking/Rules/SandboxRuleSystem.cs

21 lines
435 B
C#
Raw Normal View History

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