guildShopTable.cs 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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> guildShop </summary>
  8. public sealed class guildShopTable : ITable
  9. {
  10. long ITable.Key => Id;
  11. /// <summary> 公会功能ID贡献等级*10000+1 </summary>
  12. public int Id { get; private set; }
  13. /// <summary> 贡献等级 </summary>
  14. public int Level { get; private set; }
  15. /// <summary> 商品名称 </summary>
  16. public string Name { get; private set; }
  17. /// <summary> 商品价格道具id(货币类型)+数量0=免费 </summary>
  18. public int[] Money { get; private set; }
  19. /// <summary> 商品道具id+数量 </summary>
  20. public int[] Goods { get; private set; }
  21. /// <summary> 限购类型1=每日限购2=每周限购3每个账号限购 </summary>
  22. public int NumberType { get; private set; }
  23. /// <summary> 限购次数0=没有购买次数限制 </summary>
  24. public int Number { get; private set; }
  25. void ISerializable.Deserialize(IReader reader)
  26. {
  27. Id = reader.ReadInt();
  28. Level = reader.ReadInt();
  29. Name = reader.ReadString();
  30. Money = reader.ReadEnumerable<int[]>();
  31. Goods = reader.ReadEnumerable<int[]>();
  32. NumberType = reader.ReadInt();
  33. Number = reader.ReadInt();
  34. }
  35. void ISerializable.Serialize(IWriter writer)
  36. {
  37. writer.Write(Id);
  38. writer.Write(Level);
  39. writer.Write(Name);
  40. writer.Write(Money);
  41. writer.Write(Goods);
  42. writer.Write(NumberType);
  43. writer.Write(Number);
  44. }
  45. }
  46. }