package config; import manager.STableManager; import manager.Table; import java.util.HashSet; import java.util.Map; import java.util.Set; @Table(name = "ChallengeConfig") public class SChallengeConfig implements BaseConfig { @Override public void init() throws Exception { Map config = STableManager.getConfig(SChallengeConfig.class); Set copyIdsTmp = new HashSet<>(); for(SChallengeConfig sChallengeConfig:config.values()){ if(sChallengeConfig.getType() == 3){ copyIdsTmp.add(sChallengeConfig.getMapId()); } } sChallengeConfigs = config; copyIds = copyIdsTmp; } public static Map sChallengeConfigs; public static Set copyIds; private int id; private int isExplore; private int mapId;//对应副本id private int[][] openRule; private int mapTime; private int[] reviveTime; private int time; private int mostTime; private int type; private int deaths; private int difficultType; private int[] sweepingOpenRule; private int[][] sweepingStoreProbability; private int sweepingStoreId; private int[][] sweepingMonsterProbability; private int sweepingMonsterId; public int getId() { return id; } public int getMapId() { return mapId; } public int[][] getOpenRule() { return openRule; } public int getMapTime() { return mapTime; } public int[] getReviveTime() { return reviveTime; } public int getTime() { return time; } public int getMostTime() { return mostTime; } public int getType() { return type; } public int getDeaths() { return deaths; } public int getIsExplore() { return isExplore; } public int getDifficultType() { return difficultType; } public int[] getSweepingOpenRule() { return sweepingOpenRule; } public int[][] getSweepingStoreProbability() { return sweepingStoreProbability; } public int getSweepingStoreId() { return sweepingStoreId; } public int[][] getSweepingMonsterProbability() { return sweepingMonsterProbability; } public int getSweepingMonsterId() { return sweepingMonsterId; } }