CodexQuest.java 973 Bytes
Newer Older
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
package emu.grasscutter.data.def;

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

@ResourceType(name = {"QuestCodexExcelConfigData.json"}, loadPriority = ResourceType.LoadPriority.HIGH)
public class CodexQuest extends GameResource {
    private int Id;
    private int ParentQuestId;
    private int ChapterId;
    private int SortOrder;
    private boolean IsDisuse;

    public int getParentQuestId() {
        return ParentQuestId;
    }

    public int getId() {
        return Id;
    }

    public int getChapterId() {
        return ChapterId;
    }

    public int getSortOrder() {
        return SortOrder;
    }

    public boolean getIsDisuse() {
        return IsDisuse;
    }

    @Override
    public void onLoad() {
        if(!this.getIsDisuse()) {
            GameData.getCodexQuestIdMap().put(this.getParentQuestId(), this);
        }
    }
}