GameData.java 19.1 KB
Newer Older
Melledy's avatar
Melledy committed
1
2
3
package emu.grasscutter.data;

import java.lang.reflect.Field;
Yazawazi's avatar
Yazawazi committed
4
import java.util.ArrayList;
Melledy's avatar
Melledy committed
5
import java.util.HashMap;
Yazawazi's avatar
Yazawazi committed
6
import java.util.List;
Melledy's avatar
Melledy committed
7
8
9
import java.util.Map;

import emu.grasscutter.Grasscutter;
10
import emu.grasscutter.data.binout.*;
hartie95's avatar
hartie95 committed
11
import emu.grasscutter.game.quest.QuestEncryptionKey;
Melledy's avatar
Melledy committed
12
import emu.grasscutter.utils.Utils;
Melledy's avatar
Melledy committed
13
import emu.grasscutter.data.excels.*;
Melledy's avatar
Melledy committed
14
15
16
import it.unimi.dsi.fastutil.ints.Int2ObjectLinkedOpenHashMap;
import it.unimi.dsi.fastutil.ints.Int2ObjectMap;
import it.unimi.dsi.fastutil.ints.Int2ObjectOpenHashMap;
17
18
import it.unimi.dsi.fastutil.ints.IntArrayList;
import it.unimi.dsi.fastutil.ints.IntList;
Akka's avatar
Akka committed
19
import lombok.Getter;
Melledy's avatar
Melledy committed
20

21
public class GameData {
Melledy's avatar
Melledy committed
22
23
24
	// BinOutputs
	private static final Int2ObjectMap<String> abilityHashes = new Int2ObjectOpenHashMap<>();
	private static final Map<String, AbilityEmbryoEntry> abilityEmbryos = new HashMap<>();
Melledy's avatar
Melledy committed
25
	private static final Map<String, AbilityModifierEntry> abilityModifiers = new HashMap<>();
Melledy's avatar
Melledy committed
26
	private static final Map<String, OpenConfigEntry> openConfigEntries = new HashMap<>();
Yazawazi's avatar
Yazawazi committed
27
	private static final Map<String, ScenePointEntry> scenePointEntries = new HashMap<>();
Melledy's avatar
Melledy committed
28
	private static final Int2ObjectMap<MainQuestData> mainQuestData = new Int2ObjectOpenHashMap<>();
hartie95's avatar
hartie95 committed
29
	private static final Int2ObjectMap<QuestEncryptionKey> questsKeys = new Int2ObjectOpenHashMap<>();
30
	private static final Int2ObjectMap<HomeworldDefaultSaveData> homeworldDefaultSaveData = new Int2ObjectOpenHashMap<>();
Akka's avatar
Akka committed
31
	private static final Int2ObjectMap<SceneNpcBornData> npcBornData = new Int2ObjectOpenHashMap<>();
32

Melledy's avatar
Melledy committed
33
34
	// ExcelConfigs
	private static final Int2ObjectMap<PlayerLevelData> playerLevelDataMap = new Int2ObjectOpenHashMap<>();
akatatsu27's avatar
akatatsu27 committed
35

Melledy's avatar
Melledy committed
36
37
38
39
40
	private static final Int2ObjectMap<AvatarData> avatarDataMap = new Int2ObjectOpenHashMap<>();
	private static final Int2ObjectMap<AvatarLevelData> avatarLevelDataMap = new Int2ObjectOpenHashMap<>();
	private static final Int2ObjectMap<AvatarSkillDepotData> avatarSkillDepotDataMap = new Int2ObjectOpenHashMap<>();
	private static final Int2ObjectMap<AvatarSkillData> avatarSkillDataMap = new Int2ObjectOpenHashMap<>();
	private static final Int2ObjectMap<AvatarCurveData> avatarCurveDataMap = new Int2ObjectLinkedOpenHashMap<>();
Yazawazi's avatar
Yazawazi committed
41
	private static final Int2ObjectMap<AvatarFetterLevelData> avatarFetterLevelDataMap = new Int2ObjectOpenHashMap<>();
Melledy's avatar
Melledy committed
42
43
44
	private static final Int2ObjectMap<AvatarPromoteData> avatarPromoteDataMap = new Int2ObjectOpenHashMap<>();
	private static final Int2ObjectMap<AvatarTalentData> avatarTalentDataMap = new Int2ObjectOpenHashMap<>();
	private static final Int2ObjectMap<ProudSkillData> proudSkillDataMap = new Int2ObjectOpenHashMap<>();
akatatsu27's avatar
akatatsu27 committed
45

Melledy's avatar
Melledy committed
46
47
48
49
50
51
52
53
54
	private static final Int2ObjectMap<ItemData> itemDataMap = new Int2ObjectOpenHashMap<>();
	private static final Int2ObjectMap<ReliquaryLevelData> reliquaryLevelDataMap = new Int2ObjectOpenHashMap<>();
	private static final Int2ObjectMap<ReliquaryAffixData> reliquaryAffixDataMap = new Int2ObjectOpenHashMap<>();
	private static final Int2ObjectMap<ReliquaryMainPropData> reliquaryMainPropDataMap = new Int2ObjectOpenHashMap<>();
	private static final Int2ObjectMap<ReliquarySetData> reliquarySetDataMap = new Int2ObjectOpenHashMap<>();
	private static final Int2ObjectMap<WeaponLevelData> weaponLevelDataMap = new Int2ObjectOpenHashMap<>();
	private static final Int2ObjectMap<WeaponPromoteData> weaponPromoteDataMap = new Int2ObjectOpenHashMap<>();
	private static final Int2ObjectMap<WeaponCurveData> weaponCurveDataMap = new Int2ObjectOpenHashMap<>();
	private static final Int2ObjectMap<EquipAffixData> equipAffixDataMap = new Int2ObjectOpenHashMap<>();
55
56

