Exemple #1
0
 private void initializeController()
 {
     KSPWheelBase[] bases = part.GetComponents <KSPWheelBase>();
     controller = bases[baseModuleIndex];
     if (controller == null)
     {
         throw new NullReferenceException("ERROR: Could not locate KSPWheelBase controller module for wheel system.");
     }
     controller.addSubmodule(this);
     wheelData = controller.wheelData[wheelIndex];
     postControllerSetup();
     onUIControlsUpdated(controller.showControls);
 }
Exemple #2
0
 public WheelDebugData(KSPWheelBase baseModule, KSPWheelBase.KSPWheelData wheelData)
 {
     this.baseModule = baseModule;
     this.wheelData  = wheelData;
 }