mirror of
https://github.com/space-syndicate/space-station-14.git
synced 2026-10-09 10:21:18 +03:00
* IoC source gen compatibility Can be merged before or after https://github.com/space-wizards/RobustToolbox/pull/6549 doesn't really matter. * Missed a spot
24 lines
812 B
C#
24 lines
812 B
C#
using Content.Client.Wall;
|
|
using Robust.Client.Graphics;
|
|
using Robust.Shared.Console;
|
|
|
|
namespace Content.Client.Commands;
|
|
|
|
/// <summary>
|
|
/// Shows the area in which entities with <see cref="Content.Shared.Wall.WallMountComponent" /> can be interacted from.
|
|
/// </summary>
|
|
public sealed partial class ShowWallmountsCommand : LocalizedCommands
|
|
{
|
|
[Dependency] private IOverlayManager _overlay = default!;
|
|
|
|
public override string Command => "showwallmounts";
|
|
|
|
public override void Execute(IConsoleShell shell, string argStr, string[] args)
|
|
{
|
|
var existing = _overlay.RemoveOverlay<WallmountDebugOverlay>();
|
|
if (!existing)
|
|
_overlay.AddOverlay(new WallmountDebugOverlay());
|
|
|
|
shell.WriteLine(Loc.GetString("cmd-showwallmounts-status", ("status", !existing)));
|
|
}
|
|
}
|