CatStation/Content.Client/Commands/MappingClientSideSetupCommand.cs
Pieter-Jan Briers 5168b5f3d4
IoC source gen compatibility (#43863)
* IoC source gen compatibility

Can be merged before or after https://github.com/space-wizards/RobustToolbox/pull/6549 doesn't really matter.

* Missed a spot
2026-05-09 03:29:58 +00:00

29 lines
972 B
C#

using Content.Client.Actions;
using Content.Client.Markers;
using Content.Client.SubFloor;
using Robust.Client.Graphics;
using Robust.Shared.Console;
namespace Content.Client.Commands;
internal sealed partial class MappingClientSideSetupCommand : LocalizedEntityCommands
{
[Dependency] private ILightManager _lightManager = default!;
[Dependency] private ActionsSystem _actionSystem = default!;
[Dependency] private MarkerSystem _markerSystem = default!;
[Dependency] private SubFloorHideSystem _subfloorSystem = default!;
public override string Command => "mappingclientsidesetup";
public override void Execute(IConsoleShell shell, string argStr, string[] args)
{
if (_lightManager.LockConsoleAccess)
return;
_markerSystem.MarkersVisible = true;
_lightManager.Enabled = false;
_subfloorSystem.ShowAll = true;
_actionSystem.LoadActionAssignments("/mapping_actions.yml", false);
}
}