mirror of
https://github.com/Melledy/Grasscutter.git
synced 2024-11-23 04:57:18 +00:00
Add alternates for quest field names without underscores
This commit is contained in:
parent
3df5f79ebf
commit
f85a7cbe59
@ -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() {
|
||||||
|
Loading…
Reference in New Issue
Block a user