mirror of
https://github.com/space-syndicate/space-station-14.git
synced 2026-10-10 10:51: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
17 lines
588 B
C#
17 lines
588 B
C#
using Content.Client.Shuttles.Systems;
|
|
using Robust.Shared.Console;
|
|
|
|
namespace Content.Client.Shuttles.Commands;
|
|
|
|
public sealed partial class ShowEmergencyShuttleCommand : LocalizedEntityCommands
|
|
{
|
|
[Dependency] private ShuttleSystem _shuttle = default!;
|
|
|
|
public override string Command => "showemergencyshuttle";
|
|
|
|
public override void Execute(IConsoleShell shell, string argStr, string[] args)
|
|
{
|
|
_shuttle.EnableShuttlePosition ^= true;
|
|
shell.WriteLine(Loc.GetString($"cmd-showemergencyshuttle-status", ("status", _shuttle.EnableShuttlePosition)));
|
|
}
|
|
}
|