2024-08-07 10:04:44 +10:00
|
|
|
using Content.Client.Actions;
|
2022-05-04 04:19:15 +01:00
|
|
|
using Content.Client.Markers;
|
2025-07-28 12:29:15 -04:00
|
|
|
using Content.Client.SubFloor;
|
2022-05-04 04:19:15 +01:00
|
|
|
using Robust.Client.Graphics;
|
|
|
|
|
using Robust.Shared.Console;
|
|
|
|
|
|
|
|
|
|
namespace Content.Client.Commands;
|
|
|
|
|
|
2025-07-28 12:29:15 -04:00
|
|
|
internal sealed class MappingClientSideSetupCommand : LocalizedEntityCommands
|
2022-05-04 04:19:15 +01:00
|
|
|
{
|
2024-01-03 23:29:37 +01:00
|
|
|
[Dependency] private readonly ILightManager _lightManager = default!;
|
2025-07-28 12:29:15 -04:00
|
|
|
[Dependency] private readonly ActionsSystem _actionSystem = default!;
|
|
|
|
|
[Dependency] private readonly MarkerSystem _markerSystem = default!;
|
|
|
|
|
[Dependency] private readonly SubFloorHideSystem _subfloorSystem = default!;
|
2024-01-03 23:29:37 +01:00
|
|
|
|
|
|
|
|
public override string Command => "mappingclientsidesetup";
|
|
|
|
|
|
|
|
|
|
public override void Execute(IConsoleShell shell, string argStr, string[] args)
|
2022-05-04 04:19:15 +01:00
|
|
|
{
|
2025-07-28 12:29:15 -04:00
|
|
|
if (_lightManager.LockConsoleAccess)
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
|
|
_markerSystem.MarkersVisible = true;
|
|
|
|
|
_lightManager.Enabled = false;
|
|
|
|
|
_subfloorSystem.ShowAll = true;
|
|
|
|
|
_actionSystem.LoadActionAssignments("/mapping_actions.yml", false);
|
2022-05-04 04:19:15 +01:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|