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().MarkersVisible = true; _lightManager.Enabled = false; shell.ExecuteCommand(ShowSubFloorForever.CommandName); shell.ExecuteCommand(LoadMappingActionsCommand.CommandName); } } }