1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-06 09:47:52 +08:00

Implement creation of mods

This commit is contained in:
smoogipoo 2020-05-28 19:57:58 +09:00
parent 38502ba88c
commit f9c64d7be3

View File

@ -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 @@ namespace osu.Game.Online.API
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;