Refactor Game Modes (#5857)

This commit is contained in:
Vera Aguilera Puerto
2021-12-21 21:23:29 +01:00
committed by GitHub
parent d1a1ee3cbe
commit f4d8ec1b35
62 changed files with 2087 additions and 1804 deletions

View File

@@ -0,0 +1,21 @@
using Content.Server.Sandbox;
using Robust.Shared.IoC;
namespace Content.Server.GameTicking.Rules;
public class SandboxRuleSystem : GameRuleSystem
{
[Dependency] private readonly ISandboxManager _sandbox = default!;
public override string Prototype => "Sandbox";
public override void Added()
{
_sandbox.IsSandboxEnabled = true;
}
public override void Removed()
{
_sandbox.IsSandboxEnabled = false;
}
}