技能静态表初始化

back_recharge
gaojie 2019-03-12 11:10:19 +08:00
parent 9d033a9fc5
commit aa9ea25018
3 changed files with 574 additions and 525 deletions

File diff suppressed because it is too large Load Diff

View File

@ -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();
}

View File

@ -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;
}
}