miduo_server/tablemanager/src/main/java/config/SPassiveSkillLogicConfig.java

59 lines
1.0 KiB
Java
Raw Normal View History

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;
2020-04-15 14:21:26 +08:00
private int effectiveRange;
private int coverID;
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;
}
2020-04-15 14:21:26 +08:00
public int getEffectiveRange() {
return effectiveRange;
}
}