// Generate By EToy
// Don't Edit It!!
using XGame.Framework.Database;
using XGame.Framework.Serialization;
namespace XGame.Database
{
/// call
public sealed class callTable : ITable
{
long ITable.Key => Id;
/// 功能id1000*抽奖类型+1
public int Id { get; private set; }
/// 抽奖类型1=圣兵2=铭文
public int Type { get; private set; }
/// 抽奖消耗抽奖消耗+抽奖道具+抽奖次数
public int[] Cost { get; private set; }
/// 抽奖保底次数达到次数后获得保底奖励
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; }
void ISerializable.Deserialize(IReader reader)
{
Id = reader.ReadInt();
Type = reader.ReadInt();
Cost = reader.ReadEnumerable();
Floors = reader.ReadInt();
CallExp = reader.ReadInt();
AdNumber = reader.ReadEnumerable();
ShareNumber = reader.ReadEnumerable();
}
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);
}
}
}