Files
OldThink/Content.Server/GameTicking/GamePresets/PresetSandbox.cs

23 lines
678 B
C#
Raw Normal View History

using System.Collections.Generic;
using Content.Server.Sandbox;
using Robust.Server.Player;
2019-10-02 10:45:06 +02:00
using Robust.Shared.IoC;
2019-05-15 15:49:02 +02:00
namespace Content.Server.GameTicking.GamePresets
{
[GamePreset("sandbox")]
2019-05-15 15:49:02 +02:00
public sealed class PresetSandbox : GamePreset
{
[Dependency] private readonly ISandboxManager _sandboxManager = default!;
2019-10-02 10:45:06 +02:00
public override bool Start(IReadOnlyList<IPlayerSession> readyPlayers, bool force = false)
2019-05-15 15:49:02 +02:00
{
2019-10-02 10:45:06 +02:00
_sandboxManager.IsSandboxEnabled = true;
return true;
2019-05-15 15:49:02 +02:00
}
2019-10-18 14:28:39 +02:00
public override string ModeTitle => "Sandbox";
public override string Description => "No stress, build something!";
2019-05-15 15:49:02 +02:00
}
}