コード例 #1
0
 public void ChangeIspAndThrustLinked(VariableISPEngine other, float level)
 {
     if (this != other && CurThrustSetting != level * 100f)
     {
         CurThrustSetting = level * 100f;
     }
 }
コード例 #2
0
        private void SetupVariableEngines()
        {
            allVariableEngines = new List <VariableISPEngine>();

            List <Part> allParts = this.vessel.parts;

            foreach (Part pt in allParts)
            {
                PartModuleList pml = pt.Modules;
                for (int i = 0; i < pml.Count; i++)
                {
                    PartModule        curModule = pml.GetModule(i);
                    VariableISPEngine candidate = curModule.GetComponent <VariableISPEngine>();

                    if (candidate != null && candidate != this && !allVariableEngines.Contains(candidate))
                    {
                        allVariableEngines.Add(candidate);
                    }
                }
            }
        }
コード例 #3
0
 public void ChangeIspAndThrustLinked(VariableISPEngine other, float level)
 {
     if (this != other && CurThrustSetting != level*100f)
         CurThrustSetting = level * 100f;
 }