artifactStarTable.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> artifactStar </summary>
  8. public sealed class artifactStarTable : ITable
  9. {
  10. long ITable.Key => Id;
  11. /// <summary> id10000*秘宝id+等级 </summary>
  12. public int Id { get; private set; }
  13. /// <summary> 秘宝id </summary>
  14. public int Mbid { get; private set; }
  15. /// <summary> 等级 </summary>
  16. public int Level { get; private set; }
  17. /// <summary> 升星道具道具id+升星所需数量 </summary>
  18. public int[] StarUpCost { get; private set; }
  19. /// <summary> 升星获得属性加成(拥有效果)属性id+属性数值 </summary>
  20. public int[] LevelOwnAttr { get; private set; }
  21. /// <summary> 额外秘宝技能(穿戴效果)技能id </summary>
  22. public int StarSkill { get; private set; }
  23. /// <summary> 升星预览1=展示额外技能效果属性不配置=不展示 </summary>
  24. public int Preview { get; private set; } // c
  25. void ISerializable.Deserialize(IReader reader)
  26. {
  27. Id = reader.ReadInt();
  28. Mbid = reader.ReadInt();
  29. Level = reader.ReadInt();
  30. StarUpCost = reader.ReadEnumerable<int[]>();
  31. LevelOwnAttr = reader.ReadEnumerable<int[]>();
  32. StarSkill = reader.ReadInt();
  33. Preview = reader.ReadInt();
  34. }
  35. void ISerializable.Serialize(IWriter writer)
  36. {
  37. writer.Write(Id);
  38. writer.Write(Mbid);
  39. writer.Write(Level);
  40. writer.Write(StarUpCost);
  41. writer.Write(LevelOwnAttr);
  42. writer.Write(StarSkill);
  43. writer.Write(Preview);
  44. }
  45. }
  46. }