KerbalEngineer.VesselSimulator.PartSim.IsDecoupler C# (CSharp) Method

IsDecoupler() private method

private IsDecoupler ( Part thePart ) : bool
thePart Part
return bool
        private bool IsDecoupler(Part thePart)
        {
            PartExtensions.ProtoModuleDecoupler protoDecoupler = thePart.GetProtoModuleDecoupler();
            if (protoDecoupler != null && protoDecoupler.IsStageEnabled)
                return true;

            ModuleDockingNode modDock = thePart.GetModule<ModuleDockingNode>();
            if (modDock != null && modDock.IsStageable())
                return true;

            return false;
        }