	private static final Int2ObjectMap<EnvAnimalGatherConfigData> envAnimalGatherConfigDataMap = new Int2ObjectOpenHashMap<>();
Melledy's avatar
Melledy committed
57
58
59
60
61
	private static final Int2ObjectMap<MonsterData> monsterDataMap = new Int2ObjectOpenHashMap<>();
	private static final Int2ObjectMap<NpcData> npcDataMap = new Int2ObjectOpenHashMap<>();
	private static final Int2ObjectMap<GadgetData> gadgetDataMap = new Int2ObjectOpenHashMap<>();
	private static final Int2ObjectMap<MonsterCurveData> monsterCurveDataMap = new Int2ObjectOpenHashMap<>();
	private static final Int2ObjectMap<MonsterDescribeData> monsterDescribeDataMap = new Int2ObjectOpenHashMap<>();
akatatsu27's avatar
akatatsu27 committed
62

Melledy's avatar
Melledy committed
63
64
65
	private static final Int2ObjectMap<AvatarFlycloakData> avatarFlycloakDataMap = new Int2ObjectLinkedOpenHashMap<>();
	private static final Int2ObjectMap<AvatarCostumeData> avatarCostumeDataMap = new Int2ObjectLinkedOpenHashMap<>();
	private static final Int2ObjectMap<AvatarCostumeData> avatarCostumeDataItemIdMap = new Int2ObjectLinkedOpenHashMap<>();
akatatsu27's avatar
akatatsu27 committed
66

Melledy's avatar
Melledy committed
67
	private static final Int2ObjectMap<SceneData> sceneDataMap = new Int2ObjectLinkedOpenHashMap<>();
Yazawazi's avatar
Yazawazi committed
68
	private static final Int2ObjectMap<FetterData> fetterDataMap = new Int2ObjectOpenHashMap<>();
69
70
71
72
73
74
75
76
77
78
	private static final Int2ObjectMap<CodexQuestData> codexQuestDataMap = new Int2ObjectOpenHashMap<>();
	private static final Int2ObjectMap<CodexQuestData> codexQuestDataIdMap = new Int2ObjectOpenHashMap<>();
	private static final Int2ObjectMap<CodexAnimalData> codexAnimalDataMap = new Int2ObjectOpenHashMap<>();
	private static final Int2ObjectMap<CodexWeaponData> codexWeaponDataMap = new Int2ObjectOpenHashMap<>();
	private static final Int2ObjectMap<CodexWeaponData> codexWeaponDataIdMap = new Int2ObjectOpenHashMap<>();
	private static final Int2ObjectMap<CodexMaterialData> codexMaterialDataMap = new Int2ObjectOpenHashMap<>();
	private static final Int2ObjectMap<CodexMaterialData> codexMaterialDataIdMap = new Int2ObjectOpenHashMap<>();
	private static final Int2ObjectMap<CodexReliquaryData> codexReliquaryDataMap = new Int2ObjectOpenHashMap<>();
	private static final Int2ObjectMap<CodexReliquaryData> codexReliquaryDataIdMap = new Int2ObjectOpenHashMap<>();
	private static final ArrayList<CodexReliquaryData> codexReliquaryArrayList = new ArrayList<>();
Yazawazi's avatar
Yazawazi committed
79
	private static final Int2ObjectMap<FetterCharacterCardData> fetterCharacterCardDataMap = new Int2ObjectOpenHashMap<>();
Yazawazi's avatar
Yazawazi committed
80
	private static final Int2ObjectMap<RewardData> rewardDataMap = new Int2ObjectOpenHashMap<>();
akatatsu27's avatar
akatatsu27 committed
81

82
	private static final Int2ObjectMap<WorldAreaData> worldAreaDataMap = new Int2ObjectOpenHashMap<>();
Melledy's avatar
Melledy committed
83
	private static final Int2ObjectMap<WorldLevelData> worldLevelDataMap = new Int2ObjectOpenHashMap<>();
84
	private static final Int2ObjectMap<DailyDungeonData> dailyDungeonDataMap = new Int2ObjectOpenHashMap<>();
85
86
	private static final Int2ObjectMap<DungeonEntryData> dungeonEntryDataMap = new Int2ObjectOpenHashMap<>();

Melledy's avatar
Melledy committed
87
	private static final Int2ObjectMap<DungeonData> dungeonDataMap = new Int2ObjectOpenHashMap<>();
Melledy's avatar
Melledy committed
88
	private static final Int2ObjectMap<QuestData> questDataMap = new Int2ObjectOpenHashMap<>();
Kengxxiao's avatar
Kengxxiao committed
89
	private static final Int2ObjectMap<ShopGoodsData> shopGoodsDataMap = new Int2ObjectOpenHashMap<>();
Akka's avatar
Akka committed
90
	private static final Int2ObjectMap<CombineData> combineDataMap = new Int2ObjectOpenHashMap<>();
91
	private static final Int2ObjectMap<RewardPreviewData> rewardPreviewDataMap = new Int2ObjectOpenHashMap<>();
Melledy's avatar
Melledy committed
92
	private static final Int2ObjectMap<GatherData> gatherDataMap = new Int2ObjectOpenHashMap<>();
Akka's avatar
Akka committed
93
94
	private static final Int2ObjectMap<TowerFloorData> towerFloorDataMap = new Int2ObjectOpenHashMap<>();
	private static final Int2ObjectMap<TowerLevelData> towerLevelDataMap = new Int2ObjectOpenHashMap<>();
95
	private static final Int2ObjectMap<TowerScheduleData> towerScheduleDataMap = new Int2ObjectOpenHashMap<>();
Melledy's avatar
Melledy committed
96
	private static final Int2ObjectMap<BuffData> buffDataMap = new Int2ObjectOpenHashMap<>();
97
	private static final Int2ObjectMap<ForgeData> forgeDataMap = new Int2ObjectOpenHashMap<>();
Akka's avatar
Akka committed
98
99
	private static final Int2ObjectMap<HomeWorldLevelData> homeWorldLevelDataMap = new Int2ObjectOpenHashMap<>();
	private static final Int2ObjectMap<FurnitureMakeConfigData> furnitureMakeConfigDataMap = new Int2ObjectOpenHashMap<>();
Akka's avatar
Akka committed
100
	private static final Int2ObjectMap<InvestigationMonsterData> investigationMonsterDataMap = new Int2ObjectOpenHashMap<>();
Akka's avatar
Akka committed
101
	private static final Int2ObjectMap<CityData> cityDataMap = new Int2ObjectOpenHashMap<>();
AnimeGitB's avatar
AnimeGitB committed
102
	private static final Int2ObjectMap<WeatherData> weatherDataMap = new Int2ObjectOpenHashMap<>();
103
104
	private static final Int2ObjectMap<BattlePassMissionData> battlePassMissionDataMap = new Int2ObjectOpenHashMap<>();
	private static final Int2ObjectMap<BattlePassRewardData> battlePassRewardDataMap = new Int2ObjectOpenHashMap<>();
GanyusLeftHorn's avatar
GanyusLeftHorn committed
105
	private static final Int2ObjectMap<CookRecipeData> cookRecipeDataMap = new Int2ObjectOpenHashMap<>();
106
	private static final Int2ObjectMap<CookBonusData> cookBonusDataMap = new Int2ObjectOpenHashMap<>();
Akka's avatar
Akka committed
107

Akka's avatar
Akka committed
108
109
	@Getter private static final Int2ObjectMap<ActivityData> activityDataMap = new Int2ObjectOpenHashMap<>();
    @Getter private static final Int2ObjectMap<ActivityWatcherData> activityWatcherDataMap = new Int2ObjectOpenHashMap<>();
Akka's avatar
Akka committed
110
    @Getter private static final Int2ObjectMap<MusicGameBasicData> musicGameBasicDataMap = new Int2ObjectOpenHashMap<>();
Akka's avatar
Akka committed
111
112
    @Getter private static final Int2ObjectMap<PersonalLineData> personalLineDataMap = new Int2ObjectOpenHashMap<>();
    @Getter private static final Int2ObjectMap<ChapterData> chapterDataMap = new Int2ObjectOpenHashMap<>();
akatatsu27's avatar
akatatsu27 committed
113
114
    @Getter private static final Int2ObjectMap<TriggerExcelConfigData> triggerExcelConfigDataMap = new Int2ObjectOpenHashMap<>();
    @Getter private static final Map<String,ScriptSceneData> scriptSceneDataMap = new HashMap<>();
Akka's avatar
Akka committed
115

116
117
    @Getter private static final Int2ObjectMap<OpenStateData> openStateDataMap = new Int2ObjectOpenHashMap<>();

Yazawazi's avatar
Yazawazi committed
118
119
	// Cache
	private static Map<Integer, List<Integer>> fetters = new HashMap<>();
Kengxxiao's avatar
Kengxxiao committed
120
	private static Map<Integer, List<ShopGoodsData>> shopGoods = new HashMap<>();
121
	private static final IntList scenePointIdList = new IntArrayList();
akatatsu27's avatar
akatatsu27 committed
122

123
124


125
	@Getter private static final List<OpenStateData> openStateList = new ArrayList<>();
Melledy's avatar
Melledy committed
126
	
127

Melledy's avatar
Melledy committed
128
129
	public static Int2ObjectMap<?> getMapByResourceDef(Class<?> resourceDefinition) {
		Int2ObjectMap<?> map = null;
akatatsu27's avatar
akatatsu27 committed
130

Melledy's avatar
Melledy committed
131
		try {
132
			Field field = GameData.class.getDeclaredField(Utils.lowerCaseFirstChar(resourceDefinition.getSimpleName()) + "Map");
Melledy's avatar
Melledy committed
133
			field.setAccessible(true);
akatatsu27's avatar
akatatsu27 committed
134

Melledy's avatar
Melledy committed
135
			map = (Int2ObjectMap<?>) field.get(null);
akatatsu27's avatar
akatatsu27 committed
136

Melledy's avatar
Melledy committed
137
138
139
140
			field.setAccessible(false);
		} catch (Exception e) {
			Grasscutter.getLogger().error("Error fetching resource map for " + resourceDefinition.getSimpleName(), e);
		}
akatatsu27's avatar
akatatsu27 committed
141

Melledy's avatar
Melledy committed
142
143
144
145
146
147
		return map;
	}

