mirror of
https://github.com/ppy/osu.git
synced 2024-12-13 05:22:54 +08:00
Encode user ID to replays
This commit is contained in:
parent
761d713593
commit
4d9ccdc3b2
@ -43,6 +43,9 @@ namespace osu.Game.Scoring.Legacy
|
||||
[JsonConverter(typeof(StringEnumConverter))]
|
||||
public ScoreRank? Rank;
|
||||
|
||||
[JsonProperty("user_id")]
|
||||
public int UserID = -1;
|
||||
|
||||
public static LegacyReplaySoloScoreInfo FromScore(ScoreInfo score) => new LegacyReplaySoloScoreInfo
|
||||
{
|
||||
OnlineID = score.OnlineID,
|
||||
@ -51,6 +54,7 @@ namespace osu.Game.Scoring.Legacy
|
||||
MaximumStatistics = score.MaximumStatistics.Where(kvp => kvp.Value != 0).ToDictionary(),
|
||||
ClientVersion = score.ClientVersion,
|
||||
Rank = score.Rank,
|
||||
UserID = score.UserID,
|
||||
};
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user