// Generate By EToy
// Don't Edit It!!
using XGame.Framework.Database;
using XGame.Framework.Serialization;
namespace XGame.Database
{
/// raffle
public sealed class raffleTable : ITable
{
long ITable.Key => Id;
/// 功能id1000*抽奖类型+1
public int Id { get; private set; }
/// 抽奖类型1=圣兵2=铭文
public int Type { get; private set; }
/// 抽奖消耗【抽奖类型,消耗抽奖道具ID,抽奖次数,抽奖类型,消耗抽奖道具ID,抽奖次数】
public int[] Cost { get; private set; }
/// 抽奖保底次数【小保底次数,大保底次数】0=没有保底机制
public int[] Floors { get; private set; }
/// 抽奖经验
public int CallExp { get; private set; }
/// 每日广告【每日广告次数,每次广告转化的抽奖次数】
public int[] AdNumber { get; private set; }
/// 每日分享【每日分享次数,道县id,道具数量】
public int[] ShareNumber { get; private set; }
/// 每日免费抽奖次数
public int Freeware { get; private set; }
void ISerializable.Deserialize(IReader reader)
{
Id = reader.ReadInt();
Type = reader.ReadInt();
Cost = reader.ReadEnumerable();
Floors = reader.ReadEnumerable();
CallExp = reader.ReadInt();
AdNumber = reader.ReadEnumerable();
ShareNumber = reader.ReadEnumerable();
Freeware = reader.ReadInt();
}
void ISerializable.Serialize(IWriter writer)
{
writer.Write(Id);
writer.Write(Type);
writer.Write(Cost);
writer.Write(Floors);
writer.Write(CallExp);
writer.Write(AdNumber);
writer.Write(ShareNumber);
writer.Write(Freeware);
}
}
}