Add custom resolver for mod settings dictionary

This commit is contained in:
Dean Herbert
2021-02-03 19:46:47 +09:00
parent c8f1126bd7
commit 75f1ebd5f9
2 changed files with 97 additions and 0 deletions

View File

@ -23,6 +23,7 @@ namespace osu.Game.Online.API
[JsonProperty("settings")]
[Key(1)]
[MessagePackFormatter(typeof(ModSettingsDictionaryFormatter))]
public Dictionary<string, object> Settings { get; set; } = new Dictionary<string, object>();
[JsonConstructor]