using System; using System.Collections.Generic; namespace Assets.MyGame.Scripts.Net.API.GameConfig_SubClass { [Serializable] public class LotteryActivityConfig { public string activityName; public bool isOpen; public long startTime; public long endTime; public List pools; /// 分奖池价格阶梯。Key:"1"=炮台,"2"=战神,"3"=翅膀;每个奖池独立计费,不再使用公共价格 public Dictionary> costsByPool; public int userMaxDraw; } [Serializable] public class LotteryPoolLevel { /// 奖池类型(一种类型=一种抽奖,多种抽奖各有独立奖池) public int poolType; /// 奖励等级:A / B / C public string level; public int count; public int weight; public List prizeList; } [Serializable] public class LotteryPrize { /// 奖项唯一标识ID(如"A001"、"B002",用于唯一性控制:同一用户不能重复抽中) public string prizeId; /// 奖项名称(用于前端展示) public string name; /// 奖项图标地址 public string icon; /// 奖励类型 1=金币,2=钻石,3=道具,4=道具碎片 public int type; /// 奖励数量 public long count; /// 道具/碎片编号(type=3或4时使用) public string otherId; /// 道具详情 public BaseProduct product; /// 在该等级内的抽中奖权重 public int weight; /// 该奖项总库存数量(全局,0=无限库存) public int totalCount; /// 已抽中数量(运行时统计,用于判断库存是否充足) public int drawnCount; } }