114 lines
2.2 KiB
Java
114 lines
2.2 KiB
Java
package config;
|
|
|
|
import manager.STableManager;
|
|
import manager.Table;
|
|
|
|
import java.util.HashMap;
|
|
import java.util.Map;
|
|
|
|
@Table(name ="FreeTravel")
|
|
public class SFreeTravel implements BaseConfig {
|
|
|
|
private int id;
|
|
|
|
private int mapID;
|
|
|
|
private int unlockLevel;
|
|
|
|
private int[][] adventureNumber;
|
|
|
|
private int[] consume;
|
|
|
|
private int[] commonReward;
|
|
|
|
private int[] finalReward;
|
|
|
|
private int[][] treasureChest;
|
|
|
|
private int[][] bossConsume;
|
|
|
|
private int[] freeTravelBoss;
|
|
|
|
private int[] freeTravelBossReward;
|
|
|
|
private int[] turntableProbability;
|
|
|
|
private int[][] turntablePosition;
|
|
|
|
private int[][] turntableGoods;
|
|
|
|
private int firstReward;
|
|
|
|
public static Map<Integer,SFreeTravel> journeyMapByMapId;
|
|
|
|
@Override
|
|
public void init() throws Exception {
|
|
Map<Integer, SFreeTravel> config = STableManager.getConfig(SFreeTravel.class);
|
|
Map<Integer,SFreeTravel> journeyMapByMapIdTemp = new HashMap<>();
|
|
for(Map.Entry<Integer, SFreeTravel> entry:config.entrySet()){
|
|
journeyMapByMapIdTemp.put(entry.getValue().getMapID(),entry.getValue());
|
|
}
|
|
journeyMapByMapId = journeyMapByMapIdTemp;
|
|
}
|
|
|
|
|
|
public int getID() {
|
|
return id;
|
|
}
|
|
|
|
public int getMapID() {
|
|
return mapID;
|
|
}
|
|
|
|
public int getUnlockLevel() {
|
|
return unlockLevel;
|
|
}
|
|
|
|
public int[][] getAdventureNumber() {
|
|
return adventureNumber;
|
|
}
|
|
|
|
public int[] getConsume() {
|
|
return consume;
|
|
}
|
|
|
|
public int[] getCommonReward() {
|
|
return commonReward;
|
|
}
|
|
|
|
public int[] getFinalReward() {
|
|
return finalReward;
|
|
}
|
|
|
|
public int[][] getTreasureChest() {
|
|
return treasureChest;
|
|
}
|
|
|
|
public int[][] getBossConsume() {
|
|
return bossConsume;
|
|
}
|
|
|
|
public int[] getFreeTravelBoss() {
|
|
return freeTravelBoss;
|
|
}
|
|
|
|
public int[] getFreeTravelBossReward() {
|
|
return freeTravelBossReward;
|
|
}
|
|
|
|
public int[] getTurntableProbability() {
|
|
return turntableProbability;
|
|
}
|
|
|
|
public int[][] getTurntablePosition() {
|
|
return turntablePosition;
|
|
}
|
|
|
|
public int[][] getTurntableGoods() {
|
|
return turntableGoods;
|
|
}
|
|
|
|
public int getFirstReward() {
|
|
return firstReward;
|
|
}
|
|
} |