1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-22 00:47:24 +08:00

Fix formatting

This commit is contained in:
Dean Herbert 2018-02-07 17:11:10 +09:00
parent bcd568e607
commit 20c00720e5
2 changed files with 15 additions and 3 deletions

View File

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

View File

@ -23,7 +23,11 @@ namespace osu.Game.Users
public decimal? PP;
[JsonProperty(@"pp_rank")]
public int Rank { get => Ranks.GlobalRank ?? 0; set => Ranks.GlobalRank = value; }
public int Rank
{
get => Ranks.GlobalRank ?? 0;
set => Ranks.GlobalRank = value;
}
[JsonProperty(@"rank")]
public UserRank Ranks;