Preparation fo Mystery rolling

This commit is contained in:
2026-05-24 02:55:03 -05:00
parent 47bd6110cf
commit bceff701bf
15 changed files with 646 additions and 32 deletions

View File

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