51 lines
899 B
Java
51 lines
899 B
Java
|
package config;
|
||
|
|
||
|
import manager.STableManager;
|
||
|
import manager.Table;
|
||
|
|
||
|
import java.util.Map;
|
||
|
|
||
|
@Table(name ="PassiveSkillLogicConfig")
|
||
|
public class SPassiveSkillLogicConfig implements BaseConfig {
|
||
|
|
||
|
private int id;
|
||
|
|
||
|
private int type;
|
||
|
|
||
|
private float[] value;
|
||
|
|
||
|
private int poolNum;
|
||
|
|
||
|
private int weight;
|
||
|
|
||
|
public static Map<Integer, SPassiveSkillLogicConfig> config;
|
||
|
|
||
|
@Override
|
||
|
public void init() throws Exception {
|
||
|
config = STableManager.getConfig(SPassiveSkillLogicConfig.class);
|
||
|
}
|
||
|
|
||
|
public static SPassiveSkillLogicConfig getConfig(int passivityId) {
|
||
|
return config.get(passivityId);
|
||
|
}
|
||
|
|
||
|
public int getId() {
|
||
|
return id;
|
||
|
}
|
||
|
|
||
|
public int getType() {
|
||
|
return type;
|
||
|
}
|
||
|
|
||
|
public float[] getValue() {
|
||
|
return value;
|
||
|
}
|
||
|
|
||
|
public int getPoolNum() {
|
||
|
return poolNum;
|
||
|
}
|
||
|
|
||
|
public int getWeight() {
|
||
|
return weight;
|
||
|
}
|
||
|
}
|