back_recharge
parent
753e693fed
commit
03e261573b
|
|
@ -0,0 +1,69 @@
|
||||||
|
package config;
|
||||||
|
|
||||||
|
import manager.STableManager;
|
||||||
|
import manager.Table;
|
||||||
|
|
||||||
|
import java.util.HashMap;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
@Table(name ="ChangingCardStar")
|
||||||
|
public class SChangingCardStar implements BaseConfig {
|
||||||
|
|
||||||
|
private int id;
|
||||||
|
|
||||||
|
private int level;
|
||||||
|
|
||||||
|
private int poolId;
|
||||||
|
|
||||||
|
private int[][] propList;
|
||||||
|
|
||||||
|
private int[][] exp;
|
||||||
|
|
||||||
|
private int[] starUpExp;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* map《poolid,map《star,object》》
|
||||||
|
*/
|
||||||
|
private static Map<Integer, Map<Integer, SChangingCardStar>> poolMap = new HashMap<>();
|
||||||
|
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void init() throws Exception {
|
||||||
|
Map<Integer, SChangingCardStar> config = STableManager.getConfig(SChangingCardStar.class);
|
||||||
|
for (SChangingCardStar value : config.values()) {
|
||||||
|
Map<Integer, SChangingCardStar> starMap = poolMap.getOrDefault(value.getPoolId(), new HashMap<>());
|
||||||
|
starMap.put(value.getLevel(),value);
|
||||||
|
poolMap.put(value.getPoolId(),starMap);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public static Map<Integer, Map<Integer, SChangingCardStar>> getPoolMap() {
|
||||||
|
return poolMap;
|
||||||
|
}
|
||||||
|
|
||||||
|
public int getId() {
|
||||||
|
return id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public int getLevel() {
|
||||||
|
return level;
|
||||||
|
}
|
||||||
|
|
||||||
|
public int getPoolId() {
|
||||||
|
return poolId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public int[][] getPropList() {
|
||||||
|
return propList;
|
||||||
|
}
|
||||||
|
|
||||||
|
public int[][] getExp() {
|
||||||
|
return exp;
|
||||||
|
}
|
||||||
|
|
||||||
|
public int[] getStarUpExp() {
|
||||||
|
return starUpExp;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue