Files
RobustToolbox/Robust.Client/Physics/GridSplitVisualsCommand.cs
2022-11-15 22:00:28 +11:00

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}");
}
}