Revisions and cleanup to dock and shuttle commands. (#38533)

commit
This commit is contained in:
Kyle Tyo
2025-06-23 17:25:35 -04:00
committed by GitHub
parent b68c6b37ac
commit 6a2afa5625
6 changed files with 48 additions and 68 deletions

View File

@@ -9,16 +9,14 @@ namespace Content.Server.Shuttles.Commands;
/// Calls in the emergency shuttle.
/// </summary>
[AdminCommand(AdminFlags.Fun)]
public sealed class DockEmergencyShuttleCommand : IConsoleCommand
public sealed class DockEmergencyShuttleCommand : LocalizedEntityCommands
{
[Dependency] private readonly IEntitySystemManager _sysManager = default!;
[Dependency] private readonly EmergencyShuttleSystem _shuttleSystem = default!;
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)
public override string Command => "dockemergencyshuttle";
public override void Execute(IConsoleShell shell, string argStr, string[] args)
{
var system = _sysManager.GetEntitySystem<EmergencyShuttleSystem>();
system.DockEmergencyShuttle();
_shuttleSystem.DockEmergencyShuttle();
}
}