コード例 #1
0
        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);
            }
        }
コード例 #2
0
ファイル: Runtime.cs プロジェクト: visual14ph/f1livetiming
        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 );
            }
        }