TowerScheduleData.java 1.69 KB
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
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
package emu.grasscutter.data.def;

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

import java.util.List;

@ResourceType(name = "TowerScheduleExcelConfigData.json")
public class TowerScheduleData extends GameResource {
    private int ScheduleId;
    private List<Integer> EntranceFloorId;
    private List<ScheduleDetail> Schedules;
    private int MonthlyLevelConfigId;
    @Override
    public int getId() {
        return ScheduleId;
    }

    @Override
    public void onLoad() {
        super.onLoad();
        this.Schedules = this.Schedules.stream()
                .filter(item -> item.getFloorList().size() > 0)
                .toList();
    }

    public int getScheduleId() {
        return ScheduleId;
    }

    public void setScheduleId(int scheduleId) {
        ScheduleId = scheduleId;
    }

    public List<Integer> getEntranceFloorId() {
        return EntranceFloorId;
    }

    public void setEntranceFloorId(List<Integer> entranceFloorId) {
        EntranceFloorId = entranceFloorId;
    }

    public List<ScheduleDetail> getSchedules() {
        return Schedules;
    }

    public void setSchedules(List<ScheduleDetail> schedules) {
        Schedules = schedules;
    }

    public int getMonthlyLevelConfigId() {
        return MonthlyLevelConfigId;
    }

    public void setMonthlyLevelConfigId(int monthlyLevelConfigId) {
        MonthlyLevelConfigId = monthlyLevelConfigId;
    }

    public static class ScheduleDetail{
        private List<Integer> FloorList;

        public List<Integer> getFloorList() {
            return FloorList;
        }

        public void setFloorList(List<Integer> floorList) {
            FloorList = floorList;
        }
    }
}