* Revert "Fix world generation (#38713)" This reverts commit10fa6ff4af. * Revert "Biome rework (#37735)" This reverts commitfe7b96147c.
23 lines
619 B
C#
23 lines
619 B
C#
using Robust.Client.Graphics;
|
|
using Robust.Shared.Console;
|
|
|
|
namespace Content.Client.Parallax.Commands;
|
|
|
|
public sealed class ShowBiomeCommand : LocalizedCommands
|
|
{
|
|
[Dependency] private readonly 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());
|
|
}
|
|
}
|
|
}
|