2022-06-26 15:20:45 +10:00
|
|
|
using Content.Client.Shuttles.Systems;
|
|
|
|
|
using Robust.Shared.Console;
|
|
|
|
|
|
|
|
|
|
namespace Content.Client.Shuttles.Commands;
|
|
|
|
|
|
2025-06-06 20:28:00 -04:00
|
|
|
public sealed class ShowEmergencyShuttleCommand : LocalizedEntityCommands
|
2022-06-26 15:20:45 +10:00
|
|
|
{
|
2025-06-06 20:28:00 -04:00
|
|
|
[Dependency] private readonly ShuttleSystem _shuttle = default!;
|
|
|
|
|
|
|
|
|
|
public override string Command => "showemergencyshuttle";
|
|
|
|
|
|
|
|
|
|
public override void Execute(IConsoleShell shell, string argStr, string[] args)
|
2022-06-26 15:20:45 +10:00
|
|
|
{
|
2025-06-06 20:28:00 -04:00
|
|
|
_shuttle.EnableShuttlePosition ^= true;
|
|
|
|
|
shell.WriteLine(Loc.GetString($"cmd-showemergencyshuttle-status", ("status", _shuttle.EnableShuttlePosition)));
|
2022-06-26 15:20:45 +10:00
|
|
|
}
|
|
|
|
|
}
|