guildShopTable.cs 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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> 商品类型1=商店售卖2=每日签到 </summary>
  16. public int Type { get; private set; }
  17. /// <summary> 商品名称 </summary>
  18. public string Name { get; private set; }
  19. /// <summary> 商品价格道具id(货币类型)+数量0=免费 </summary>
  20. public int[] Money { get; private set; }
  21. /// <summary> 商品道具id+数量 </summary>
  22. public int[] Goods { get; private set; }
  23. /// <summary> 限购类型1=每日限购2=每周限购3每个账号限购 </summary>
  24. public int NumberType { get; private set; }
  25. /// <summary> 限购次数0=没有购买次数限制 </summary>
  26. public int Number { get; private set; }
  27. void ISerializable.Deserialize(IReader reader)
  28. {
  29. Id = reader.ReadInt();
  30. Level = reader.ReadInt();
  31. Type = reader.ReadInt();
  32. Name = reader.ReadString();
  33. Money = reader.ReadEnumerable<int[]>();
  34. Goods = reader.ReadEnumerable<int[]>();
  35. NumberType = reader.ReadInt();
  36. Number = reader.ReadInt();
  37. }
  38. void ISerializable.Serialize(IWriter writer)
  39. {
  40. writer.Write(Id);
  41. writer.Write(Level);
  42. writer.Write(Type);
  43. writer.Write(Name);
  44. writer.Write(Money);
  45. writer.Write(Goods);
  46. writer.Write(NumberType);
  47. writer.Write(Number);
  48. }
  49. }
  50. }