Preparation fo Mystery rolling
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
namespace ALttPRandomizer {
|
||||
using System.Text.Json;
|
||||
using System.Text.Json.Serialization;
|
||||
using ALttPRandomizer.Serialization;
|
||||
|
||||
public static class JsonOptions {
|
||||
public static readonly JsonSerializerOptions Default = new JsonSerializerOptions(JsonSerializerDefaults.Web) {
|
||||
@@ -10,6 +11,7 @@
|
||||
|
||||
public static JsonSerializerOptions WithStringEnum(this JsonSerializerOptions options) {
|
||||
options.Converters.Add(new JsonStringEnumConverter(JsonNamingPolicy.SnakeCaseLower, false));
|
||||
options.Converters.Add(new RandomizableWeightsJsonConverter());
|
||||
return options;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user