Add alternates for quest field names without underscores

This commit is contained in:
KingRainbow44 2023-05-03 23:40:18 -04:00
parent 3df5f79ebf
commit f85a7cbe59
No known key found for this signature in database
GPG Key ID: FC2CB64B00D257BE

View File

@ -110,13 +110,13 @@ public class QuestData extends GameResource {
@Data @Data
@FieldDefaults(level = AccessLevel.PRIVATE) @FieldDefaults(level = AccessLevel.PRIVATE)
public static class QuestExecParam { public static class QuestExecParam {
@SerializedName("_type") @SerializedName(value = "_type", alternate = {"type"})
QuestExec type; QuestExec type;
@SerializedName("_param") @SerializedName(value = "_param", alternate = {"param"})
String[] param; String[] param;
@SerializedName("_count") @SerializedName(value = "_count", alternate = {"count"})
String count; String count;
} }
@ -126,16 +126,16 @@ public class QuestData extends GameResource {
@Data @Data
public static class QuestCondition<TYPE extends Enum<?> & QuestTrigger> { public static class QuestCondition<TYPE extends Enum<?> & QuestTrigger> {
@SerializedName("_type") @SerializedName(value = "_type", alternate = {"type"})
private TYPE type; private TYPE type;
@SerializedName("_param") @SerializedName(value = "_param", alternate = {"param"})
private int[] param; private int[] param;
@SerializedName("_param_str") @SerializedName(value = "_param_str", alternate = {"param_str"})
private String paramStr; private String paramStr;
@SerializedName("_count") @SerializedName(value = "_count", alternate = {"count"})
private int count; private int count;
public String asKey() { public String asKey() {