shop_shangpinTable.cs 3.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  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=超值礼包8=等级礼包9=新手礼包 </summary>
  16. public int Type { get; private set; }
  17. /// <summary> 商品名称 </summary>
  18. public string Name { get; private set; }
  19. /// <summary> 商品价格类型道具id(货币类型),数量 </summary>
  20. public int[] Moneytype { get; private set; }
  21. /// <summary> 商品价格0=免费 </summary>
  22. public int Money { get; private set; }
  23. /// <summary> 折扣价格0=没有折扣优惠 </summary>
  24. public int Discount { get; private set; }
  25. /// <summary> 商品道具id,数量 </summary>
  26. public int[] Goods { get; private set; }
  27. /// <summary> 限购类型1=每日限购2=每周限购3=每个账号限购 </summary>
  28. public int Numbertype { get; private set; }
  29. /// <summary> 限购次数0=没有购买次数限制 </summary>
  30. public int Number { get; private set; }
  31. /// <summary> 商品优惠力度显示:XXXX%0=没有优惠力度显示 </summary>
  32. public int Offers { get; private set; }
  33. /// <summary> 赠送奖励道具id,数量,次数 </summary>
  34. public int[] Reward { get; private set; }
  35. /// <summary> 购买条件0=无需条件1=等级2=购买指定礼包 </summary>
  36. public int Buytype { get; private set; }
  37. /// <summary> 购买条件参数 </summary>
  38. public int Parameter { get; private set; }
  39. void ISerializable.Deserialize(IReader reader)
  40. {
  41. Id = reader.ReadInt();
  42. Malltype = reader.ReadInt();
  43. Type = reader.ReadInt();
  44. Name = reader.ReadString();
  45. Moneytype = reader.ReadEnumerable<int[]>();
  46. Money = reader.ReadInt();
  47. Discount = reader.ReadInt();
  48. Goods = reader.ReadEnumerable<int[]>();
  49. Numbertype = reader.ReadInt();
  50. Number = reader.ReadInt();
  51. Offers = reader.ReadInt();
  52. Reward = reader.ReadEnumerable<int[]>();
  53. Buytype = reader.ReadInt();
  54. Parameter = reader.ReadInt();
  55. }
  56. void ISerializable.Serialize(IWriter writer)
  57. {
  58. writer.Write(Id);
  59. writer.Write(Malltype);
  60. writer.Write(Type);
  61. writer.Write(Name);
  62. writer.Write(Moneytype);
  63. writer.Write(Money);
  64. writer.Write(Discount);
  65. writer.Write(Goods);
  66. writer.Write(Numbertype);
  67. writer.Write(Number);
  68. writer.Write(Offers);
  69. writer.Write(Reward);
  70. writer.Write(Buytype);
  71. writer.Write(Parameter);
  72. }
  73. }
  74. }