* action commands * atmos debug commands * comming * credits command * debug commands * usage * usings * debug pathfinding command * grouping entity menu command * hide mechanisms command * commit * mapping client side setup command * open ahelp command * set menu visibility command * commit * show mechanisms command * toggle health overlay command * toggle outline command * stage * disable once * ioc * namespaces * WriteError * clean up command usage * don't abbriviate * ActionsCommands * AtmosDebugCommands * the rest * oops * undo
30 lines
1022 B
C#
30 lines
1022 B
C#
using Content.Client.Markers;
|
|
using JetBrains.Annotations;
|
|
using Robust.Client.Graphics;
|
|
using Robust.Shared.Console;
|
|
|
|
namespace Content.Client.Commands;
|
|
|
|
[UsedImplicitly]
|
|
internal sealed class MappingClientSideSetupCommand : LocalizedCommands
|
|
{
|
|
[Dependency] private readonly IEntitySystemManager _entitySystemManager = default!;
|
|
[Dependency] private readonly ILightManager _lightManager = default!;
|
|
|
|
public override string Command => "mappingclientsidesetup";
|
|
|
|
public override string Help => LocalizationManager.GetString($"cmd-{Command}-help", ("command", Command));
|
|
|
|
public override void Execute(IConsoleShell shell, string argStr, string[] args)
|
|
{
|
|
if (!_lightManager.LockConsoleAccess)
|
|
{
|
|
_entitySystemManager.GetEntitySystem<MarkerSystem>().MarkersVisible = true;
|
|
_lightManager.Enabled = false;
|
|
shell.ExecuteCommand(ShowSubFloorForever.CommandName);
|
|
shell.ExecuteCommand(LoadMappingActionsCommand.CommandName);
|
|
}
|
|
}
|
|
}
|
|
|