mirror of
https://github.com/ppy/osu.git
synced 2024-11-06 09:58:21 +08:00
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 @@ 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;
|
||||
|
Loading…
Reference in New Issue
Block a user