using Content.Shared.Maps;
using Robust.Shared.Console;
namespace Content.Client.Maps;
///
/// Toggles GridDragging on the system.
///
public sealed class GridDraggingCommand : IConsoleCommand
{
public string Command => SharedGridDraggingSystem.CommandName;
public string Description => $"Allows someone with permissions to drag grids around.";
public string Help => $"{Command}";
public void Execute(IConsoleShell shell, string argStr, string[] args)
{
var system = IoCManager.Resolve().GetEntitySystem();
system.Enabled ^= true;
if (system.Enabled)
shell.WriteLine("Grid dragging toggled on");
else
shell.WriteLine("Grid dragging toggled off");
}
}