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:
parent
f9cba37a65
commit
d86ce816c7
@ -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;
|
||||
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user