2022-05-04 04:19:15 +01:00
|
|
|
using Content.Client.Markers;
|
2024-01-03 23:29:37 +01:00
|
|
|
using JetBrains.Annotations;
|
2022-05-04 04:19:15 +01:00
|
|
|
using Robust.Client.Graphics;
|
|
|
|
|
using Robust.Shared.Console;
|
|
|
|
|
|
|
|
|
|
namespace Content.Client.Commands;
|
|
|
|
|
|
|
|
|
|
[UsedImplicitly]
|
2024-01-03 23:29:37 +01:00
|
|
|
internal sealed class MappingClientSideSetupCommand : LocalizedCommands
|
2022-05-04 04:19:15 +01:00
|
|
|
{
|
2024-01-03 23:29:37 +01:00
|
|
|
[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));
|
2022-05-04 04:19:15 +01:00
|
|
|
|
2024-01-03 23:29:37 +01:00
|
|
|
public override void Execute(IConsoleShell shell, string argStr, string[] args)
|
2022-05-04 04:19:15 +01:00
|
|
|
{
|
2024-01-03 23:29:37 +01:00
|
|
|
if (!_lightManager.LockConsoleAccess)
|
2022-05-04 04:19:15 +01:00
|
|
|
{
|
2024-01-03 23:29:37 +01:00
|
|
|
_entitySystemManager.GetEntitySystem<MarkerSystem>().MarkersVisible = true;
|
|
|
|
|
_lightManager.Enabled = false;
|
|
|
|
|
shell.ExecuteCommand(ShowSubFloorForever.CommandName);
|
|
|
|
|
shell.ExecuteCommand(LoadMappingActionsCommand.CommandName);
|
2022-05-04 04:19:15 +01:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|