2022-06-26 15:20:45 +10:00
|
|
|
using Content.Server.Administration;
|
|
|
|
|
using Content.Server.Shuttles.Systems;
|
|
|
|
|
using Content.Shared.Administration;
|
|
|
|
|
using Robust.Shared.Console;
|
|
|
|
|
|
|
|
|
|
namespace Content.Server.Shuttles.Commands;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Calls in the emergency shuttle.
|
|
|
|
|
/// </summary>
|
|
|
|
|
[AdminCommand(AdminFlags.Fun)]
|
|
|
|
|
public sealed class DockEmergencyShuttleCommand : IConsoleCommand
|
|
|
|
|
{
|
2023-03-24 12:54:41 +11:00
|
|
|
[Dependency] private readonly IEntitySystemManager _sysManager = default!;
|
|
|
|
|
|
2022-06-26 15:20:45 +10:00
|
|
|
public string Command => "dockemergencyshuttle";
|
|
|
|
|
public string Description => Loc.GetString("emergency-shuttle-command-dock-desc");
|
|
|
|
|
public string Help => $"{Command}";
|
|
|
|
|
public void Execute(IConsoleShell shell, string argStr, string[] args)
|
|
|
|
|
{
|
2023-03-24 12:54:41 +11:00
|
|
|
var system = _sysManager.GetEntitySystem<EmergencyShuttleSystem>();
|
2024-09-09 20:10:28 +02:00
|
|
|
system.DockEmergencyShuttle();
|
2022-06-26 15:20:45 +10:00
|
|
|
}
|
|
|
|
|
}
|