技能静态表初始化
parent
9d033a9fc5
commit
aa9ea25018
File diff suppressed because it is too large
Load Diff
|
@ -36,14 +36,12 @@ public class SLotterySetting implements BaseConfig {
|
|||
|
||||
public static Map<Integer, SLotterySetting> getsLotterySettingMap() {
|
||||
return sLotterySettingByType;
|
||||
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public void init() throws Exception {
|
||||
sLotterySettingByType = STableManager.getConfig(SLotterySetting.class);
|
||||
System.out.println();
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -0,0 +1,51 @@
|
|||
package com.ljsd.jieling.config;
|
||||
|
||||
import com.ljsd.jieling.logic.STableManager;
|
||||
import com.ljsd.jieling.logic.Table;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
|
||||
@Table(name ="SkillLogicConfig")
|
||||
public class SSkillLogicConfig implements BaseConfig {
|
||||
public static Map<Integer, SSkillLogicConfig> sSkillLogicConfigMap;
|
||||
private int id;
|
||||
|
||||
private float[][] target;
|
||||
|
||||
private int[][] effect;
|
||||
|
||||
private float[][] effectValue;
|
||||
|
||||
private float cd;
|
||||
|
||||
|
||||
@Override
|
||||
public void init() throws Exception {
|
||||
sSkillLogicConfigMap = STableManager.getConfig(SSkillLogicConfig.class);
|
||||
}
|
||||
|
||||
public static Map<Integer, SSkillLogicConfig> getsSkillLogicConfigMap() {
|
||||
return sSkillLogicConfigMap;
|
||||
}
|
||||
|
||||
public int getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public float[][] getTarget() {
|
||||
return target;
|
||||
}
|
||||
|
||||
public int[][] getEffect() {
|
||||
return effect;
|
||||
}
|
||||
|
||||
public float[][] getEffectValue() {
|
||||
return effectValue;
|
||||
}
|
||||
|
||||
public float getCd() {
|
||||
return cd;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue