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