2021-12-03 15:35:57 +01:00
|
|
|
|
using Robust.Shared.Console;
|
|
|
|
|
|
using Robust.Shared.GameObjects;
|
|
|
|
|
|
|
|
|
|
|
|
namespace Content.Client.Decals;
|
|
|
|
|
|
|
2022-02-16 00:23:23 -07:00
|
|
|
|
public sealed class ToggleDecalCommand : IConsoleCommand
|
2021-12-03 15:35:57 +01:00
|
|
|
|
{
|
2024-05-12 17:34:52 -07:00
|
|
|
|
[Dependency] private readonly IEntityManager _e = default!;
|
|
|
|
|
|
|
2021-12-03 15:35:57 +01:00
|
|
|
|
public string Command => "toggledecals";
|
|
|
|
|
|
public string Description => "Toggles decaloverlay";
|
|
|
|
|
|
public string Help => $"{Command}";
|
|
|
|
|
|
public void Execute(IConsoleShell shell, string argStr, string[] args)
|
|
|
|
|
|
{
|
2024-05-12 17:34:52 -07:00
|
|
|
|
_e.System<DecalSystem>().ToggleOverlay();
|
2021-12-03 15:35:57 +01:00
|
|
|
|
}
|
|
|
|
|
|
}
|