1
0

ShowBiomeCommand.cs 619 B

12345678910111213141516171819202122
  1. using Robust.Client.Graphics;
  2. using Robust.Shared.Console;
  3. namespace Content.Client.Parallax.Commands;
  4. public sealed class ShowBiomeCommand : LocalizedCommands
  5. {
  6. [Dependency] private readonly IOverlayManager _overlayMgr = default!;
  7. public override string Command => "showbiome";
  8. public override void Execute(IConsoleShell shell, string argStr, string[] args)
  9. {
  10. if (_overlayMgr.HasOverlay<BiomeDebugOverlay>())
  11. {
  12. _overlayMgr.RemoveOverlay<BiomeDebugOverlay>();
  13. }
  14. else
  15. {
  16. _overlayMgr.AddOverlay(new BiomeDebugOverlay());
  17. }
  18. }
  19. }