1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 09:27:29 +08:00

Add best count from api

This commit is contained in:
Joseph Madamba 2021-04-24 09:27:32 -07:00
parent 59cb5f4679
commit 3e74d61dab
2 changed files with 6 additions and 0 deletions

View File

@ -36,6 +36,9 @@ namespace osu.Game.Overlays.Profile.Sections.Ranks
{
switch (type)
{
case ScoreType.Best:
return user.ScoresBestCount;
case ScoreType.Firsts:
return user.ScoresFirstCount;

View File

@ -144,6 +144,9 @@ namespace osu.Game.Users
[JsonProperty(@"unranked_beatmapset_count")]
public int UnrankedBeatmapsetCount;
[JsonProperty(@"scores_best_count")]
public int ScoresBestCount;
[JsonProperty(@"scores_first_count")]
public int ScoresFirstCount;