MainQuestData.java 1.31 KB
Newer Older
Melledy's avatar
Melledy committed
1
package emu.grasscutter.data.binout;
Melledy's avatar
Melledy committed
2

akatatsu27's avatar
akatatsu27 committed
3
import dev.morphia.annotations.Entity;
Melledy's avatar
Melledy committed
4
import emu.grasscutter.game.quest.enums.QuestType;
Akka's avatar
Akka committed
5
import lombok.Data;
akatatsu27's avatar
akatatsu27 committed
6
7
import java.util.List;
import java.util.Objects;
Melledy's avatar
Melledy committed
8
9
10

public class MainQuestData {
	private int id;
akatatsu27's avatar
akatatsu27 committed
11
    private int ICLLDPJFIMA;
Melledy's avatar
Melledy committed
12
13
	private int series;
	private QuestType type;
akatatsu27's avatar
akatatsu27 committed
14

Melledy's avatar
Melledy committed
15
16
17
	private long titleTextMapHash;
	private int[] suggestTrackMainQuestList;
	private int[] rewardIdList;
akatatsu27's avatar
akatatsu27 committed
18

Melledy's avatar
Melledy committed
19
	private SubQuestData[] subQuests;
akatatsu27's avatar
akatatsu27 committed
20
21
22
23
24
25
26
    private List<TalkData> talks;
    private long[] preloadLuaList;

    public int getId() {
        return id;
    }

Melledy's avatar
Melledy committed
27
28
29
	public int getSeries() {
		return series;
	}
akatatsu27's avatar
akatatsu27 committed
30

Melledy's avatar
Melledy committed
31
32
33
	public QuestType getType() {
		return type;
	}
akatatsu27's avatar
akatatsu27 committed
34

Melledy's avatar
Melledy committed
35
36
37
	public long getTitleTextMapHash() {
		return titleTextMapHash;
	}
akatatsu27's avatar
akatatsu27 committed
38

Melledy's avatar
Melledy committed
39
40
41
42
43
44
45
	public int[] getSuggestTrackMainQuestList() {
		return suggestTrackMainQuestList;
	}

	public int[] getRewardIdList() {
		return rewardIdList;
	}
akatatsu27's avatar
akatatsu27 committed
46

Melledy's avatar
Melledy committed
47
48
49
	public SubQuestData[] getSubQuests() {
		return subQuests;
	}
akatatsu27's avatar
akatatsu27 committed
50
51
52
53
54
55
56
    public List<TalkData> getTalks() {
        return talks;
    }

    public void onLoad() {
        this.talks = talks.stream().filter(Objects::nonNull).toList();
    }
Akka's avatar
Akka committed
57
58

    @Data
Melledy's avatar
Melledy committed
59
60
	public static class SubQuestData {
		private int subId;
Akka's avatar
Akka committed
61
        private int order;
Melledy's avatar
Melledy committed
62
	}
akatatsu27's avatar
akatatsu27 committed
63
64
65
66
67
68
69


    @Data @Entity
    public static class TalkData {
        private int id;
        private String heroTalk;
    }
Melledy's avatar
Melledy committed
70
}