2024-01-03 23:29:37 +01:00
|
|
|
using Content.Shared.Body.Organ;
|
2020-10-26 12:11:32 +01:00
|
|
|
using Robust.Client.GameObjects;
|
2021-02-01 16:49:43 -08:00
|
|
|
using Robust.Shared.Console;
|
2020-10-26 12:11:32 +01:00
|
|
|
|
2024-01-03 23:29:37 +01:00
|
|
|
namespace Content.Client.Commands;
|
|
|
|
|
|
|
|
|
|
public sealed class ShowMechanismsCommand : LocalizedCommands
|
2020-10-26 12:11:32 +01:00
|
|
|
{
|
2024-01-03 23:29:37 +01:00
|
|
|
[Dependency] private readonly IEntityManager _entManager = default!;
|
2020-10-26 12:11:32 +01:00
|
|
|
|
2024-01-03 23:29:37 +01:00
|
|
|
public const string CommandName = "showmechanisms";
|
2020-10-26 12:11:32 +01:00
|
|
|
|
2024-01-03 23:29:37 +01:00
|
|
|
public override string Command => CommandName;
|
2020-10-26 12:11:32 +01:00
|
|
|
|
2024-01-03 23:29:37 +01:00
|
|
|
public override string Help => LocalizationManager.GetString($"cmd-{Command}-help", ("command", Command));
|
2020-10-26 12:11:32 +01:00
|
|
|
|
2024-01-03 23:29:37 +01:00
|
|
|
public override void Execute(IConsoleShell shell, string argStr, string[] args)
|
|
|
|
|
{
|
|
|
|
|
var query = _entManager.AllEntityQueryEnumerator<OrganComponent, SpriteComponent>();
|
|
|
|
|
|
|
|
|
|
while (query.MoveNext(out _, out var sprite))
|
|
|
|
|
{
|
|
|
|
|
sprite.ContainerOccluded = false;
|
2020-10-26 12:11:32 +01:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|