175 lines
2.9 KiB
Java
175 lines
2.9 KiB
Java
package config;
|
|
|
|
import manager.STableManager;
|
|
import manager.Table;
|
|
|
|
import java.util.Arrays;
|
|
import java.util.HashSet;
|
|
import java.util.Map;
|
|
import java.util.Set;
|
|
|
|
@Table(name ="EquipConfig")
|
|
public class SEquipConfig implements BaseConfig {
|
|
|
|
private int id;
|
|
|
|
private int suiteID;
|
|
|
|
private int professionLimit;
|
|
|
|
private int position;
|
|
|
|
private int[] propertyMin;
|
|
|
|
private int[][] property;
|
|
|
|
private int[] propertyMax;
|
|
|
|
private int[] pool;
|
|
|
|
private int secondNumMin;
|
|
|
|
private int secondNumMax;
|
|
|
|
private int[] skillPoolId;
|
|
|
|
private int quality;
|
|
|
|
private int ifClear;
|
|
|
|
private int ifShow;
|
|
|
|
private int initialLevel;
|
|
|
|
private int score;
|
|
|
|
|
|
private int[] range;
|
|
|
|
private Set<Integer> rangeHeroTids;
|
|
|
|
private int star;
|
|
|
|
private int[][] resource;
|
|
private int[][] formula;
|
|
|
|
private int limit;
|
|
|
|
private int passiveSkill;
|
|
|
|
|
|
|
|
@Override
|
|
public void init() throws Exception {
|
|
Map<Integer, SEquipConfig> config = STableManager.getConfig(SEquipConfig.class);
|
|
config.forEach((k,v)->{
|
|
if(v.getRange()!=null && v.getRange().length>0 && v.getRange()[0]!=0){
|
|
Set<Integer> rangeTemp = new HashSet<>();
|
|
Arrays.stream(v.getRange()).forEach(e->rangeTemp.add(e));
|
|
v.setRangeHeroTids(rangeTemp);
|
|
}
|
|
|
|
|
|
});
|
|
}
|
|
|
|
|
|
public int getId() {
|
|
return id;
|
|
}
|
|
|
|
public int getProfessionLimit() {
|
|
return professionLimit;
|
|
}
|
|
|
|
public int getPosition() {
|
|
return position;
|
|
}
|
|
|
|
public int[] getPropertyMin() {
|
|
return propertyMin;
|
|
}
|
|
|
|
public int[] getPropertyMax() {
|
|
return propertyMax;
|
|
}
|
|
|
|
public int[] getPool() {
|
|
return pool;
|
|
}
|
|
|
|
public int getSecondNumMin() {
|
|
return secondNumMin;
|
|
}
|
|
|
|
public int getSecondNumMax() {
|
|
return secondNumMax;
|
|
}
|
|
|
|
public int[] getSkillPoolId() {
|
|
return skillPoolId;
|
|
}
|
|
|
|
public int getIfClear() {
|
|
return ifClear;
|
|
}
|
|
|
|
public int getQuality() {
|
|
return quality;
|
|
}
|
|
|
|
public int getInitialLevel() {
|
|
return initialLevel;
|
|
}
|
|
|
|
public int getScore() {
|
|
return score;
|
|
}
|
|
|
|
public int getIfShow(){return ifShow; }
|
|
|
|
|
|
public Set<Integer> getRangeHeroTids() {
|
|
return rangeHeroTids;
|
|
}
|
|
|
|
public void setRangeHeroTids(Set<Integer> rangeHeroTids) {
|
|
this.rangeHeroTids = rangeHeroTids;
|
|
}
|
|
|
|
|
|
public int[] getRange() {
|
|
return range;
|
|
}
|
|
public int getStar() {
|
|
return star;
|
|
}
|
|
|
|
public void setStar(int star) {
|
|
this.star = star;
|
|
}
|
|
|
|
public int[][] getResource() {
|
|
return resource;
|
|
}
|
|
|
|
public int[][] getFormula() {
|
|
return formula;
|
|
}
|
|
|
|
public int getLimit() {
|
|
return limit;
|
|
}
|
|
|
|
public int getPassiveSkill() {
|
|
return passiveSkill;
|
|
}
|
|
|
|
public int[][] getProperty() {
|
|
return property;
|
|
}
|
|
|
|
public int getSuiteID() {
|
|
return suiteID;
|
|
}
|
|
} |