// Generate By EToy
// Don't Edit It!!
using XGame.Framework.Database;
using XGame.Framework.Serialization;
namespace XGame.Database
{
/// shop_shangpin
public sealed class shop_shangpinTable : ITable
{
long ITable.Key => Id;
/// 功能id
public int Id { get; private set; }
/// 商城类型1=杂货商城2=钻石商城3=礼包商城4=特惠商城
public int Malltype { get; private set; }
/// 商城标题1=每日限购2=每周限购3=永久限购4=钻石特购5=玄钻6=钻石7=超值礼包
public int Type { get; private set; }
/// 商品名称
public string Name { get; private set; }
/// 商品价格类型道具id(货币类型)+数量
public int[] Moneytype { get; private set; }
/// 商品价格0=免费
public int Money { get; private set; }
/// 折扣价格0=没有折扣优惠
public int Discount { get; private set; }
/// 商品道具id+数量
public int[] Goods { get; private set; }
/// 限购类型1=每日限购2=每周限购3每个账号限购
public int Numbertype { get; private set; }
/// 限购次数0=没有购买次数限制
public int Number { get; private set; }
/// 商品优惠力度显示:XXXX%0=没有优惠力度显示
public int Offers { get; private set; }
/// 赠送奖励道具id+数量+次数
public int[] Reward { get; private set; }
/// 购买条件0=无需条件1=等级2=购买指定礼包
public int Buytype { get; private set; }
/// 购买条件参数
public int Parameter { get; private set; }
void ISerializable.Deserialize(IReader reader)
{
Id = reader.ReadInt();
Malltype = reader.ReadInt();
Type = reader.ReadInt();
Name = reader.ReadString();
Moneytype = reader.ReadEnumerable();
Money = reader.ReadInt();
Discount = reader.ReadInt();
Goods = reader.ReadEnumerable();
Numbertype = reader.ReadInt();
Number = reader.ReadInt();
Offers = reader.ReadInt();
Reward = reader.ReadEnumerable();
Buytype = reader.ReadInt();
Parameter = reader.ReadInt();
}
void ISerializable.Serialize(IWriter writer)
{
writer.Write(Id);
writer.Write(Malltype);
writer.Write(Type);
writer.Write(Name);
writer.Write(Moneytype);
writer.Write(Money);
writer.Write(Discount);
writer.Write(Goods);
writer.Write(Numbertype);
writer.Write(Number);
writer.Write(Offers);
writer.Write(Reward);
writer.Write(Buytype);
writer.Write(Parameter);
}
}
}