mirror of
https://github.com/ppy/osu.git
synced 2024-12-13 08:32:57 +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))]
|
[JsonConverter(typeof(StringEnumConverter))]
|
||||||
public ScoreRank? Rank;
|
public ScoreRank? Rank;
|
||||||
|
|
||||||
|
[JsonProperty("user_id")]
|
||||||
|
public int UserID = -1;
|
||||||
|
|
||||||
public static LegacyReplaySoloScoreInfo FromScore(ScoreInfo score) => new LegacyReplaySoloScoreInfo
|
public static LegacyReplaySoloScoreInfo FromScore(ScoreInfo score) => new LegacyReplaySoloScoreInfo
|
||||||
{
|
{
|
||||||
OnlineID = score.OnlineID,
|
OnlineID = score.OnlineID,
|
||||||
@ -51,6 +54,7 @@ namespace osu.Game.Scoring.Legacy
|
|||||||
MaximumStatistics = score.MaximumStatistics.Where(kvp => kvp.Value != 0).ToDictionary(),
|
MaximumStatistics = score.MaximumStatistics.Where(kvp => kvp.Value != 0).ToDictionary(),
|
||||||
ClientVersion = score.ClientVersion,
|
ClientVersion = score.ClientVersion,
|
||||||
Rank = score.Rank,
|
Rank = score.Rank,
|
||||||
|
UserID = score.UserID,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user