/// <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()); }
/// <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()); }
/// <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()); }
// 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)); }
// Get the Data Recorder Module - can only ever be one. public static IFlightDataRecorder GetDataRecorder(Part part) { return(TestFlightUtil.GetDataRecorder(part)); }