S表初始化修改

back_recharge
lvxinran 2019-11-26 10:59:33 +08:00
parent 2c35bf1b38
commit 300e03d91a
6 changed files with 7 additions and 0 deletions

View File

@ -35,6 +35,8 @@ public class SAccomplishmentConfig implements BaseConfig {
@Override
public void init() throws Exception {
sAccomplishmentConfigByMapIdMap = new HashMap<>();
sAccomplishmentConfigByMapIdAndLogicMap = new HashMap<>();
Map<Integer, SAccomplishmentConfig> config = STableManager.getConfig(SAccomplishmentConfig.class);
for(SAccomplishmentConfig sAccomplishmentConfig : config.values()){
int mapId = sAccomplishmentConfig.getMapId();

View File

@ -29,6 +29,7 @@ public class SHeroReturn implements BaseConfig {
@Override
public void init() throws Exception {
Map<Integer, SHeroReturn> config = STableManager.getConfig(SHeroReturn.class);
sheroReturnMap = new HashMap<>();
for(SHeroReturn sHeroReturn : config.values()){
int heroId = sHeroReturn.getHeroId();
int star = sHeroReturn.getStar();

View File

@ -28,6 +28,7 @@ public class SMysteryFoodPoolConfig implements BaseConfig {
@Override
public void init() throws Exception {
Map<Integer, SMysteryFoodPoolConfig> config = STableManager.getConfig(SMysteryFoodPoolConfig.class);
sMysteryFoodPoolConfigByPoolMap = new HashMap<>();
for(SMysteryFoodPoolConfig sMysteryFoodPoolConfig : config.values()){
sMysteryFoodPoolConfigByPoolMap.computeIfAbsent(pool,v->new ArrayList<>()).add(sMysteryFoodPoolConfig);
}

View File

@ -29,6 +29,7 @@ public class SRingFireConfig implements BaseConfig {
@Override
public void init() throws Exception {
Map<Integer, SRingFireConfig> config = STableManager.getConfig(SRingFireConfig.class);
sRingFireByRingIdAndLevelMap = new HashMap<>();
for(SRingFireConfig sRingFireConfig : config.values()){
int ringId = sRingFireConfig.getRingId();
int ringLevel = sRingFireConfig.getRingLevel();

View File

@ -29,6 +29,7 @@ public class SRunesPoolConfig implements BaseConfig {
@Override
public void init() throws Exception {
Map<Integer, SRunesPoolConfig> config = STableManager.getConfig(SRunesPoolConfig.class);
sRunesPoolConfigsByPoolNum = new HashMap<>();
for(SRunesPoolConfig sRunesPoolConfig : config.values()){
int poolNum = sRunesPoolConfig.getPoolNum();
sRunesPoolConfigsByPoolNum.computeIfAbsent(poolNum,v->new ArrayList<>()).add(sRunesPoolConfig);

View File

@ -23,6 +23,7 @@ public class SSevenDaysScore implements BaseConfig {
@Override
public void init() throws Exception {
Map<Integer, SSevenDaysScore> config = STableManager.getConfig(SSevenDaysScore.class);
SSevenDaysScoreByActivityIdAndScoreMap = new HashMap<>();
for(SSevenDaysScore sSevenDaysScore:config.values()){
int activityId = sSevenDaysScore.getActivityId();
int taskValue = sSevenDaysScore.getTaskValue();