- Steam App
- City-Racing (3821590)
- Event type
- patch note
- Published
- 9 August 2025 - 02:18:07 UTC
- Source
- steam_community_announcements
1. RaceHistory• Purpose:RaceHistory is a data structure that stores the results of all races that have been completed.• Structure:It contains a list of RaceData objects, each representing a single race, including details like car name, track name, lap times, position, and mileage.• Usage:• When a race finishes, a new RaceData entry is created and added to RaceHistory.• RaceHistory is saved to and loaded from disk (usually as JSON) to persist results across sessions.---2. RacePositionStats• Purpose:RacePositionStats is a utility class for aggregating and analyzing race results, specifically to count how many times each racer finished in each position (1st, 2nd, ..., 11th).• Structure:• It uses a dictionary:Dictionary racerPlacementswhere the key is the racer's name, and the value is an array of counts for each position.• Usage:• For each race result, you call AddResult(racerName, position...