mountStarTable.cs 1.7 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> mountStar </summary>
  8. public sealed class mountStarTable : ITable
  9. {
  10. long ITable.Key => Id;
  11. /// <summary> id100*坐骑id+星级 </summary>
  12. public int Id { get; private set; }
  13. /// <summary> 坐骑id </summary>
  14. public int MountId { get; private set; }
  15. /// <summary> 星级 </summary>
  16. public int Star { 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. MountId = reader.ReadInt();
  29. Star = 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(MountId);
  39. writer.Write(Star);
  40. writer.Write(StarUpCost);
  41. writer.Write(LevelOwnAttr);
  42. writer.Write(StarSkill);
  43. writer.Write(Preview);
  44. }
  45. }
  46. }