| 1234567891011121314151617181920212223242526272829303132 |
- using Content.Client.Actions;
- using Content.Client.Mapping;
- using Content.Client.Markers;
- using JetBrains.Annotations;
- using Robust.Client.Graphics;
- using Robust.Client.State;
- 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("showsubfloor");
- _entitySystemManager.GetEntitySystem<ActionsSystem>().LoadActionAssignments("/mapping_actions.yml", false);
- }
- }
- }
|