S表初始化修改
parent
2c35bf1b38
commit
300e03d91a
|
@ -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();
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue