Convert a few debugging commands and the mapping setup command to LEC. (#38589)
* commit * Update MappingClientSideSetupCommand.cs * missed a spot * Update MappingClientSideSetupCommand.cs * whoopos * Update mappingclientsidesetup-command.ftl
This commit is contained in:
@@ -1,32 +1,29 @@
|
||||
using Content.Client.Actions;
|
||||
using Content.Client.Mapping;
|
||||
using Content.Client.Markers;
|
||||
using JetBrains.Annotations;
|
||||
using Content.Client.SubFloor;
|
||||
using Robust.Client.Graphics;
|
||||
using Robust.Client.State;
|
||||
using Robust.Shared.Console;
|
||||
|
||||
namespace Content.Client.Commands;
|
||||
|
||||
[UsedImplicitly]
|
||||
internal sealed class MappingClientSideSetupCommand : LocalizedCommands
|
||||
internal sealed class MappingClientSideSetupCommand : LocalizedEntityCommands
|
||||
{
|
||||
[Dependency] private readonly IEntitySystemManager _entitySystemManager = default!;
|
||||
[Dependency] private readonly ILightManager _lightManager = default!;
|
||||
[Dependency] private readonly ActionsSystem _actionSystem = default!;
|
||||
[Dependency] private readonly MarkerSystem _markerSystem = default!;
|
||||
[Dependency] private readonly SubFloorHideSystem _subfloorSystem = 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("showsubfloor");
|
||||
_entitySystemManager.GetEntitySystem<ActionsSystem>().LoadActionAssignments("/mapping_actions.yml", false);
|
||||
}
|
||||
if (_lightManager.LockConsoleAccess)
|
||||
return;
|
||||
|
||||
_markerSystem.MarkersVisible = true;
|
||||
_lightManager.Enabled = false;
|
||||
_subfloorSystem.ShowAll = true;
|
||||
_actionSystem.LoadActionAssignments("/mapping_actions.yml", false);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user