// Set the FlightData for FlightTime or the part - this is an absolute set and replaces the previous FlightData/Time // This is generally NOT recommended. Use ModifyFlightData instead so that the Core can ensure your modifications cooperate with others // These functions are currently NOT implemented! // public static void SetFlightData(double data) // { // } // public static void SetFlightTime(double seconds) // { // } // public static void SetFlightDataForScope(double data, String scope) // { // } // public static void SetFlightTimeForScope(double seconds, String scope) // { // } // Modify the FlightData or FlightTime for the part // The given modifier is multiplied against the current FlightData unless additive is true public static double ModifyFlightData(Part part, double modifier) { return(TestFlightInterface.ModifyFlightDataForScope(part, modifier, TestFlightInterface.GetScope(), false)); }
public static double ModifyFlightTime(Part part, double modifier, bool additive) { return(TestFlightInterface.ModifyFlightTimeForScope(part, modifier, TestFlightInterface.GetScope(), additive)); }
public static double GetFlightTime(Part part) { return(TestFlightInterface.GetFlightTimeForScope(part, TestFlightInterface.GetScope())); }
// The momentary failure rate is tracked per named "trigger" which allows multiple Reliability or FailureTrigger modules to cooperate // Returns the total modified failure rate back to the caller for convenience public static double SetTriggerMomentaryFailureModifier(Part part, String trigger, double multiplier, PartModule owner) { return(TestFlightInterface.SetTriggerMomentaryFailureModifierForScope(part, trigger, multiplier, owner, TestFlightInterface.GetScope())); }
public static double GetMomentaryFailureRateForTrigger(Part part, String trigger) { return(TestFlightInterface.GetMomentaryFailureRateForTriggerForScope(part, trigger, TestFlightInterface.GetScope())); }
public static double GetBestMomentaryFailureRate(Part part) { return(TestFlightInterface.GetBestMomentaryFailureRateForScope(part, TestFlightInterface.GetScope())); }
// Get the Reliability Curve for the part public static FloatCurve GetBaseReliabilityCurve(Part part) { return(TestFlightInterface.GetBaseReliabilityCurveForScope(part, TestFlightInterface.GetScope())); }