	public static Int2ObjectMap<String> getAbilityHashes() {
		return abilityHashes;
	}
akatatsu27's avatar
akatatsu27 committed
148

Melledy's avatar
Melledy committed
149
150
151
152
	public static Map<String, AbilityEmbryoEntry> getAbilityEmbryoInfo() {
		return abilityEmbryos;
	}

Melledy's avatar
Melledy committed
153
154
155
156
	public static Map<String, AbilityModifierEntry> getAbilityModifiers() {
		return abilityModifiers;
	}

Melledy's avatar
Melledy committed
157
158
159
160
	public static Map<String, OpenConfigEntry> getOpenConfigEntries() {
		return openConfigEntries;
	}

Yazawazi's avatar
Yazawazi committed
161
162
163
	public static Map<String, ScenePointEntry> getScenePointEntries() {
		return scenePointEntries;
	}
akatatsu27's avatar
akatatsu27 committed
164

Melledy's avatar
Melledy committed
165
166
167
168
	// TODO optimize
	public static ScenePointEntry getScenePointEntryById(int sceneId, int pointId) {
		return getScenePointEntries().get(sceneId + "_" + pointId);
	}
Yazawazi's avatar
Yazawazi committed
169

Melledy's avatar
Melledy committed
170
171
	public static Int2ObjectMap<MainQuestData> getMainQuestDataMap() {
		return mainQuestData;
Melledy's avatar
Melledy committed
172
	}
173

hartie95's avatar
hartie95 committed
174
175
176
177
	public static Int2ObjectMap<QuestEncryptionKey> getMainQuestEncryptionMap() {
		return questsKeys;
	}

178
179
180
	public static Int2ObjectMap<HomeworldDefaultSaveData> getHomeworldDefaultSaveData() {
		return homeworldDefaultSaveData;
	}
akatatsu27's avatar
akatatsu27 committed
181

Akka's avatar
Akka committed
182
183
184
	public static Int2ObjectMap<SceneNpcBornData> getSceneNpcBornData() {
		return npcBornData;
	}
akatatsu27's avatar
akatatsu27 committed
185

Melledy's avatar
Melledy committed
186
187
188
	public static Int2ObjectMap<AvatarData> getAvatarDataMap() {
		return avatarDataMap;
	}
akatatsu27's avatar
akatatsu27 committed
189

Melledy's avatar
Melledy committed
190
191
192
193
194
195
196
	public static Int2ObjectMap<ItemData> getItemDataMap() {
		return itemDataMap;
	}

