mirror of
https://github.com/ppy/osu.git
synced 2025-02-15 00:13:19 +08:00
Introduce SortedStatistics
This commit is contained in:
parent
51ae741fc7
commit
59cf2037d0
@ -151,6 +151,8 @@ namespace osu.Game.Scoring
|
||||
[JsonProperty("statistics")]
|
||||
public Dictionary<HitResult, int> Statistics = new Dictionary<HitResult, int>();
|
||||
|
||||
public IOrderedEnumerable<KeyValuePair<HitResult, int>> SortedStatistics => Statistics.OrderByDescending(pair => pair.Key);
|
||||
|
||||
[JsonIgnore]
|
||||
[Column("Statistics")]
|
||||
public string StatisticsJson
|
||||
|
Loading…
Reference in New Issue
Block a user