diff --git a/src/ST-Map/Map.cs b/src/ST-Map/Map.cs index b031143..947f9b4 100644 --- a/src/ST-Map/Map.cs +++ b/src/ST-Map/Map.cs @@ -20,7 +20,14 @@ internal class Map public int DateAdded {get; set;} = 0; public int LastPlayed {get; set;} = 0; public int TotalCompletions {get; set;} = 0; + /// + /// Map World Record - Refer to as WR[style] + /// public Dictionary WR { get; set; } = new Dictionary(); + /// + /// Bonus World Record - Refer to as BonusWR[bonus#][style] + /// + public Dictionary[] BonusWR { get; set; } = { new Dictionary() }; public List ConnectedMapTimes { get; set; } = new List(); public List ReplayBots { get; set; } = new List { new ReplayPlayer() }; @@ -276,7 +283,7 @@ FROM MapTimes while (mapWrData.Read()) { if (totalRows == 0) // We are sorting by `run_time ASC` so the first row is always the fastest run for the map and style combo :) - { + { this.WR[style].ID = mapWrData.GetInt32("id"); // WR ID for the Map and Style combo this.WR[style].Ticks = mapWrData.GetInt32("run_time"); // Fastest run time (WR) for the Map and Style combo this.WR[style].Type = mapWrData.GetInt32("type"); // Bonus type (0 = map, 1+ = bonus index)