	public static Int2ObjectMap<AvatarSkillDepotData> getAvatarSkillDepotDataMap() {
		return avatarSkillDepotDataMap;
	}
akatatsu27's avatar
akatatsu27 committed
197

Melledy's avatar
Melledy committed
198
199
200
201
202
203
204
205
	public static Int2ObjectMap<AvatarSkillData> getAvatarSkillDataMap() {
		return avatarSkillDataMap;
	}

	public static Int2ObjectMap<PlayerLevelData> getPlayerLevelDataMap() {
		return playerLevelDataMap;
	}

Yazawazi's avatar
Yazawazi committed
206
207
208
209
	public static Int2ObjectMap<AvatarFetterLevelData> getAvatarFetterLevelDataMap() {
		return avatarFetterLevelDataMap;
	}

Yazawazi's avatar
Yazawazi committed
210
211
212
213
	public static Int2ObjectMap<FetterCharacterCardData> getFetterCharacterCardDataMap() {
		return fetterCharacterCardDataMap;
	}

Melledy's avatar
Melledy committed
214
215
216
217
218
219
220
	public static Int2ObjectMap<AvatarLevelData> getAvatarLevelDataMap() {
		return avatarLevelDataMap;
	}

	public static Int2ObjectMap<WeaponLevelData> getWeaponLevelDataMap() {
		return weaponLevelDataMap;
	}
akatatsu27's avatar
akatatsu27 committed
221

Melledy's avatar
Melledy committed
222
223
224
	public static Int2ObjectMap<ReliquaryAffixData> getReliquaryAffixDataMap() {
		return reliquaryAffixDataMap;
	}
akatatsu27's avatar
akatatsu27 committed
225

Melledy's avatar
Melledy committed
226
227
228
229
230
231
232
233
234
235
236
	public static Int2ObjectMap<ReliquaryMainPropData> getReliquaryMainPropDataMap() {
		return reliquaryMainPropDataMap;
	}

