miduo_server/tablemanager/src/main/java/config/SGodSacrificeSetting.java

129 lines
2.3 KiB
Java
Raw Normal View History

2020-10-17 15:38:23 +08:00
package config;
import manager.STableManager;
import manager.Table;
2020-10-25 17:00:00 +08:00
import java.util.HashMap;
2020-10-17 15:38:23 +08:00
import java.util.Map;
2020-10-31 14:02:38 +08:00
@Table(name = "GodSacrificeSetting")
2020-10-17 15:38:23 +08:00
public class SGodSacrificeSetting implements BaseConfig {
2020-10-31 14:02:38 +08:00
private int id;
2020-10-17 15:38:23 +08:00
2020-10-31 14:02:38 +08:00
private int activityId;
2020-10-17 15:38:23 +08:00
2020-10-31 14:02:38 +08:00
private int[] activityItems;
2020-10-17 15:38:23 +08:00
2020-10-31 14:02:38 +08:00
private int activityMoney;
2020-10-17 15:38:23 +08:00
2020-10-31 14:02:38 +08:00
private int[] rankType;
2020-10-17 15:38:23 +08:00
2020-10-31 14:02:38 +08:00
private int[] rewardItemChangRate;
2020-10-17 15:38:23 +08:00
2020-10-31 14:02:38 +08:00
private int qAId;
2020-10-17 15:38:23 +08:00
2020-10-31 14:02:38 +08:00
private int itemDelete;
2020-10-17 15:38:23 +08:00
2020-10-31 14:02:38 +08:00
private int timeRewardNum;
2020-10-17 15:38:23 +08:00
2020-10-31 14:02:38 +08:00
private int[] timePointList;
2020-10-17 15:38:23 +08:00
2020-10-31 14:02:38 +08:00
private int timeRewardGroup;
2020-10-17 15:38:23 +08:00
2020-10-31 14:02:38 +08:00
private int lastTime;
2020-10-17 15:38:23 +08:00
2020-10-31 14:02:38 +08:00
public static HashMap<Integer, Integer> exchangeRate = new HashMap<>();
2020-10-28 12:14:06 +08:00
private int levelLimit;
2020-10-31 14:02:38 +08:00
private int lifeLimit;
2020-10-25 17:00:00 +08:00
2020-10-31 14:02:38 +08:00
private int joinLimit;
2020-10-25 17:00:00 +08:00
2020-10-31 14:02:38 +08:00
private int[][] mailId;
2020-10-25 17:00:00 +08:00
2020-10-31 14:02:38 +08:00
private int l1Score;
2020-10-25 17:00:00 +08:00
2020-10-31 14:02:38 +08:00
@Override
2020-10-17 15:38:23 +08:00
public void init() throws Exception {
2020-10-25 17:00:00 +08:00
SGodSacrificeSetting sGodSacrificeSetting = STableManager.getConfig(SGodSacrificeSetting.class).get(1);
2020-10-31 14:02:38 +08:00
if (null != sGodSacrificeSetting) {
int[] activityItems = sGodSacrificeSetting.getActivityItems();
for (int i = 0; i < activityItems.length; i++) {
exchangeRate.put(activityItems[i], i);
2020-10-25 17:00:00 +08:00
}
}
2020-10-17 15:38:23 +08:00
}
2020-10-31 14:02:38 +08:00
public int getId() {
2020-10-17 15:38:23 +08:00
return id;
}
2020-10-31 14:02:38 +08:00
public int getActivityId() {
2020-10-17 15:38:23 +08:00
return activityId;
}
2020-10-31 14:02:38 +08:00
public int[] getActivityItems() {
2020-10-17 15:38:23 +08:00
return activityItems;
}
2020-10-31 14:02:38 +08:00
public int getActivityMoney() {
2020-10-17 15:38:23 +08:00
return activityMoney;
}
2020-10-31 14:02:38 +08:00
public int[] getRankType() {
2020-10-17 15:38:23 +08:00
return rankType;
}
2020-10-31 14:02:38 +08:00
public int[] getRewardItemChangRate() {
2020-10-17 15:38:23 +08:00
return rewardItemChangRate;
}
2020-10-31 14:02:38 +08:00
public int getQAId() {
2020-10-17 15:38:23 +08:00
return qAId;
}
2020-10-31 14:02:38 +08:00
public int getItemDelete() {
2020-10-17 15:38:23 +08:00
return itemDelete;
}
2020-10-31 14:02:38 +08:00
public int getTimeRewardNum() {
2020-10-17 15:38:23 +08:00
return timeRewardNum;
}
2020-10-31 14:02:38 +08:00
public int[] getTimePointList() {
2020-10-17 15:38:23 +08:00
return timePointList;
}
2020-10-31 14:02:38 +08:00
public int getTimeRewardGroup() {
2020-10-17 15:38:23 +08:00
return timeRewardGroup;
}
2020-10-31 14:02:38 +08:00
public int getLastTime() {
2020-10-17 15:38:23 +08:00
return lastTime;
}
2020-10-31 14:02:38 +08:00
public int getLevelLimit() {
2020-10-28 12:14:06 +08:00
return levelLimit;
}
2020-10-17 15:38:23 +08:00
2020-10-31 14:02:38 +08:00
public int getLifeLimit() {
2020-10-25 17:00:00 +08:00
return lifeLimit;
}
2020-10-31 14:02:38 +08:00
public int getJoinLimit() {
2020-10-25 17:00:00 +08:00
return joinLimit;
}
2020-10-31 14:02:38 +08:00
public int[][] getMailId() {
2020-10-25 17:00:00 +08:00
return mailId;
}
2020-10-31 14:02:38 +08:00
public int getL1Score() {
2020-10-25 17:00:00 +08:00
return l1Score;
}
2020-10-17 15:38:23 +08:00
}