コード例 #1
0
        // 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));
        }