Add mapping command (#1411)

Co-authored-by: Pieter-Jan Briers <pieterjan.briers@gmail.com>
Co-authored-by: Pieter-Jan Briers <pieterjan.briers+git@gmail.com>
This commit is contained in:
DrSmugleaf
2020-07-19 18:43:16 +02:00
committed by GitHub
parent 86c318cc74
commit 20b175d997
3 changed files with 54 additions and 2 deletions

View File

@@ -1,6 +1,7 @@
using Content.Client.GameObjects.EntitySystems;
using Content.Client.Interfaces;
using Content.Shared.GameObjects.Components.Markers;
using Robust.Client.Console.Commands;
using Robust.Client.Interfaces.Console;
using Robust.Client.Interfaces.GameObjects.Components;
using Robust.Shared.GameObjects;
@@ -59,4 +60,25 @@ namespace Content.Client.Commands
return false;
}
}
internal sealed class MappingCommand : IConsoleCommand
{
public string Command => "mapping";
public string Description => "Creates and teleports you to a new uninitialized map for mapping.";
public string Help => $"Usage: {Command} <id> <mapname>";
public bool Execute(IDebugConsole console, params string[] args)
{
if (args.Length != 2)
{
console.AddLine(Help);
return false;
}
console.Commands["togglelight"].Execute(console);
console.Commands["showwires"].Execute(console);
return true;
}
}
}