示例#1
0
 protected void onThrottleUpdate(bool isThrottledUp)
 {
     if (isBroken)
     {
         return;
     }
     qualityControl.PerformQualityCheck();
 }
示例#2
0
 protected virtual void onThrottleUpDown(bool isThrottleUp)
 {
     if (EngineIsRunning)
     {
         debugLog("onThrottleUpDown thinks engine is running. Performing quality check...");
         qualityControl.PerformQualityCheck();
     }
 }
示例#3
0
        public void ToggleResourceLocks()
        {
            ignoreFlowStateChanges = true;

            for (int index = 0; index < this.part.Resources.Count; index++)
            {
                this.part.Resources[index].flowState = !this.part.Resources[index].flowState;
            }

            ignoreFlowStateChanges = false;

            qualityControl.UpdateActivationState();
            qualityControl.PerformQualityCheck();
        }
示例#4
0
        protected void onRcsUpdate(bool rcsActive)
        {
            if (isMothballed)
            {
                return;
            }

            if (isBroken)
            {
                IsActive = false;
                return;
            }

            IsActive = rcsActive;
            qualityControl.UpdateActivationState();
            qualityControl.PerformQualityCheck();
        }