artifactInfoTable.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> artifactInfo </summary>
  8. public sealed class artifactInfoTable : ITable
  9. {
  10. long ITable.Key => Id;
  11. /// <summary> 序号ID秘宝id*10000+阶级*100+星级 </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 Step { get; private set; }
  17. /// <summary> 星级 </summary>
  18. public int Star { get; private set; }
  19. /// <summary> 升星道具道具id+升级经验值 </summary>
  20. public int[] StarNeed { get; private set; }
  21. /// <summary> 升级获得属性加成属性id+属性数值 </summary>
  22. public int[] StepOwnAttr { get; private set; }
  23. /// <summary> 秘宝拥有技能[属性id+数值] </summary>
  24. public int[] StarSkill { get; private set; }
  25. /// <summary> 立绘 </summary>
  26. public string Icon { get; private set; }
  27. /// <summary> 秘宝待机 </summary>
  28. public string Spine { get; private set; } // c
  29. void ISerializable.Deserialize(IReader reader)
  30. {
  31. Id = reader.ReadInt();
  32. Mbid = reader.ReadInt();
  33. Step = reader.ReadInt();
  34. Star = reader.ReadInt();
  35. StarNeed = reader.ReadEnumerable<int[]>();
  36. StepOwnAttr = reader.ReadEnumerable<int[]>();
  37. StarSkill = reader.ReadEnumerable<int[]>();
  38. Icon = reader.ReadString();
  39. Spine = reader.ReadString();
  40. }
  41. void ISerializable.Serialize(IWriter writer)
  42. {
  43. writer.Write(Id);
  44. writer.Write(Mbid);
  45. writer.Write(Step);
  46. writer.Write(Star);
  47. writer.Write(StarNeed);
  48. writer.Write(StepOwnAttr);
  49. writer.Write(StarSkill);
  50. writer.Write(Icon);
  51. writer.Write(Spine);
  52. }
  53. }
  54. }