mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-09-16 07:12:27 +02:00
* Fix light pop-in Doh * Uniqueness * Refactor to be less bad * Better perf * Fix perf problems * Hide debug commands under preprocessor Can't imagine anyone using this during live-game. * CVars
20 lines
574 B
C#
20 lines
574 B
C#
#if DEBUG
|
|
using Robust.Client.GameObjects;
|
|
using Robust.Shared.Console;
|
|
using Robust.Shared.GameObjects;
|
|
|
|
namespace Robust.Client.Console.Commands
|
|
{
|
|
internal sealed class LightDebugCommand : IConsoleCommand
|
|
{
|
|
public string Command => "lightbb";
|
|
public string Description => "Toggles whether to show light bounding boxes";
|
|
public string Help => $"{Command}";
|
|
public void Execute(IConsoleShell shell, string argStr, string[] args)
|
|
{
|
|
EntitySystem.Get<DebugLightTreeSystem>().Enabled ^= true;
|
|
}
|
|
}
|
|
}
|
|
#endif
|