Files
crystall-punk-14/Content.Server/GameTicking/Rules/SandboxRuleSystem.cs

22 lines
536 B
C#
Raw Normal View History

using Content.Server.GameTicking.Rules.Configurations;
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(GameRuleConfiguration _)
2021-12-21 21:23:29 +01:00
{
_sandbox.IsSandboxEnabled = true;
}
public override void Ended(GameRuleConfiguration _)
2021-12-21 21:23:29 +01:00
{
_sandbox.IsSandboxEnabled = false;
}
}