Add commands to show and hide organs inside bodies (#2292)

* Add seeing entities through containers and on the context menu and 4 commands

* Remove unused imports
This commit is contained in:
DrSmugleaf
2020-10-26 12:11:32 +01:00
committed by GitHub
parent 8a2e0ed142
commit ebe8a82033
8 changed files with 257 additions and 15 deletions

View File

@@ -0,0 +1,29 @@
#nullable enable
using Content.Server.GameObjects.EntitySystems;
using Robust.Server.Interfaces.Console;
using Robust.Server.Interfaces.Player;
using Robust.Shared.GameObjects.Systems;
namespace Content.Server.Commands
{
public class ShowContainedContextCommand : IClientCommand
{
public const string CommandName = "showcontainedcontext";
// ReSharper disable once StringLiteralTypo
public string Command => CommandName;
public string Description => "Makes contained entities visible on the context menu, even when they shouldn't be.";
public string Help => $"{Command}";
public void Execute(IConsoleShell shell, IPlayerSession? player, string[] args)
{
if (player == null)
{
shell.SendText(player, "You need to be a player to use this command.");
return;
}
EntitySystem.Get<VerbSystem>().AddContainerVisibility(player);
}
}
}