using cfg.ActorCfg;
///
/// 抽卡按钮数据
///
public struct DrawButtonData
{
public DataGacha Cfg { get; private set; }
///
/// 抽卡类型
///
public GachaDrawType DrawType { get; private set; }
///
/// 抽卡次数
///
public E_DrawCount DrawCount { get; private set; }
///
/// 能否抽取
///
public bool IsDraw { get; private set; }
///
/// 是否可以免费抽
///
public bool IsFree { get; private set; }
///
/// 消耗的货币id
///
public int CostId { get; private set; }
///
/// 消耗的货币数量
///
public int CostCount { get; private set; }
///
/// 是否钻石
///
public bool IsMoney { get; private set; }
public DrawButtonData(DataGacha dataGacha,
GachaDrawType gachaDrawType,
E_DrawCount drawCount,
bool isDraw,
bool isFree,
int costId,
int costCount,
bool isMoney)
{
Cfg = dataGacha;
DrawType = gachaDrawType;
DrawCount = drawCount;
IsDraw = isDraw;
IsFree = isFree;
CostId = costId;
CostCount = costCount;
IsMoney = isMoney;
}
}