2020-05-03 11:25:39 +02:00
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
using Content.Server.Sandbox;
|
2021-02-11 01:13:03 -08:00
|
|
|
|
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
|
|
|
|
|
|
{
|
2021-02-14 15:39:24 +01:00
|
|
|
|
[GamePreset("sandbox")]
|
2019-05-15 15:49:02 +02:00
|
|
|
|
public sealed class PresetSandbox : GamePreset
|
|
|
|
|
|
{
|
2020-08-24 14:10:28 +02:00
|
|
|
|
[Dependency] private readonly ISandboxManager _sandboxManager = default!;
|
2019-10-02 10:45:06 +02:00
|
|
|
|
|
2020-06-21 22:05:47 +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;
|
2020-05-03 11:25:39 +02:00
|
|
|
|
return true;
|
2019-05-15 15:49:02 +02:00
|
|
|
|
}
|
2019-10-18 14:28:39 +02:00
|
|
|
|
|
2020-04-08 06:07:54 -05:00
|
|
|
|
public override string ModeTitle => "Sandbox";
|
|
|
|
|
|
public override string Description => "No stress, build something!";
|
2019-05-15 15:49:02 +02:00
|
|
|
|
}
|
|
|
|
|
|
}
|