artifactInfoTable.cs 1.9 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> 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. void ISerializable.Deserialize(IReader reader)
  28. {
  29. Id = reader.ReadInt();
  30. Mbid = reader.ReadInt();
  31. Step = reader.ReadInt();
  32. Star = reader.ReadInt();
  33. StarNeed = reader.ReadEnumerable<int[]>();
  34. StepOwnAttr = reader.ReadEnumerable<int[]>();
  35. StarSkill = reader.ReadEnumerable<int[]>();
  36. Icon = reader.ReadString();
  37. }
  38. void ISerializable.Serialize(IWriter writer)
  39. {
  40. writer.Write(Id);
  41. writer.Write(Mbid);
  42. writer.Write(Step);
  43. writer.Write(Star);
  44. writer.Write(StarNeed);
  45. writer.Write(StepOwnAttr);
  46. writer.Write(StarSkill);
  47. writer.Write(Icon);
  48. }
  49. }
  50. }