package config; import manager.STableManager; import manager.Table; import java.util.HashMap; import java.util.Map; @Table(name="EndlessDifficulty") public class SEndlessDifficulty implements BaseConfig{ private int id; private int[] worldLevel; private int[] monsterId; private int[] rewardId; private int mapPool; public static Map> mapDifficult= new HashMap<>(); public static Map> mapMonsterDifficult = new HashMap<>(); public static Map> mapRewardDifficult = new HashMap<>(); @Override public void init() throws Exception { Map configMap = STableManager.getConfig(SEndlessDifficulty.class); Map> mapDifficultTemp = new HashMap<>(); Map> mapMonsterDifficultTemp = new HashMap<>(); Map> mapRewardDifficultTemp = new HashMap<>(); for(Map.Entry entry:configMap.entrySet()){ int mapPool = entry.getValue().getMapPool(); if(!mapDifficultTemp.containsKey(mapPool)){ mapDifficultTemp.put(mapPool,new HashMap<>()); } int[] worldLevel = entry.getValue().getWorldLevel(); for(int i = worldLevel[0];i monsterMap = new HashMap<>(); Map rewardMap = new HashMap<>(); for(int j=0;j