Made modString private and moved the beatmap assignment inside GetScoresRequest

This commit is contained in:
MrTheMake
2017-08-15 15:30:53 +02:00
parent 2c287e1348
commit 105048500a
3 changed files with 14 additions and 6 deletions

View File

@ -16,6 +16,17 @@ namespace osu.Game.Online.API.Requests
public GetScoresRequest(BeatmapInfo beatmap)
{
this.beatmap = beatmap;
Success += onSuccess;
}
private void onSuccess(GetScoresResponse r)
{
foreach (Score score in r.Scores)
{
score.Beatmap = beatmap;
score.Ruleset = beatmap.Ruleset;
}
}
protected override WebRequest CreateWebRequest()