ShowHTNCommand.cs 517 B

12345678910111213141516
  1. using Content.Client.NPC.HTN;
  2. using Robust.Shared.Console;
  3. namespace Content.Client.NPC;
  4. public sealed class ShowHTNCommand : IConsoleCommand
  5. {
  6. public string Command => "showhtn";
  7. public string Description => "Shows the current status for HTN NPCs";
  8. public string Help => $"{Command}";
  9. public void Execute(IConsoleShell shell, string argStr, string[] args)
  10. {
  11. var npcs = IoCManager.Resolve<IEntitySystemManager>().GetEntitySystem<HTNSystem>();
  12. npcs.EnableOverlay ^= true;
  13. }
  14. }