예제 #1
0
        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);
        }