コード例 #1
0
        /// <summary>
        /// Determines whether the part is considered operating or not.
        /// </summary>
        public bool IsPartOperating()
        {
            Profiler.BeginSample("IsPartOperating");
            IFlightDataRecorder dr = TestFlightUtil.GetDataRecorder(this.part, Alias);

            Profiler.EndSample();
            return(dr != null && dr.IsPartOperating());
        }
コード例 #2
0
        /// <summary>
        /// Determines whether the part is considered operating or not.
        /// </summary>
        public bool IsPartOperating()
        {
            IFlightDataRecorder dr = TestFlightUtil.GetDataRecorder(this.part, Alias);

            if (dr == null)
            {
                return(false);
            }

            return(dr.IsPartOperating());
        }
コード例 #3
0
        /// <summary>
        /// Determines whether the part is considered operating or not.
        /// </summary>
        public bool IsPartOperating()
        {
            if (activeFailure != null)
            {
                return(false);
            }

            IFlightDataRecorder dr = TestFlightUtil.GetDataRecorder(this.part, Configuration);

            if (dr == null)
            {
                return(false);
            }

            return(dr.IsPartOperating());
        }
コード例 #4
0
 // Get the Data Recorder Modules that are bound to a given alias
 public static IFlightDataRecorder GetDataRecorder(Part part, string alias)
 {
     return(TestFlightUtil.GetDataRecorder(part, alias));
 }
コード例 #5
0
 // Get the Data Recorder Module - can only ever be one.
 public static IFlightDataRecorder GetDataRecorder(Part part)
 {
     return(TestFlightUtil.GetDataRecorder(part));
 }