Exemplo n.º 1
0
 public void ChangeIspAndPowerLinked(VariablePowerEngine other, float level)
 {
     if (this != other && CurPowerSetting != level * 100f)
     {
         CurPowerSetting = level * 100f;
     }
 }
Exemplo n.º 2
0
        // Finds vVariablePowerEngines on the ship
        private void SetupVariableEngines()
        {
            allVariableEngines = new List <VariablePowerEngine>();

            for (int j = 0; j < this.vessel.parts.Count; j++)
            {
                PartModuleList pml = this.vessel.parts[j].Modules;
                for (int i = 0; i < pml.Count; i++)
                {
                    PartModule          curModule = pml.GetModule(i);
                    VariablePowerEngine candidate = curModule.GetComponent <VariablePowerEngine>();
                    if (candidate != null && candidate != this && !allVariableEngines.Contains(candidate))
                    {
                        allVariableEngines.Add(candidate);
                    }
                }
            }
        }
 public void ChangeIspAndPowerLinked(VariablePowerEngine other, float level)
 {
     if (this != other && CurPowerSetting != level * 100f)
         CurPowerSetting = level * 100f;
 }