| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- using Content.Client.Markers;
- using Content.Client.Popups;
- using Content.Client.SubFloor;
- using Content.Shared.SubFloor;
- using Robust.Client.GameObjects;
- using Robust.Shared.Console;
- using DrawDepth = Content.Shared.DrawDepth.DrawDepth;
- namespace Content.Client.Commands;
- internal sealed class ShowMarkersCommand : LocalizedCommands
- {
- [Dependency] private readonly IEntitySystemManager _entitySystemManager = default!;
- public override string Command => "showmarkers";
- public override string Help => LocalizationManager.GetString($"cmd-{Command}-help", ("command", Command));
- public override void Execute(IConsoleShell shell, string argStr, string[] args)
- {
- _entitySystemManager.GetEntitySystem<MarkerSystem>().MarkersVisible ^= true;
- }
- }
- internal sealed class ShowSubFloor : LocalizedCommands
- {
- [Dependency] private readonly IEntitySystemManager _entitySystemManager = default!;
- public override string Command => "showsubfloor";
- public override string Help => LocalizationManager.GetString($"cmd-{Command}-help", ("command", Command));
- public override void Execute(IConsoleShell shell, string argStr, string[] args)
- {
- _entitySystemManager.GetEntitySystem<SubFloorHideSystem>().ShowAll ^= true;
- }
- }
- internal sealed class NotifyCommand : LocalizedCommands
- {
- [Dependency] private readonly IEntitySystemManager _entitySystemManager = default!;
- public override string Command => "notify";
- public override string Help => LocalizationManager.GetString($"cmd-{Command}-help", ("command", Command));
- public override void Execute(IConsoleShell shell, string argStr, string[] args)
- {
- var message = args[0];
- _entitySystemManager.GetEntitySystem<PopupSystem>().PopupCursor(message);
- }
- }
|