Add the ability for mappers to drag grids around. (#7769)

* Add the ability for mappers to drag grids around.

* Less message spam

* Also flinging
This commit is contained in:
metalgearsloth
2022-05-10 12:27:37 +10:00
committed by GitHub
parent 1be085cee5
commit 9561323592
5 changed files with 204 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
using Content.Shared.Maps;
using Robust.Shared.Console;
namespace Content.Client.Maps;
/// <summary>
/// Toggles GridDragging on the system.
/// </summary>
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)
{
IoCManager.Resolve<IEntitySystemManager>().GetEntitySystem<GridDraggingSystem>().Enabled ^= true;
}
}