Add a command and verb to attach a body part to yourself (#2372)

* Add attachbodypart command

* Make the slot name depend on the verb instead of the command
This commit is contained in:
DrSmugleaf
2020-10-25 23:16:57 +01:00
committed by GitHub
parent 4c46c7afce
commit d460d2b64d
6 changed files with 169 additions and 1 deletions

View File

@@ -145,6 +145,13 @@ namespace Content.Shared.GameObjects.Components.Body
return _parts.ContainsKey(slot);
}
public bool HasPart(IBodyPart part)
{
DebugTools.AssertNotNull(part);
return _parts.ContainsValue(part);
}
public void RemovePart(IBodyPart part)
{
DebugTools.AssertNotNull(part);