Ejemplo n.º 1
0
        public override void OnCopy(PartModule fromModule)
        {
            ModuleSPEngine from = fromModule as ModuleSPEngine;

            DesignGuid = from.DesignGuid;
            base.OnCopy(fromModule);
            OnAwake();
        }
Ejemplo n.º 2
0
 public void EditPart(ModuleSPEngine m)
 {
     if (configWindow != null)
     {
         configWindow.Hide();
         configWindow = null;
         return;
     }
     configWindow = new UI.ConfigWindow(m);
     configWindow.Show();
 }
Ejemplo n.º 3
0
        virtual public void UpdateSymmetryCounterparts()
        {
            if (part.symmetryCounterparts == null)
            {
                return;
            }

            int pCount = part.symmetryCounterparts.Count;

            for (int j = 0; j < pCount; j++)
            {
                if (part.symmetryCounterparts[j] == part)
                {
                    continue;
                }
                /* Assumes each part only has one ModuleSPEngine. */
                ModuleSPEngine engine = part.symmetryCounterparts[j].FindModuleImplementing <ModuleSPEngine>();
                engine.DesignGuid = DesignGuid;
                engine.applyConfig(false, true);
            }
        }