54 lines
1.8 KiB
C#
54 lines
1.8 KiB
C#
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);
|
|
}
|
|
}
|