shop_shangpinTable.cs 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. // Generate By EToy
  2. // Don't Edit It!!
  3. using XGame.Framework.Database;
  4. using XGame.Framework.Serialization;
  5. namespace XGame.Database
  6. {
  7. /// <summary> shop_shangpin </summary>
  8. public sealed class shop_shangpinTable : ITable
  9. {
  10. long ITable.Key => Id;
  11. /// <summary> 功能id </summary>
  12. public int Id { get; private set; }
  13. /// <summary> 商城类型1=杂货商城2=钻石商城3=礼包商城4=特惠商城 </summary>
  14. public int Malltype { get; private set; }
  15. /// <summary> 商城标题1=每日限购2=每周限购3=永久限购4=钻石特购5=玄钻6=钻石7=超值礼包 </summary>
  16. public int Type { get; private set; }
  17. /// <summary> 商品价格类型1=钻石2=RMB </summary>
  18. public int Moneytype { get; private set; }
  19. /// <summary> 商品价格0=免费 </summary>
  20. public int Money { get; private set; }
  21. /// <summary> 折扣价格0=没有折扣优惠 </summary>
  22. public int Discount { get; private set; }
  23. /// <summary> 商品道具id+数量 </summary>
  24. public int[] Goods { get; private set; }
  25. /// <summary> 限购类型1=每日限购2=每周限购3每个账号限购 </summary>
  26. public int Numbertype { get; private set; }
  27. /// <summary> 限购次数0=没有购买次数限制 </summary>
  28. public int Number { get; private set; }
  29. /// <summary> 商品优惠力度显示:XXXX%0=没有优惠力度显示 </summary>
  30. public int Offers { get; private set; }
  31. /// <summary> 赠送奖励道具id+数量+次数 </summary>
  32. public int[] Reward { get; private set; }
  33. /// <summary> 购买条件0=无需条件1=等级2=购买指定礼包 </summary>
  34. public int Buytype { get; private set; }
  35. /// <summary> 购买条件参数 </summary>
  36. public int Parameter { get; private set; }
  37. void ISerializable.Deserialize(IReader reader)
  38. {
  39. Id = reader.ReadInt();
  40. Malltype = reader.ReadInt();
  41. Type = reader.ReadInt();
  42. Moneytype = reader.ReadInt();
  43. Money = reader.ReadInt();
  44. Discount = reader.ReadInt();
  45. Goods = reader.ReadEnumerable<int[]>();
  46. Numbertype = reader.ReadInt();
  47. Number = reader.ReadInt();
  48. Offers = reader.ReadInt();
  49. Reward = reader.ReadEnumerable<int[]>();
  50. Buytype = reader.ReadInt();
  51. Parameter = reader.ReadInt();
  52. }
  53. void ISerializable.Serialize(IWriter writer)
  54. {
  55. writer.Write(Id);
  56. writer.Write(Malltype);
  57. writer.Write(Type);
  58. writer.Write(Moneytype);
  59. writer.Write(Money);
  60. writer.Write(Discount);
  61. writer.Write(Goods);
  62. writer.Write(Numbertype);
  63. writer.Write(Number);
  64. writer.Write(Offers);
  65. writer.Write(Reward);
  66. writer.Write(Buytype);
  67. writer.Write(Parameter);
  68. }
  69. }
  70. }