Remove in-between properties

This commit is contained in:
Dean Herbert
2018-02-07 18:04:32 +09:00
parent 20c00720e5
commit 647cc4bdad
8 changed files with 40 additions and 56 deletions

View File

@ -23,23 +23,10 @@ namespace osu.Game.Users
public decimal? PP;
[JsonProperty(@"pp_rank")]
public int Rank
{
get => Ranks.GlobalRank ?? 0;
set => Ranks.GlobalRank = value;
}
private int rank { set => Ranks.Global = value; }
[JsonProperty(@"rank")]
public UserRank Ranks;
public struct UserRank
{
[JsonProperty(@"global")]
public int? GlobalRank;
[JsonProperty(@"country")]
public int? CountryRank;
}
public UserRanks Ranks;
[JsonProperty(@"ranked_score")]
public long RankedScore;
@ -82,5 +69,15 @@ namespace osu.Game.Users
[JsonProperty(@"a")]
public int A;
}
public struct UserRanks
{
[JsonProperty(@"global")]
public int Global;
[JsonProperty(@"country")]
public int Country;
}
}
}