2020-04-27 15:15:58 +08:00
|
|
|
package config;
|
|
|
|
|
|
|
|
import manager.STableManager;
|
|
|
|
import manager.Table;
|
|
|
|
|
|
|
|
import java.util.HashMap;
|
|
|
|
import java.util.Map;
|
|
|
|
|
|
|
|
@Table(name ="JewelRankupConfig")
|
|
|
|
public class SJewelRankupConfig implements BaseConfig {
|
|
|
|
|
|
|
|
private int id;
|
|
|
|
|
|
|
|
private int type;
|
|
|
|
|
|
|
|
private int level;
|
|
|
|
|
|
|
|
private int poolID;
|
|
|
|
|
|
|
|
private int[][] property;
|
|
|
|
|
|
|
|
private int[][] jewelExpend;
|
|
|
|
|
|
|
|
private int[][] upExpend;
|
|
|
|
|
2020-04-28 21:22:50 +08:00
|
|
|
public static Map<Integer,Map<Integer,Map<Integer,SJewelRankupConfig>>> rankupMap = new HashMap<>();
|
2020-04-27 15:15:58 +08:00
|
|
|
|
|
|
|
@Override
|
|
|
|
public void init() throws Exception {
|
|
|
|
Map<Integer, SJewelRankupConfig> configMap = STableManager.getConfig(SJewelRankupConfig.class);
|
|
|
|
for(SJewelRankupConfig config:configMap.values()){
|
|
|
|
rankupMap.computeIfAbsent(config.getPoolID(), k -> new HashMap<>());
|
|
|
|
rankupMap.get(config.getPoolID()).computeIfAbsent(config.getType(),k->new HashMap<>());
|
|
|
|
rankupMap.get(config.getPoolID()).get(config.getType()).put(config.getLevel(),config);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public int getId() {
|
|
|
|
return id;
|
|
|
|
}
|
|
|
|
|
|
|
|
public int getType() {
|
|
|
|
return type;
|
|
|
|
}
|
|
|
|
|
|
|
|
public int getLevel() {
|
|
|
|
return level;
|
|
|
|
}
|
|
|
|
|
|
|
|
public int getPoolID() {
|
|
|
|
return poolID;
|
|
|
|
}
|
|
|
|
|
|
|
|
public int[][] getProperty() {
|
|
|
|
return property;
|
|
|
|
}
|
|
|
|
|
|
|
|
public int[][] getJewelExpend() {
|
|
|
|
return jewelExpend;
|
|
|
|
}
|
|
|
|
|
|
|
|
public int[][] getUpExpend() {
|
|
|
|
return upExpend;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|