protected void onThrottleUpdate(bool isThrottledUp) { if (isBroken) { return; } qualityControl.PerformQualityCheck(); }
protected virtual void onThrottleUpDown(bool isThrottleUp) { if (EngineIsRunning) { debugLog("onThrottleUpDown thinks engine is running. Performing quality check..."); qualityControl.PerformQualityCheck(); } }
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(); }
protected void onRcsUpdate(bool rcsActive) { if (isMothballed) { return; } if (isBroken) { IsActive = false; return; } IsActive = rcsActive; qualityControl.UpdateActivationState(); qualityControl.PerformQualityCheck(); }