Пример #1
0
        public void Update(ENG.NR2003.TelemetryEvents.Standings e)
        {
            if (e.SessionNum == EMPTY_SESSION_NUMBER) // invalid/empty Standings, exit method
            {
                return;
            }

            Session updatedSession = null;

            Support.StandingsUpdater.Update(w, e, out updatedSession);
        }
        private static void UpdateSession(Session sess, ENG.NR2003.TelemetryEvents.Standings e)
        {
            foreach (var fItem in e.Positions)
            {
                if (fItem.IsValid == false)
                {
                    continue;
                }

                var s = GetCorrespondingStandingForStandingsentry(fItem.CarIdx, sess);
                UpdateStanding(s, fItem);
            }

            sess.Standings.Sort();
        }