From bc8114ce34774ace2e85ff5501909e6b4b3a7fe2 Mon Sep 17 00:00:00 2001 From: 1zc Date: Sun, 10 Mar 2024 18:53:18 +1100 Subject: [PATCH] Comments for Map.WR & Map.BonusWR calls --- src/ST-Map/Map.cs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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)