62 lines
1.2 KiB
Java
62 lines
1.2 KiB
Java
package config;
|
|
|
|
import manager.STableManager;
|
|
import manager.Table;
|
|
|
|
import java.util.Map;
|
|
|
|
@Table(name = "ChallengeSetting")
|
|
public class SChallengeSetting implements BaseConfig{
|
|
|
|
public static SChallengeSetting challengeSetting;
|
|
|
|
@Override
|
|
public void init() throws Exception {
|
|
Map<Integer, SChallengeSetting> SChallengeSetting = STableManager.getConfig(SChallengeSetting.class);
|
|
for (SChallengeSetting sChallengeSetting : SChallengeSetting.values()) {
|
|
challengeSetting = sChallengeSetting;
|
|
}
|
|
}
|
|
|
|
private int id;
|
|
|
|
private int dailyLimitPrivilege;
|
|
|
|
private int buyTimesPrivilege;
|
|
|
|
private int item;
|
|
|
|
private int[] cost;
|
|
|
|
private int actionPowerId;
|
|
|
|
public int getDailyLimitPrivilege() {
|
|
return dailyLimitPrivilege;
|
|
}
|
|
|
|
public int getBuyTimesPrivilege() {
|
|
return buyTimesPrivilege;
|
|
}
|
|
|
|
|
|
public int[] getCost() {
|
|
return cost;
|
|
}
|
|
|
|
public int getId() {
|
|
return id;
|
|
}
|
|
|
|
public int getItem() {
|
|
return item;
|
|
}
|
|
|
|
public static SChallengeSetting getChallengeSetting() {
|
|
return challengeSetting;
|
|
}
|
|
|
|
public int getActionPowerId() {
|
|
return actionPowerId;
|
|
}
|
|
}
|