48 lines
905 B
Java
48 lines
905 B
Java
|
package config;
|
||
|
|
||
|
|
||
|
|
||
|
import manager.STableManager;
|
||
|
import manager.Table;
|
||
|
|
||
|
import java.util.Map;
|
||
|
|
||
|
@Table(name ="DifferDemonsConfig")
|
||
|
public class SDifferDemonsConfig implements BaseConfig {
|
||
|
|
||
|
private int id;
|
||
|
|
||
|
private int[][] openRules;
|
||
|
|
||
|
private int[] comonpentList;
|
||
|
|
||
|
private String name;
|
||
|
|
||
|
public static Map<Integer,SDifferDemonsConfig> sDifferDemonsConfigMap;
|
||
|
|
||
|
|
||
|
@Override
|
||
|
public void init() throws Exception {
|
||
|
sDifferDemonsConfigMap= STableManager.getConfig(SDifferDemonsConfig.class);
|
||
|
}
|
||
|
|
||
|
public static SDifferDemonsConfig getsDifferDemonsConfigByPokenID(int pokenmonId) {
|
||
|
return sDifferDemonsConfigMap.get(pokenmonId);
|
||
|
}
|
||
|
|
||
|
public int getId() {
|
||
|
return id;
|
||
|
}
|
||
|
|
||
|
public int[][] getOpenRules() {
|
||
|
return openRules;
|
||
|
}
|
||
|
|
||
|
public int[] getComonpentList() {
|
||
|
return comonpentList;
|
||
|
}
|
||
|
|
||
|
public String getName() {
|
||
|
return name;
|
||
|
}
|
||
|
}
|