Display user global rank for selected ruleset in participants panel

This commit is contained in:
Salman Ahmed
2021-02-08 21:14:12 +03:00
parent bebff61a9d
commit d101add159
2 changed files with 21 additions and 8 deletions

View File

@ -3,6 +3,7 @@
using System;
using Newtonsoft.Json;
using osu.Game.Online.API.Requests;
using osu.Game.Scoring;
using osu.Game.Utils;
using static osu.Game.Users.User;
@ -26,6 +27,13 @@ namespace osu.Game.Users
public int Progress;
}
/// <remarks>
/// This must only be used when coming from condensed user responses (e.g. from <see cref="GetUsersRequest"/>), otherwise use <code>Ranks.Global</code>.
/// </remarks>
// todo: this should likely be moved to a separate UserStatisticsCompact class at some point.
[JsonProperty(@"global_rank")]
public int? GlobalRank;
[JsonProperty(@"pp")]
public decimal? PP;