Example #1
0
 /// <inheritdoc/>
 public override void ProcessData(NormalizedData normalizedData, Device.SegmentDisplayPosition position,
                                  IOutputFormatters outputFormatters, ref String str, ref uint[] decimalOrPrimeIndexList)
 {
     if (normalizedData.StatusData.RemainingLaps > 0)
     {
         outputFormatters.LapsToGo(normalizedData.StatusData.RemainingLaps, ref str, ref decimalOrPrimeIndexList);
     }
 }
Example #2
0
        /// <inheritdoc/>
        public override void ProcessData(NormalizedData normalizedData, Device.SegmentDisplayPosition position,
                                         IOutputFormatters outputFormatters, ref String str, ref uint[] decimalOrPrimeIndexList)
        {
            double?value = m_getDelta(normalizedData);

            if (value != null)
            {
                outputFormatters.DeltaTime((double)value, ref str, ref decimalOrPrimeIndexList);
            }
        }
 /// <inheritdoc/>
 public override void ProcessData(NormalizedData normalizedData, Device.SegmentDisplayPosition position,
                                  IOutputFormatters outputFormatters, ref String str, ref uint[] decimalOrPrimeIndexList)
 {
     outputFormatters.LapCounter(normalizedData.StatusData.TotalLaps, normalizedData.StatusData.CurrentLap,
                                 normalizedData.StatusData.CompletedLaps, ref str, ref decimalOrPrimeIndexList);
 }
 /// <inheritdoc/>
 public override void ProcessData(NormalizedData normalizedData, Device.SegmentDisplayPosition position,
                                  IOutputFormatters outputFormatters, ref String str, ref uint[] decimalOrPrimeIndexList)
 {
     outputFormatters.Position(normalizedData.StatusData.Position, normalizedData.StatusData.OpponentsCount,
                               ref str, ref decimalOrPrimeIndexList);
 }
Example #5
0
 /// <inheritdoc/>
 public override void ProcessData(NormalizedData normalizedData, Device.SegmentDisplayPosition position,
                                  IOutputFormatters outputFormatters, ref String str, ref uint[] decimalOrPrimeIndexList)
 {
     outputFormatters.LapTime(m_getTimeSpan(normalizedData), ref str, ref decimalOrPrimeIndexList);
 }
 /// <summary>Process game data from SimHub.</summary>
 /// <remarks>
 /// The implementation of this function should probably call <see cref="Device.SetSegment"/>.
 /// </remarks>
 /// <param name="normalizedData"></param>
 /// <param name="position">Whether the segment is display on the left or right. Can affect decimal/primes on the SLI-Pro.
 /// </param>
 /// <param name="outputFormatters"></param>
 /// <param name="str">Reference to a string to assign to.</param>
 /// <param name="decimalOrPrimeIndexList">To assign to if decimal (or primes with SLI-Pro) are to be set. Should be a
 /// list of indexes.</param>
 public abstract void ProcessData(NormalizedData normalizedData, Device.SegmentDisplayPosition position,
                                  IOutputFormatters outputFormatters, ref String str, ref uint[] decimalOrPrimeIndexList);
 /// <summary>Show the name provided to the constructor.</summary>
 /// <param name="sliDevice"></param>
 /// <param name="position">To pass to <see cref="Device.SetSegment"/>.</param>
 public void ShowName(Device sliDevice, Device.SegmentDisplayPosition position)
 {
     sliDevice.SetSegment(position, m_shortName);
 }