mountLevelTable.cs 2.0 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> mountLevel </summary>
  8. public sealed class mountLevelTable : ITable
  9. {
  10. long ITable.Key => Id;
  11. /// <summary> 序号ID10000+阶级*100+阶段等级 </summary>
  12. public int Id { get; private set; }
  13. /// <summary> 阶级 </summary>
  14. public int Step { get; private set; }
  15. /// <summary> 阶段等级 </summary>
  16. public int Level { get; private set; }
  17. /// <summary> 升级消耗道具id,经验值消耗 </summary>
  18. public int[] Cost { get; private set; }
  19. /// <summary> 升级属性属性id,属性数值 </summary>
  20. public int[] LevelAttr { get; private set; }
  21. /// <summary> 升阶属性[属性id,数值] </summary>
  22. public int[] StepAttr { get; private set; }
  23. /// <summary> 立绘 </summary>
  24. public string Picture { get; private set; } // c
  25. /// <summary> 坐骑头像 </summary>
  26. public string Icon { get; private set; } // c
  27. /// <summary> 坐骑待机 </summary>
  28. public string Spine { get; private set; } // c
  29. void ISerializable.Deserialize(IReader reader)
  30. {
  31. Id = reader.ReadInt();
  32. Step = reader.ReadInt();
  33. Level = reader.ReadInt();
  34. Cost = reader.ReadEnumerable<int[]>();
  35. LevelAttr = reader.ReadEnumerable<int[]>();
  36. StepAttr = reader.ReadEnumerable<int[]>();
  37. Picture = reader.ReadString();
  38. Icon = reader.ReadString();
  39. Spine = reader.ReadString();
  40. }
  41. void ISerializable.Serialize(IWriter writer)
  42. {
  43. writer.Write(Id);
  44. writer.Write(Step);
  45. writer.Write(Level);
  46. writer.Write(Cost);
  47. writer.Write(LevelAttr);
  48. writer.Write(StepAttr);
  49. writer.Write(Picture);
  50. writer.Write(Icon);
  51. writer.Write(Spine);
  52. }
  53. }
  54. }