Files
tbd-station-14/Content.Client/Ghost/Commands/ToggleGhostVisibilityCommand.cs
Kyle Tyo 9d22f6147c Command resolve killing, LEC conversions, and general cleanup. (#38338)
* i'm just gonna put this here.

* I'm just gonna do it.

* Update ShowHTNCommand.cs

* I feel dumb.

* may as well with this too.

* this does in fact not work

* :/
2025-06-17 20:08:12 +02:00

19 lines
567 B
C#

using Robust.Shared.Console;
namespace Content.Client.Ghost.Commands;
public sealed class ToggleGhostVisibilityCommand : LocalizedEntityCommands
{
[Dependency] private readonly GhostSystem _ghost = default!;
public override string Command => "toggleghostvisibility";
public override void Execute(IConsoleShell shell, string argStr, string[] args)
{
if (args.Length != 0 && bool.TryParse(args[0], out var visibility))
_ghost.ToggleGhostVisibility(visibility);
else
_ghost.ToggleGhostVisibility();
}
}