1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 15:07:44 +08:00

Add support for country rank

This commit is contained in:
tgi74000 2018-02-06 21:40:52 +01:00
parent f9cba37a65
commit d86ce816c7
2 changed files with 15 additions and 3 deletions

View File

@ -26,9 +26,9 @@ namespace osu.Game.Users
[JsonProperty(@"age")]
public int? Age;
public int GlobalRank;
public int GlobalRank { get => Statistics.Ranks.GlobalRank; set => Statistics.Ranks.GlobalRank = value; }
public int CountryRank;
public int CountryRank { get => Statistics.Ranks.CountryRank; set => Statistics.Ranks.CountryRank = value; }
//public Team Team;

View File

@ -23,7 +23,19 @@ namespace osu.Game.Users
public decimal? PP;
[JsonProperty(@"pp_rank")]
public int Rank;
public int Rank { get => Ranks.GlobalRank; set => Ranks.GlobalRank = value; }
[JsonProperty(@"rank")]
public UserRank Ranks;
public struct UserRank
{
[JsonProperty(@"global")]
public int GlobalRank;
[JsonProperty(@"country")]
public int CountryRank;
}
[JsonProperty(@"ranked_score")]
public long RankedScore;