Implement creation of mods

This commit is contained in:
smoogipoo 2020-05-28 19:57:58 +09:00
parent 38502ba88c
commit f9c64d7be3
1 changed files with 2 additions and 1 deletions

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 @@ 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;