コード例 #1
0
 public static void RedAlert(Vessel vessel)
 {
     if (vessel != null)
     {
         foreach (Part p in vessel.parts)
         {
             WarpDrive wd = p.FindModuleImplementing <WarpDrive> ();
             if (wd)
             {
                 wd.CallRedAlert();
                 return;
             }
         }
     }
 }
コード例 #2
0
 public int GetEffectiveness(WarpDrive wd)
 {
     return(effectiveness);
 }