mirror of
https://github.com/space-syndicate/space-station-14.git
synced 2026-10-09 10:21:18 +03:00
18 lines
563 B
C#
18 lines
563 B
C#
using Robust.Shared.Console;
|
|
|
|
namespace Content.Client.Ghost.Commands;
|
|
|
|
public sealed partial class ToggleGhostVisibilityCommand : LocalizedEntityCommands
|
|
{
|
|
[Dependency] private 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();
|
|
}
|
|
}
|