Add settings for ganon crystals and GT crystals
This commit is contained in:
@@ -8,7 +8,7 @@
|
|||||||
}.WithStringEnum();
|
}.WithStringEnum();
|
||||||
|
|
||||||
public static JsonSerializerOptions WithStringEnum(this JsonSerializerOptions options) {
|
public static JsonSerializerOptions WithStringEnum(this JsonSerializerOptions options) {
|
||||||
options.Converters.Add(new JsonStringEnumConverter());
|
options.Converters.Add(new JsonStringEnumConverter(JsonNamingPolicy.SnakeCaseLower));
|
||||||
return options;
|
return options;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
namespace ALttPRandomizer.Model {
|
namespace ALttPRandomizer.Model {
|
||||||
using ALttPRandomizer.Settings;
|
using ALttPRandomizer.Settings;
|
||||||
using System.ComponentModel.DataAnnotations;
|
using System.ComponentModel.DataAnnotations;
|
||||||
|
using System.Text.Json.Serialization;
|
||||||
|
|
||||||
public class SeedSettings {
|
public class SeedSettings {
|
||||||
public const string Omit = "<null>";
|
public const string Omit = "<null>";
|
||||||
@@ -11,6 +12,12 @@
|
|||||||
|
|
||||||
public Goal Goal { get; set; } = Goal.Ganon;
|
public Goal Goal { get; set; } = Goal.Ganon;
|
||||||
|
|
||||||
|
[CommonValue("crystals_ganon")]
|
||||||
|
public EntryRequirement CrystalsGanon { get; set; } = EntryRequirement.Crystals7;
|
||||||
|
|
||||||
|
[CommonValue("crystals_gt")]
|
||||||
|
public EntryRequirement CrystalsGT { get; set; } = EntryRequirement.Crystals7;
|
||||||
|
|
||||||
public EntranceShuffle EntranceShuffle { get; set; } = EntranceShuffle.Vanilla;
|
public EntranceShuffle EntranceShuffle { get; set; } = EntranceShuffle.Vanilla;
|
||||||
public SkullWoodsShuffle SkullWoods { get; set; } = SkullWoodsShuffle.Original;
|
public SkullWoodsShuffle SkullWoods { get; set; } = SkullWoodsShuffle.Original;
|
||||||
public LinkedDrops LinkedDrops { get; set; } = LinkedDrops.Unset;
|
public LinkedDrops LinkedDrops { get; set; } = LinkedDrops.Unset;
|
||||||
@@ -65,6 +72,18 @@
|
|||||||
Completionist,
|
Completionist,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public enum EntryRequirement {
|
||||||
|
[JsonStringEnumMemberName("7")] [CommonValue("7")] Crystals7,
|
||||||
|
[JsonStringEnumMemberName("6")] [CommonValue("6")] Crystals6,
|
||||||
|
[JsonStringEnumMemberName("5")] [CommonValue("5")] Crystals5,
|
||||||
|
[JsonStringEnumMemberName("4")] [CommonValue("4")] Crystals4,
|
||||||
|
[JsonStringEnumMemberName("3")] [CommonValue("3")] Crystals3,
|
||||||
|
[JsonStringEnumMemberName("2")] [CommonValue("2")] Crystals2,
|
||||||
|
[JsonStringEnumMemberName("1")] [CommonValue("1")] Crystals1,
|
||||||
|
[JsonStringEnumMemberName("0")] [CommonValue("0")] Crystals0,
|
||||||
|
Random,
|
||||||
|
}
|
||||||
|
|
||||||
[CommonValue("shuffle")]
|
[CommonValue("shuffle")]
|
||||||
public enum EntranceShuffle {
|
public enum EntranceShuffle {
|
||||||
Vanilla,
|
Vanilla,
|
||||||
|
|||||||
Reference in New Issue
Block a user