1
0

ToggleDecalCommand.cs 505 B

1234567891011121314151617
  1. using Robust.Shared.Console;
  2. using Robust.Shared.GameObjects;
  3. namespace Content.Client.Decals;
  4. public sealed class ToggleDecalCommand : IConsoleCommand
  5. {
  6. [Dependency] private readonly IEntityManager _e = default!;
  7. public string Command => "toggledecals";
  8. public string Description => "Toggles decaloverlay";
  9. public string Help => $"{Command}";
  10. public void Execute(IConsoleShell shell, string argStr, string[] args)
  11. {
  12. _e.System<DecalSystem>().ToggleOverlay();
  13. }
  14. }