mirror of https://github.com/ppy/osu
Implement creation of mods
This commit is contained in:
parent
38502ba88c
commit
f9c64d7be3
|
@ -3,6 +3,7 @@
|
|||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using Newtonsoft.Json;
|
||||
using Newtonsoft.Json.Converters;
|
||||
using osu.Game.Online.Multiplayer;
|
||||
|
@ -61,7 +62,7 @@ public ScoreInfo CreateScoreInfo(PlaylistItem playlistItem)
|
|||
Date = EndedAt,
|
||||
Hash = string.Empty, // todo: temporary?
|
||||
Rank = Rank,
|
||||
Mods = Array.Empty<Mod>(), // todo: how?
|
||||
Mods = Mods.Select(m => m.ToMod(playlistItem.Ruleset.Value.CreateInstance())).ToArray()
|
||||
};
|
||||
|
||||
return scoreInfo;
|
||||
|
|
Loading…
Reference in New Issue