41 lines
875 B
Java
41 lines
875 B
Java
package config;
|
|
|
|
import manager.STableManager;
|
|
import manager.Table;
|
|
|
|
import java.util.Map;
|
|
import java.util.TreeMap;
|
|
|
|
@Table(name ="GuildWarRewardConfig")
|
|
public class SGuildWarRewardConfig implements BaseConfig {
|
|
|
|
private int id;
|
|
|
|
private int section;
|
|
|
|
private int[][] reward;
|
|
|
|
public static Map<Integer,SGuildWarRewardConfig> treeReward = new TreeMap<>();
|
|
@Override
|
|
public void init() throws Exception {
|
|
Map<Integer, SGuildWarRewardConfig> config = STableManager.getConfig(SGuildWarRewardConfig.class);
|
|
for(Map.Entry<Integer,SGuildWarRewardConfig> entry:config.entrySet()){
|
|
treeReward.putIfAbsent(entry.getValue().getSection(),entry.getValue());
|
|
}
|
|
}
|
|
|
|
|
|
public int getId() {
|
|
return id;
|
|
}
|
|
|
|
public int getSection() {
|
|
return section;
|
|
}
|
|
|
|
public int[][] getReward() {
|
|
return reward;
|
|
}
|
|
|
|
|
|
} |