	public static Int2ObjectMap<WeaponPromoteData> getWeaponPromoteDataMap() {
		return weaponPromoteDataMap;
	}

	public static Int2ObjectMap<WeaponCurveData> getWeaponCurveDataMap() {
		return weaponCurveDataMap;
	}
akatatsu27's avatar
akatatsu27 committed
237

Melledy's avatar
Melledy committed
238
239
240
241
242
243
244
245
	public static Int2ObjectMap<AvatarCurveData> getAvatarCurveDataMap() {
		return avatarCurveDataMap;
	}

	public static int getRelicExpRequired(int rankLevel, int level) {
		ReliquaryLevelData levelData = reliquaryLevelDataMap.get((rankLevel << 8) + level);
		return levelData != null ? levelData.getExp() : 0;
	}
akatatsu27's avatar
akatatsu27 committed
246

Melledy's avatar
Melledy committed
247
248
249
	public static ReliquaryLevelData getRelicLevelData(int rankLevel, int level) {
		return reliquaryLevelDataMap.get((rankLevel << 8) + level);
	}
akatatsu27's avatar
akatatsu27 committed
250

Melledy's avatar
Melledy committed
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
	public static WeaponPromoteData getWeaponPromoteData(int promoteId, int promoteLevel) {
		return weaponPromoteDataMap.get((promoteId << 8) + promoteLevel);
	}

