private void UpdateLapCount(CarInterval msg) { if (CarBaseMessage.TimeType.NLaps == msg.IntervalType && msg.Interval > _currentLap) { _currentLap = (int)msg.Interval; IMessage newMsg = new RaceLapNumber(_currentLap); //if( _logger.IsDebugEnabled ) // _logger.Debug(newMsg.ToString()); // We use the front runner's lap count to artificially generate // a lap count for general display. DispatchMessage(newMsg, true); } }
private void UpdateLapCount( CarInterval msg ) { if (CarBaseMessage.TimeType.NLaps == msg.IntervalType && msg.Interval > _currentLap ) { _currentLap = (int) msg.Interval; IMessage newMsg = new RaceLapNumber(_currentLap); //if( _logger.IsDebugEnabled ) // _logger.Debug(newMsg.ToString()); // We use the front runner's lap count to artificially generate // a lap count for general display. DispatchMessage( newMsg, true ); } }