CodexWeaponData.java 647 Bytes
Newer Older
Melledy's avatar
Melledy committed
1
package emu.grasscutter.data.excels;
2
3
4
5
6
7
8
9

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

@ResourceType(name = {"WeaponCodexExcelConfigData.json"})
public class CodexWeaponData extends GameResource {
    private int Id;
Melledy's avatar
Melledy committed
10
11
    private int weaponId;
    private int sortOrder;
12
13

    public int getSortOrder() {
Melledy's avatar
Melledy committed
14
        return sortOrder;
15
16
17
    }

    public int getWeaponId() {
Melledy's avatar
Melledy committed
18
        return weaponId;
19
20
21
22
23
24
25
26
27
28
29
    }

    public int getId() {
        return Id;
    }

    @Override
    public void onLoad() {
        GameData.getCodexWeaponDataIdMap().put(this.getWeaponId(), this);
    }
}