122 lines
2.2 KiB
Java
122 lines
2.2 KiB
Java
package config;
|
|
|
|
import manager.STableManager;
|
|
import manager.Table;
|
|
|
|
import java.util.HashMap;
|
|
import java.util.Map;
|
|
import java.util.stream.Stream;
|
|
|
|
@Table(name ="BlessingConfig")
|
|
public class SBlessingConfig implements BaseConfig {
|
|
|
|
private int id;
|
|
|
|
private int activityId;
|
|
|
|
private int[][] cost;
|
|
|
|
private int refreshCd;
|
|
|
|
private int isRefresh;
|
|
|
|
private int randomPoolId;
|
|
|
|
private int randomNum;
|
|
|
|
private int legendPoolId;
|
|
|
|
private int legendNum;
|
|
|
|
private int legendChooseNum;
|
|
|
|
private int supremePoolId;
|
|
|
|
private int supremeNum;
|
|
|
|
private int supremePoolIdChooseNum;
|
|
|
|
private int[] counts;
|
|
|
|
private int[] copuntsPoolId;
|
|
|
|
private int countsNum;
|
|
|
|
public static Map<Integer,SBlessingConfig> sBlessingConfig;
|
|
|
|
public static Map<Integer,SBlessingConfig> blessingConfigMap;
|
|
|
|
@Override
|
|
public void init() throws Exception {
|
|
sBlessingConfig = STableManager.getConfig(SBlessingConfig.class);
|
|
blessingConfigMap = new HashMap<>();
|
|
for(Map.Entry<Integer,SBlessingConfig> blessingConfigEntry:sBlessingConfig.entrySet()){
|
|
blessingConfigMap.put(blessingConfigEntry.getValue().getActivityId(),blessingConfigEntry.getValue());
|
|
}
|
|
}
|
|
|
|
|
|
public int getId() {
|
|
return id;
|
|
}
|
|
|
|
public int getActivityId() {
|
|
return activityId;
|
|
}
|
|
|
|
public int[][] getCost() {
|
|
return cost;
|
|
}
|
|
|
|
public int getRandomPoolId() {
|
|
return randomPoolId;
|
|
}
|
|
|
|
public int getRandomNum() {
|
|
return randomNum;
|
|
}
|
|
|
|
public int getLegendPoolId() {
|
|
return legendPoolId;
|
|
}
|
|
|
|
public int getLegendNum() {
|
|
return legendNum;
|
|
}
|
|
|
|
public int getLegendChooseNum() {
|
|
return legendChooseNum;
|
|
}
|
|
|
|
public int getSupremePoolId() {
|
|
return supremePoolId;
|
|
}
|
|
|
|
public int getSupremeNum() {
|
|
return supremeNum;
|
|
}
|
|
|
|
public int getSupremePoolIdChooseNum() {
|
|
return supremePoolIdChooseNum;
|
|
}
|
|
|
|
public int[] getCounts() {
|
|
return counts;
|
|
}
|
|
|
|
public int[] getCopuntsPoolId() {
|
|
return copuntsPoolId;
|
|
}
|
|
|
|
public int getCountsNum() {
|
|
return countsNum;
|
|
}
|
|
|
|
public int getIsRefresh() {
|
|
return isRefresh;
|
|
}
|
|
|
|
public int getRefreshCd() {
|
|
return refreshCd;
|
|
}
|
|
} |