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

57 lines
1.1 KiB
Java
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

package config;
import manager.STableManager;
import manager.Table;
import java.util.Map;
@Table(name = "RewardGroup")
public class SRewardGroup implements BaseConfig {
public static Map<Integer, SRewardGroup> sRewardItemMap;
private int id;
/**
* 组内抽取道具规则
* 1组内全出
* 2按照物品在组队的占比出
* 3按照组内道具概率依次抽取
*/
private int isUpset; // 掉落type
private int[] rewardItem;
private int rewardMaxNum; // 道具数
/**
* 如果抽取规则选3 ,则需要设置循环轮数
*/
private int loop ;
@Override
public void init() throws Exception {
sRewardItemMap = STableManager.getConfig(SRewardGroup.class);
}
public int getId() {
return id;
}
public static Map<Integer, SRewardGroup> getsRewardItemMap() {
return sRewardItemMap;
}
public int getIsUpset() {
return isUpset;
}
public int[] getRewardItem() {
return rewardItem;
}
public int getRewardMaxNum() {
return rewardMaxNum;
}
public int getLoop() {
return loop;
}
}