DungeonData.java 892 Bytes
Newer Older
Melledy's avatar
Melledy committed
1
2
3
4
5
6
7
8
9
10
11
12
package emu.grasscutter.data.def;

import emu.grasscutter.data.GameData;
import emu.grasscutter.data.GameResource;
import emu.grasscutter.data.ResourceType;

import emu.grasscutter.game.props.SceneType;

@ResourceType(name = "DungeonExcelConfigData.json")
public class DungeonData extends GameResource {
	private int Id;
	private int SceneId;
Melledy's avatar
Melledy committed
13
	private int ShowLevel;
14
	private int PassRewardPreviewID;
Melledy's avatar
Melledy committed
15
	private String InvolveType; // TODO enum
16
17
	
	private RewardPreviewData previewData;
Melledy's avatar
Melledy committed
18
19
20
21
22
23
24
25
26
27
	    
	@Override
	public int getId() {
		return this.Id;
	}

	public int getSceneId() {
		return SceneId;
	}
	
Melledy's avatar
Melledy committed
28
29
30
31
	public int getShowLevel() {
		return ShowLevel;
	}

32
33
34
35
	public RewardPreviewData getRewardPreview() {
		return previewData;
	}

Melledy's avatar
Melledy committed
36
37
	@Override
	public void onLoad() {
38
39
40
		if (this.PassRewardPreviewID > 0) {
			this.previewData = GameData.getRewardPreviewDataMap().get(this.PassRewardPreviewID);
		}
Melledy's avatar
Melledy committed
41
42
	}
}