103 lines
2.1 KiB
Java
103 lines
2.1 KiB
Java
package config;
|
|
|
|
import manager.STableManager;
|
|
import manager.Table;
|
|
|
|
import java.util.HashMap;
|
|
import java.util.HashSet;
|
|
import java.util.Map;
|
|
|
|
@Table(name ="XiuXian")
|
|
public class SXiuXian implements BaseConfig {
|
|
|
|
private int id;
|
|
|
|
private int realmId;
|
|
|
|
private int realmLevel;
|
|
|
|
private int[][] levelUpCost;
|
|
|
|
private int[][] totalPros;
|
|
|
|
private String nameFontColor;
|
|
|
|
private int needStarNum;
|
|
|
|
private int[] teamSkill;
|
|
|
|
private int[] playerSkill;
|
|
|
|
private int[][] proRank;
|
|
|
|
private int[][] proLevel;
|
|
|
|
private int playerSkillLvMax;
|
|
|
|
// 目前只为主角修行等级属性使用
|
|
public static Map<Integer, Map<Integer, SXiuXian>> sXiuXianMap;
|
|
|
|
@Override
|
|
public void init() throws Exception {
|
|
sXiuXianMap = new HashMap<>();
|
|
Map<Integer, SXiuXian> config = STableManager.getConfig(SXiuXian.class);
|
|
for (Map.Entry<Integer, SXiuXian> integerSXiuXianEntry : config.entrySet()) {
|
|
SXiuXian value = integerSXiuXianEntry.getValue();
|
|
if (!sXiuXianMap.containsKey(value.getRealmId())) {
|
|
sXiuXianMap.put(value.getRealmId(), new HashMap<>(1));
|
|
}
|
|
if (value.getRealmLevel() == 0) {
|
|
sXiuXianMap.get(value.getRealmId()).put(value.getRealmLevel(), value);
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
public int getId() {
|
|
return id;
|
|
}
|
|
|
|
public int getRealmId() {
|
|
return realmId;
|
|
}
|
|
|
|
public int getRealmLevel() {
|
|
return realmLevel;
|
|
}
|
|
|
|
public int[][] getLevelUpCost() {
|
|
return levelUpCost;
|
|
}
|
|
|
|
public int[][] getTotalPros() {
|
|
return totalPros;
|
|
}
|
|
|
|
public int getNeedStarNum() {
|
|
return needStarNum;
|
|
}
|
|
|
|
public int[] getTeamSkill() {
|
|
return teamSkill;
|
|
}
|
|
|
|
public String getNameFontColor() {
|
|
return nameFontColor;
|
|
}
|
|
|
|
public int[] getPlayerSkill() {
|
|
return playerSkill;
|
|
}
|
|
|
|
public int[][] getProRank() {
|
|
return proRank;
|
|
}
|
|
|
|
public int[][] getProLevel() {
|
|
return proLevel;
|
|
}
|
|
|
|
public int getPlayerSkillLvMax() {
|
|
return playerSkillLvMax;
|
|
}
|
|
} |