Exemplo n.º 1
0
        /// <summary>
        /// Triggers the failure controlled by the failure module
        /// </summary>
        public virtual void DoFailure()
        {
            Failed = true;
            ITestFlightCore core = TestFlightUtil.GetCore(this.part);

            if (core != null)
            {
                core.ModifyFlightData(duFail, true);
            }
            FlightLogger.eventLog.Add(String.Format("[{0}] {1} failed: {2}", TestFlightUtil.FormatTime(this.vessel.missionTime), TestFlightUtil.GetPartTitle(this.part), failureTitle));
        }