mirror of
https://github.com/space-syndicate/space-station-14.git
synced 2026-10-09 18:31:17 +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
22 lines
618 B
C#
22 lines
618 B
C#
using Robust.Client.Graphics;
|
|
using Robust.Shared.Console;
|
|
|
|
namespace Content.Client.Parallax.Commands;
|
|
|
|
public sealed partial class ShowBiomeCommand : LocalizedCommands
|
|
{
|
|
[Dependency] private IOverlayManager _overlayMgr = default!;
|
|
|
|
public override string Command => "showbiome";
|
|
public override void Execute(IConsoleShell shell, string argStr, string[] args)
|
|
{
|
|
if (_overlayMgr.HasOverlay<BiomeDebugOverlay>())
|
|
{
|
|
_overlayMgr.RemoveOverlay<BiomeDebugOverlay>();
|
|
}
|
|
else
|
|
{
|
|
_overlayMgr.AddOverlay(new BiomeDebugOverlay());
|
|
}
|
|
}
|
|
}
|