ShowEmergencyShuttleCommand.cs 694 B

1234567891011121314151617
  1. using Content.Client.Shuttles.Systems;
  2. using Robust.Shared.Console;
  3. namespace Content.Client.Shuttles.Commands;
  4. public sealed class ShowEmergencyShuttleCommand : IConsoleCommand
  5. {
  6. public string Command => "showemergencyshuttle";
  7. public string Description => "Shows the expected position of the emergency shuttle";
  8. public string Help => $"{Command}";
  9. public void Execute(IConsoleShell shell, string argStr, string[] args)
  10. {
  11. var tstalker = IoCManager.Resolve<IEntitySystemManager>().GetEntitySystem<ShuttleSystem>();
  12. tstalker.EnableShuttlePosition ^= true;
  13. shell.WriteLine($"Set emergency shuttle debug to {tstalker.EnableShuttlePosition}");
  14. }
  15. }