All Downloads are FREE. Search and download functionalities are using the official Maven repository.

emu.grasscutter.data.excels.avatar.AvatarTalentData Maven / Gradle / Ivy

There is a newer version: 1.7.3
Show newest version
package emu.grasscutter.data.excels.avatar;

import emu.grasscutter.data.*;
import emu.grasscutter.data.ResourceType.LoadPriority;
import emu.grasscutter.data.common.FightPropData;
import java.util.ArrayList;

@ResourceType(name = "AvatarTalentExcelConfigData.json", loadPriority = LoadPriority.HIGHEST)
public class AvatarTalentData extends GameResource {
    private int talentId;
    private int prevTalent;
    private long nameTextMapHash;
    private String icon;
    private int mainCostItemId;
    private int mainCostItemCount;
    private String openConfig;
    private FightPropData[] addProps;
    private float[] paramList;

    @Override
    public int getId() {
        return this.talentId;
    }

    public int PrevTalent() {
        return prevTalent;
    }

    public long getNameTextMapHash() {
        return nameTextMapHash;
    }

    public String getIcon() {
        return icon;
    }

    public int getMainCostItemId() {
        return mainCostItemId;
    }

    public int getMainCostItemCount() {
        return mainCostItemCount;
    }

    public String getOpenConfig() {
        return openConfig;
    }

    public FightPropData[] getAddProps() {
        return addProps;
    }

    public float[] getParamList() {
        return paramList;
    }

    @Override
    public void onLoad() {
        ArrayList parsed = new ArrayList(getAddProps().length);
        for (FightPropData prop : getAddProps()) {
            if (prop.getPropType() != null || prop.getValue() == 0f) {
                prop.onLoad();
                parsed.add(prop);
            }
        }
        this.addProps = parsed.toArray(new FightPropData[parsed.size()]);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy