* Add extendroundstart message to extend lobby start timer * Rename StartExtend to DelayStart * Fix delaystart amounts above 59 not working * Change delaystart seconds type from int to uint * Change delaystart wrong args amount message * Add forcegamepreset command * Rename forcegamepreset to forcepreset and merged start and forcestart preset methods * Fix index out of bounds exception when forcing suspicion to start * Change game preset to match regardless of casing * Add forcepreset unknown preset message * Add and move in lobby checks * Remove testing changes * Change delaystart to pause/resume the timer when no seconds are specified * Change pause message * Remove testing code * Change 0 seconds to not be a valid amount of seconds * Replace MsgTickerLobbyCountdown Seconds with DateTime instead of uint * Add one entire dot * Replace Math.Min + Math.Max with Math.Clamp Co-authored-by: ComicIronic <comicironic@gmail.com> Co-authored-by: ComicIronic <comicironic@gmail.com>
24 lines
706 B
C#
24 lines
706 B
C#
using System.Collections.Generic;
|
|
using Content.Server.Sandbox;
|
|
using Robust.Server.Interfaces.Player;
|
|
using Robust.Shared.IoC;
|
|
|
|
namespace Content.Server.GameTicking.GamePresets
|
|
{
|
|
public sealed class PresetSandbox : GamePreset
|
|
{
|
|
#pragma warning disable 649
|
|
[Dependency] private readonly ISandboxManager _sandboxManager;
|
|
#pragma warning restore 649
|
|
|
|
public override bool Start(IReadOnlyList<IPlayerSession> readyPlayers, bool force = false)
|
|
{
|
|
_sandboxManager.IsSandboxEnabled = true;
|
|
return true;
|
|
}
|
|
|
|
public override string ModeTitle => "Sandbox";
|
|
public override string Description => "No stress, build something!";
|
|
}
|
|
}
|