	public static int getWeaponExpRequired(int rankLevel, int level) {
		WeaponLevelData levelData = weaponLevelDataMap.get(level);
		if (levelData == null) {
			return 0;
		}
		try {
			return levelData.getRequiredExps()[rankLevel - 1];
		} catch (Exception e) {
			return 0;
		}
	}
akatatsu27's avatar
akatatsu27 committed
266

Melledy's avatar
Melledy committed
267
268
269
270
271
272
273
274
	public static AvatarPromoteData getAvatarPromoteData(int promoteId, int promoteLevel) {
		return avatarPromoteDataMap.get((promoteId << 8) + promoteLevel);
	}

	public static int getAvatarLevelExpRequired(int level) {
		AvatarLevelData levelData = avatarLevelDataMap.get(level);
		return levelData != null ? levelData.getExp() : 0;
	}
Yazawazi's avatar
Yazawazi committed
275
276
277
278
279

	public static int getAvatarFetterLevelExpRequired(int level) {
		AvatarFetterLevelData levelData = avatarFetterLevelDataMap.get(level);
		return levelData != null ? levelData.getExp() : 0;
	}
akatatsu27's avatar
akatatsu27 committed
280

Melledy's avatar
Melledy committed
281
282
283
284
285
286
287
	public static Int2ObjectMap<ProudSkillData> getProudSkillDataMap() {
		return proudSkillDataMap;
	}

	public static Int2ObjectMap<MonsterData> getMonsterDataMap() {
		return monsterDataMap;
	}
288
289
290
	public static Int2ObjectMap<EnvAnimalGatherConfigData> getEnvAnimalGatherConfigDataMap() {
		return envAnimalGatherConfigDataMap;
	}
Melledy's avatar
Melledy committed
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326

	public static Int2ObjectMap<NpcData> getNpcDataMap() {
		return npcDataMap;
	}

	public static Int2ObjectMap<GadgetData> getGadgetDataMap() {
		return gadgetDataMap;
	}

	public static Int2ObjectMap<ReliquarySetData> getReliquarySetDataMap() {
		return reliquarySetDataMap;
	}

