mirror of
https://github.com/space-syndicate/space-station-14.git
synced 2026-10-14 04:41:14 +03:00
* IoC source gen compatibility Can be merged before or after https://github.com/space-wizards/RobustToolbox/pull/6549 doesn't really matter. * Missed a spot
24 lines
700 B
C#
24 lines
700 B
C#
using Content.Server.Administration;
|
|
using Content.Shared.Administration;
|
|
using Robust.Shared.Console;
|
|
|
|
namespace Content.Server.GameTicking.Commands;
|
|
|
|
[AdminCommand(AdminFlags.Round)]
|
|
public sealed partial class StartRoundCommand : LocalizedEntityCommands
|
|
{
|
|
[Dependency] private GameTicker _gameTicker = default!;
|
|
|
|
public override string Command => "startround";
|
|
|
|
public override void Execute(IConsoleShell shell, string argStr, string[] args)
|
|
{
|
|
if (_gameTicker.RunLevel != GameRunLevel.PreRoundLobby)
|
|
{
|
|
shell.WriteLine(Loc.GetString("shell-can-only-run-from-pre-round-lobby"));
|
|
return;
|
|
}
|
|
|
|
_gameTicker.StartRound();
|
|
}
|
|
}
|