Inheritance: PartModule
Example #1
0
        public bool PartIsKosProc(Part input, out kOSProcessor proc)
        {
            foreach (PartModule module in input.Modules)
            {
                if (module is kOSProcessor)
                {
                    proc = (kOSProcessor)module;
                    return(true);
                }
            }

            proc = null;
            return(false);
        }
Example #2
0
        public bool PartIsKosProc(Part input, out kOSProcessor proc)
        {
            foreach (PartModule module in input.Modules)
            {
                if (module is kOSProcessor)
                {
                    proc = (kOSProcessor)module;
                    return true;
                }
            }

            proc = null;
            return false;
        }
Example #3
0
 public Core(kOSProcessor processor, SharedObjects shared) : base(processor, shared)
 {
     InitializeSuffixes();
 }