1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-14 16:37:26 +08:00

Rename to user_score to match API

This commit is contained in:
smoogipoo 2020-09-01 15:42:47 +09:00
parent 5e77e8cfcf
commit 9e3b809cab
2 changed files with 3 additions and 3 deletions

View File

@ -12,7 +12,7 @@ namespace osu.Game.Online.Multiplayer
[JsonProperty("leaderboard")] [JsonProperty("leaderboard")]
public List<APIUserScoreAggregate> Leaderboard; public List<APIUserScoreAggregate> Leaderboard;
[JsonProperty("own_score")] [JsonProperty("user_score")]
public APIUserScoreAggregate OwnScore; public APIUserScoreAggregate UserScore;
} }
} }

View File

@ -42,7 +42,7 @@ namespace osu.Game.Screens.Multi.Match.Components
req.Success += r => req.Success += r =>
{ {
scoresCallback?.Invoke(r.Leaderboard); scoresCallback?.Invoke(r.Leaderboard);
TopScore = r.OwnScore; TopScore = r.UserScore;
}; };
return req; return req;