1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192 |
- // 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> 商品名称 </summary>
- public string Name { get; private set; }
- /// <summary> 商品价格类型道具id(货币类型)+数量 </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();
- Name = reader.ReadString();
- Moneytype = reader.ReadEnumerable<int[]>();
- 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(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);
- }
- }
- }
|