mirror of https://github.com/ppy/osu
Restructure class slightly
This commit is contained in:
parent
841c2c56d9
commit
85a844a378
|
@ -39,6 +39,9 @@ private UserRanks ranks
|
||||||
set => CountryRank = value.Country;
|
set => CountryRank = value.Country;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// populated via User model, as that's where the data currently lives.
|
||||||
|
public RankHistoryData RankHistory;
|
||||||
|
|
||||||
[JsonProperty(@"pp")]
|
[JsonProperty(@"pp")]
|
||||||
public decimal? PP;
|
public decimal? PP;
|
||||||
|
|
||||||
|
@ -117,14 +120,12 @@ public int this[ScoreRank rank]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#pragma warning disable 649
|
||||||
private struct UserRanks
|
private struct UserRanks
|
||||||
{
|
{
|
||||||
#pragma warning disable 649
|
|
||||||
[JsonProperty(@"country")]
|
[JsonProperty(@"country")]
|
||||||
public int? Country;
|
public int? Country;
|
||||||
#pragma warning restore 649
|
|
||||||
}
|
}
|
||||||
|
#pragma warning restore 649
|
||||||
public RankHistoryData RankHistory;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue