QuestConfigData.java 1.86 KB
Newer Older
Melledy's avatar
Melledy committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
package emu.grasscutter.data.custom;

import emu.grasscutter.game.quest.enums.LogicType;
import emu.grasscutter.game.quest.enums.QuestCondType;
import emu.grasscutter.game.quest.enums.QuestType;

public class QuestConfigData {
	private int id;
	private int series;
	private QuestType type;
	
	private long titleTextMapHash;
	private int[] suggestTrackMainQuestList;
	private int[] rewardIdList;
	
	private SubQuestConfigData[] subQuests;
	
	public int getId() {
		return id;
	}

	public int getSeries() {
		return series;
	}

	public QuestType getType() {
		return type;
	}

	public long getTitleTextMapHash() {
		return titleTextMapHash;
	}

	public int[] getSuggestTrackMainQuestList() {
		return suggestTrackMainQuestList;
	}

	public int[] getRewardIdList() {
		return rewardIdList;
	}

	public SubQuestConfigData[] getSubQuests() {
		return subQuests;
	}

	public class SubQuestConfigData {
		private int subId;
		private int mainId;
		
		private LogicType acceptCondComb;
		private QuestCondition[] acceptCond;
		
		private LogicType finishCondComb;
		private QuestCondition[] finishCond;
		
		private LogicType failCondComb;
		private QuestCondition[] failCond;
		
		public int getSubId() {
			return subId;
		}
		
		public int getMainId() {
			return mainId;
		}
		
		public LogicType getAcceptCondComb() {
			return acceptCondComb;
		}
		
		public QuestCondition[] getAcceptCond() {
			return acceptCond;
		}
		
		public LogicType getFinishCondComb() {
			return finishCondComb;
		}
		
		public QuestCondition[] getFinishCond() {
			return finishCond;
		}
		
		public LogicType getFailCondComb() {
			return failCondComb;
		}
		
		public QuestCondition[] getFailCond() {
			return failCond;
		}
	}
	
	public class QuestCondition {
		private QuestCondType type;
		private int[] param;
		
		public QuestCondType getType() {
			return type;
		}
		
		public int[] getParam() {
			return param;
		}
	}
}