	public static Int2ObjectMap<EquipAffixData> getEquipAffixDataMap() {
		return equipAffixDataMap;
	}

	public static Int2ObjectMap<MonsterCurveData> getMonsterCurveDataMap() {
		return monsterCurveDataMap;
	}

	public static Int2ObjectMap<MonsterDescribeData> getMonsterDescribeDataMap() {
		return monsterDescribeDataMap;
	}

	public static Int2ObjectMap<AvatarTalentData> getAvatarTalentDataMap() {
		return avatarTalentDataMap;
	}

	public static Int2ObjectMap<AvatarFlycloakData> getAvatarFlycloakDataMap() {
		return avatarFlycloakDataMap;
	}

	public static Int2ObjectMap<AvatarCostumeData> getAvatarCostumeDataMap() {
		return avatarCostumeDataMap;
	}
akatatsu27's avatar
akatatsu27 committed
327

Melledy's avatar
Melledy committed
328
329
330
	public static Int2ObjectMap<AvatarCostumeData> getAvatarCostumeDataItemIdMap() {
		return avatarCostumeDataItemIdMap;
	}
Melledy's avatar
Melledy committed
331
332
333
334

	public static Int2ObjectMap<SceneData> getSceneDataMap() {
		return sceneDataMap;
	}
Yazawazi's avatar
Yazawazi committed
335

Yazawazi's avatar
Yazawazi committed
336
337
338
339
	public static Int2ObjectMap<RewardData> getRewardDataMap() {
		return rewardDataMap;
	}

Yazawazi's avatar
Yazawazi committed
340
	public static Map<Integer, List<Integer>> getFetterDataEntries() {
Yazawazi's avatar
Yazawazi committed
341
342
343
344
345
346
347
348
349
		if (fetters.isEmpty()) {
			fetterDataMap.forEach((k, v) -> {
				if (!fetters.containsKey(v.getAvatarId())) {
					fetters.put(v.getAvatarId(), new ArrayList<>());
				}
				fetters.get(v.getAvatarId()).add(k);
			});
		}

Yazawazi's avatar
Yazawazi committed
350
351
		return fetters;
	}
Melledy's avatar
Melledy committed
352

353
	public static Int2ObjectMap<CodexQuestData> getCodexQuestDataIdMap(){return codexQuestDataIdMap;}
354

355
356
357
358
359
360
361
362
363
	public static Int2ObjectMap<CodexAnimalData> getCodexAnimalDataMap(){return codexAnimalDataMap;}

	public static Int2ObjectMap<CodexWeaponData> getCodexWeaponDataIdMap(){return codexWeaponDataIdMap;}

	public static Int2ObjectMap<CodexMaterialData> getCodexMaterialDataIdMap(){return codexMaterialDataIdMap;}

	public static Int2ObjectMap<CodexReliquaryData> getcodexReliquaryIdMap(){return codexReliquaryDataIdMap;}

	public static ArrayList<CodexReliquaryData> getcodexReliquaryArrayList(){return codexReliquaryArrayList;}
364

365
366
367
	public static Int2ObjectMap<WorldAreaData> getWorldAreaDataMap() {
		return worldAreaDataMap;
	}
akatatsu27's avatar
akatatsu27 committed
368

Melledy's avatar
Melledy committed
369
370
371
	public static Int2ObjectMap<WorldLevelData> getWorldLevelDataMap() {
		return worldLevelDataMap;
	}
Melledy's avatar
Melledy committed
372
373
374
375

