mirror of
https://github.com/WWhiteDreamProject/wwdpublic.git
synced 2026-04-21 23:48:15 +03:00
21 lines
435 B
C#
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;
|
|
}
|
|
}
|