CatStation/Content.Client/Commands/DebugCommands.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

42 lines
1.1 KiB
C#

using Content.Client.Markers;
using Content.Client.Popups;
using Content.Client.SubFloor;
using Robust.Shared.Console;
namespace Content.Client.Commands;
internal sealed partial class ShowMarkersCommand : LocalizedEntityCommands
{
[Dependency] private MarkerSystem _markerSystem = default!;
public override string Command => "showmarkers";
public override void Execute(IConsoleShell shell, string argStr, string[] args)
{
_markerSystem.MarkersVisible ^= true;
}
}
internal sealed partial class ShowSubFloor : LocalizedEntityCommands
{
[Dependency] private SubFloorHideSystem _subfloorSystem = default!;
public override string Command => "showsubfloor";
public override void Execute(IConsoleShell shell, string argStr, string[] args)
{
_subfloorSystem.ShowAll ^= true;
}
}
internal sealed partial class NotifyCommand : LocalizedEntityCommands
{
[Dependency] private PopupSystem _popupSystem = default!;
public override string Command => "notify";
public override void Execute(IConsoleShell shell, string argStr, string[] args)
{
_popupSystem.PopupCursor(args[0]);
}
}