44 lines
674 B
Java
44 lines
674 B
Java
|
package config;
|
||
|
|
||
|
import manager.STableManager;
|
||
|
import manager.Table;
|
||
|
|
||
|
import java.util.Map;
|
||
|
|
||
|
@Table(name ="WishConfig")
|
||
|
public class SWishConfig implements BaseConfig {
|
||
|
|
||
|
private int id;
|
||
|
|
||
|
private int drawCardNumber;
|
||
|
|
||
|
private int[][] reward;
|
||
|
|
||
|
private int weight;
|
||
|
|
||
|
public static Map<Integer, SWishConfig> map;
|
||
|
|
||
|
@Override
|
||
|
public void init() throws Exception {
|
||
|
map = STableManager.getConfig(SWishConfig.class);
|
||
|
}
|
||
|
|
||
|
|
||
|
public int getId() {
|
||
|
return id;
|
||
|
}
|
||
|
|
||
|
public int getDrawCardNumber() {
|
||
|
return drawCardNumber;
|
||
|
}
|
||
|
|
||
|
public int[][] getReward() {
|
||
|
return reward;
|
||
|
}
|
||
|
|
||
|
public int getWeight() {
|
||
|
return weight;
|
||
|
}
|
||
|
|
||
|
|
||
|
}
|