public void SaveRace(RaceIndexEntry entry)
 {
     lock (this)
     {
         entries[entry.RaceId] = entry;
     }
 }
Exemple #2
0
 private static void SaveRaceInternal(List <RaceIndexEntry> entries, RaceIndexEntry entry)
 {
     for (int i = 0; i < entries.Count; i++)
     {
         if (entries[i].RaceId == entry.RaceId)
         {
             entries[i] = entry;
             return;
         }
     }
     entries.Add(entry);
 }
Exemple #3
0
 public void SaveRace(RaceIndexEntry entry)
 {
     ChangeData(entries => SaveRaceInternal(entries, entry));
 }