artifactBaseTable.cs 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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> artifactBase </summary>
  8. public sealed class artifactBaseTable : ITable
  9. {
  10. long ITable.Key => Id;
  11. /// <summary> 秘宝ID </summary>
  12. public int Id { get; private set; }
  13. /// <summary> 秘宝名称 </summary>
  14. public string Name { get; private set; }
  15. /// <summary> 1=普通2=高级 </summary>
  16. public int Type { get; private set; }
  17. /// <summary> 秘宝立绘 </summary>
  18. public string Picture { get; private set; } // c
  19. /// <summary> 拥有秘宝属性属性id+属性数值 </summary>
  20. public int[] StarOwnAttr { get; private set; }
  21. /// <summary> 秘宝头像 </summary>
  22. public string Icon { get; private set; } // c
  23. /// <summary> 秘宝待机 </summary>
  24. public string Spine { get; private set; } // c
  25. /// <summary> 神器解锁道具id+道具数量 </summary>
  26. public int[] Unlock { get; private set; }
  27. /// <summary> 品质 </summary>
  28. public int Quality { get; private set; } // c
  29. void ISerializable.Deserialize(IReader reader)
  30. {
  31. Id = reader.ReadInt();
  32. Name = reader.ReadString();
  33. Type = reader.ReadInt();
  34. Picture = reader.ReadString();
  35. StarOwnAttr = reader.ReadEnumerable<int[]>();
  36. Icon = reader.ReadString();
  37. Spine = reader.ReadString();
  38. Unlock = reader.ReadEnumerable<int[]>();
  39. Quality = reader.ReadInt();
  40. }
  41. void ISerializable.Serialize(IWriter writer)
  42. {
  43. writer.Write(Id);
  44. writer.Write(Name);
  45. writer.Write(Type);
  46. writer.Write(Picture);
  47. writer.Write(StarOwnAttr);
  48. writer.Write(Icon);
  49. writer.Write(Spine);
  50. writer.Write(Unlock);
  51. writer.Write(Quality);
  52. }
  53. }
  54. }