Beispiel #1
0
        public bool TryAddPart(string slot, DroppedBodyPartComponent part, bool force = false)
        {
            DebugTools.AssertNotNull(part);

            if (!TryAddPart(slot, part.ContainedBodyPart, force))
            {
                return(false);
            }

            part.Owner.Delete();
            return(true);
        }
        public bool InstallDroppedBodyPart(DroppedBodyPartComponent part, string slotName)
        {
            DebugTools.AssertNotNull(part);

            if (!InstallBodyPart(part.ContainedBodyPart, slotName))
            {
                return(false);
            }

            part.Owner.Delete();
            return(true);
        }