1
0
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:
Bartłomiej Dach 2024-05-03 13:23:41 +02:00
parent 761d713593
commit 4d9ccdc3b2
No known key found for this signature in database

View File

@ -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,
};
}
}