mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-02-15 03:30:53 +01:00
20 lines
647 B
C#
20 lines
647 B
C#
using Robust.Shared.Console;
|
|
using Robust.Shared.GameObjects;
|
|
using Robust.Shared.IoC;
|
|
|
|
namespace Robust.Client.Physics;
|
|
|
|
public sealed class GridSplitVisualCommand : LocalizedCommands
|
|
{
|
|
[Dependency] private readonly IEntitySystemManager _systemManager = default!;
|
|
|
|
public override string Command => SharedGridFixtureSystem.ShowGridNodesCommand;
|
|
|
|
public override void Execute(IConsoleShell shell, string argStr, string[] args)
|
|
{
|
|
var system = _systemManager.GetEntitySystem<GridFixtureSystem>();
|
|
system.EnableDebug ^= true;
|
|
shell.WriteLine($"Toggled gridsplit node visuals to {system.EnableDebug}");
|
|
}
|
|
}
|