129 lines
2.3 KiB
Java
129 lines
2.3 KiB
Java
package config;
|
|
|
|
import manager.STableManager;
|
|
import manager.Table;
|
|
|
|
import java.util.HashMap;
|
|
import java.util.Map;
|
|
|
|
@Table(name = "GodSacrificeSetting")
|
|
public class SGodSacrificeSetting implements BaseConfig {
|
|
|
|
private int id;
|
|
|
|
private int activityId;
|
|
|
|
private int[] activityItems;
|
|
|
|
private int activityMoney;
|
|
|
|
private int[] rankType;
|
|
|
|
private int[] rewardItemChangRate;
|
|
|
|
private int qAId;
|
|
|
|
private int itemDelete;
|
|
|
|
private int timeRewardNum;
|
|
|
|
private int[] timePointList;
|
|
|
|
private int timeRewardGroup;
|
|
|
|
private int lastTime;
|
|
|
|
public static HashMap<Integer, Integer> exchangeRate = new HashMap<>();
|
|
private int levelLimit;
|
|
private int lifeLimit;
|
|
|
|
private int joinLimit;
|
|
|
|
private int[][] mailId;
|
|
|
|
private int l1Score;
|
|
|
|
|
|
@Override
|
|
public void init() throws Exception {
|
|
SGodSacrificeSetting sGodSacrificeSetting = STableManager.getConfig(SGodSacrificeSetting.class).get(1);
|
|
if (null != sGodSacrificeSetting) {
|
|
int[] activityItems = sGodSacrificeSetting.getActivityItems();
|
|
for (int i = 0; i < activityItems.length; i++) {
|
|
exchangeRate.put(activityItems[i], i);
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
|
|
public int getId() {
|
|
return id;
|
|
}
|
|
|
|
public int getActivityId() {
|
|
return activityId;
|
|
}
|
|
|
|
public int[] getActivityItems() {
|
|
return activityItems;
|
|
}
|
|
|
|
public int getActivityMoney() {
|
|
return activityMoney;
|
|
}
|
|
|
|
public int[] getRankType() {
|
|
return rankType;
|
|
}
|
|
|
|
public int[] getRewardItemChangRate() {
|
|
return rewardItemChangRate;
|
|
}
|
|
|
|
public int getQAId() {
|
|
return qAId;
|
|
}
|
|
|
|
public int getItemDelete() {
|
|
return itemDelete;
|
|
}
|
|
|
|
public int getTimeRewardNum() {
|
|
return timeRewardNum;
|
|
}
|
|
|
|
public int[] getTimePointList() {
|
|
return timePointList;
|
|
}
|
|
|
|
public int getTimeRewardGroup() {
|
|
return timeRewardGroup;
|
|
}
|
|
|
|
public int getLastTime() {
|
|
return lastTime;
|
|
}
|
|
|
|
public int getLevelLimit() {
|
|
return levelLimit;
|
|
}
|
|
|
|
public int getLifeLimit() {
|
|
return lifeLimit;
|
|
}
|
|
|
|
public int getJoinLimit() {
|
|
return joinLimit;
|
|
}
|
|
|
|
public int[][] getMailId() {
|
|
return mailId;
|
|
}
|
|
|
|
public int getL1Score() {
|
|
return l1Score;
|
|
}
|
|
|
|
|
|
} |