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); }
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; }