Exemple #1
0
        public bool PartIsKosProc(Part input, out IProcessorModule proc)
        {
            foreach (PartModule module in input.Modules)
            {
                var processor = module as IProcessorModule;
                if (processor == null)
                {
                    continue;
                }
                proc = processor;
                return(true);
            }

            proc = null;
            return(false);
        }
Exemple #2
0
        public bool PartIsKosProc(Part input, out IProcessorModule proc)
        {
            foreach (PartModule module in input.Modules)
            {
                var processor = module as IProcessorModule;
                if (processor == null) continue;
                proc = processor;
                return true;
            }

            proc = null;
            return false;
        }