Engineer.VesselSimulator.PartSim.RemoveAttachedParts C# (CSharp) Method

RemoveAttachedParts() public method

public RemoveAttachedParts ( HashSet partSims ) : void
partSims HashSet
return void
        public void RemoveAttachedParts(HashSet<PartSim> partSims)
        {
            // Loop through the attached parts
            foreach (AttachNodeSim attachSim in attachNodes)
            {
                // If the part is in the set then "remove" it by clearing the PartSim reference
                if (partSims.Contains(attachSim.attachedPartSim))
                    attachSim.attachedPartSim = null;
            }
        }