	public static Int2ObjectMap<DungeonData> getDungeonDataMap() {
		return dungeonDataMap;
	}
akatatsu27's avatar
akatatsu27 committed
376

377
378
379
380
	public static Int2ObjectMap<DailyDungeonData> getDailyDungeonDataMap() {
		return dailyDungeonDataMap;
	}

381
382
383
384
	public static Int2ObjectMap<DungeonEntryData> getDungeonEntryDatatMap(){
		return dungeonEntryDataMap;
	}

Kengxxiao's avatar
Kengxxiao committed
385
386
387
388
389
390
391
392
393
394
395
	public static Map<Integer, List<ShopGoodsData>> getShopGoodsDataEntries() {
		if (shopGoods.isEmpty()) {
			shopGoodsDataMap.forEach((k, v) -> {
				if (!shopGoods.containsKey(v.getShopType()))
					shopGoods.put(v.getShopType(), new ArrayList<>());
				shopGoods.get(v.getShopType()).add(v);
			});
		}

		return shopGoods;
	}
396

397
398
399
400
	public static Int2ObjectMap<RewardPreviewData> getRewardPreviewDataMap() {
		return rewardPreviewDataMap;
	}

401
402
403
	public static IntList getScenePointIdList() {
		return scenePointIdList;
	}
Akka's avatar
Akka committed
404
405
406
407

	public static Int2ObjectMap<CombineData> getCombineDataMap() {
		return combineDataMap;
	}
Akka's avatar
Akka committed
408
409
410
411

	public static Int2ObjectMap<TowerFloorData> getTowerFloorDataMap(){
		return towerFloorDataMap;
	}
akatatsu27's avatar
akatatsu27 committed
412

Akka's avatar
Akka committed
413
414
415
	public static Int2ObjectMap<TowerLevelData> getTowerLevelDataMap(){
		return towerLevelDataMap;
	}
akatatsu27's avatar
akatatsu27 committed
416

417
418
419
	public static Int2ObjectMap<TowerScheduleData> getTowerScheduleDataMap(){
		return towerScheduleDataMap;
	}
Melledy's avatar
Melledy committed
420
421
422
423

	public static Int2ObjectMap<QuestData> getQuestDataMap() {
		return questDataMap;
	}
424
425
426
427

	public static Int2ObjectMap<ForgeData> getForgeDataMap() {
		return forgeDataMap;
	}
akatatsu27's avatar
akatatsu27 committed
428

Akka's avatar
Akka committed
429
430
431
	public static Int2ObjectMap<HomeWorldLevelData> getHomeWorldLevelDataMap() {
		return homeWorldLevelDataMap;
	}
akatatsu27's avatar
akatatsu27 committed
432

Akka's avatar
Akka committed
433
434
435
	public static Int2ObjectMap<FurnitureMakeConfigData> getFurnitureMakeConfigDataMap() {
		return furnitureMakeConfigDataMap;
	}
akatatsu27's avatar
akatatsu27 committed
436

Melledy's avatar
Melledy committed
437
438
439
	public static Int2ObjectMap<GatherData> getGatherDataMap() {
		return gatherDataMap;
	}
akatatsu27's avatar
akatatsu27 committed
440

Akka's avatar
Akka committed
441
442
443
	public static Int2ObjectMap<InvestigationMonsterData> getInvestigationMonsterDataMap() {
		return investigationMonsterDataMap;
	}
AnimeGitB's avatar
AnimeGitB committed
444

Akka's avatar
Akka committed
445
446
447
448
	public static Int2ObjectMap<CityData> getCityDataMap() {
		return cityDataMap;
	}

AnimeGitB's avatar
AnimeGitB committed
449
450
451
452
	public static Int2ObjectMap<WeatherData> getWeatherDataMap() {
		return weatherDataMap;
	}

453
454
	public static Int2ObjectMap<BattlePassMissionData> getBattlePassMissionDataMap() {
		return battlePassMissionDataMap;
455
456
	}

457
458
	public static Int2ObjectMap<BattlePassRewardData> getBattlePassRewardDataMap() {
		return battlePassRewardDataMap;
459
	}
GanyusLeftHorn's avatar
GanyusLeftHorn committed
460
461
462
463

	public static Int2ObjectMap<CookRecipeData> getCookRecipeDataMap() {
		return cookRecipeDataMap;
	}
464
465
466
467

	public static Int2ObjectMap<CookBonusData> getCookBonusDataMap() {
		return cookBonusDataMap;
	}
Melledy's avatar
Melledy committed
468
469
470
471

    public static Int2ObjectMap<BuffData> getBuffDataMap() {
        return buffDataMap;
    }
Melledy's avatar
Melledy committed
472
}