60 lines
983 B
Java
60 lines
983 B
Java
package config;
|
|
|
|
import manager.STableManager;
|
|
import manager.Table;
|
|
|
|
import java.util.Map;
|
|
|
|
@Table(name ="RunesConfig")
|
|
public class SRunesConfig implements BaseConfig {
|
|
|
|
private int id;
|
|
|
|
private int mainPool;
|
|
|
|
private int mainNum;
|
|
|
|
private int pool;
|
|
|
|
private int secondNumMin;
|
|
|
|
private int secondNumMax;
|
|
|
|
private static Map<Integer,SRunesConfig> sRunesConfigMap;
|
|
|
|
|
|
@Override
|
|
public void init() throws Exception {
|
|
sRunesConfigMap = STableManager.getConfig(SRunesConfig.class);
|
|
}
|
|
|
|
public static SRunesConfig getsRunesConfigById(int runneId) {
|
|
return sRunesConfigMap.get(runneId);
|
|
}
|
|
|
|
public int getId() {
|
|
return id;
|
|
}
|
|
|
|
public int getMainPool() {
|
|
return mainPool;
|
|
}
|
|
|
|
public int getMainNum() {
|
|
return mainNum;
|
|
}
|
|
|
|
public int getPool() {
|
|
return pool;
|
|
}
|
|
|
|
public int getSecondNumMin() {
|
|
return secondNumMin;
|
|
}
|
|
|
|
public int getSecondNumMax() {
|
|
return secondNumMax;
|
|
}
|
|
|
|
|
|
} |