zuoqiInfoTable.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> zuoqiInfo </summary>
  8. public sealed class zuoqiInfoTable : 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 Zqid { 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 Picture { get; private set; }
  27. /// <summary> 坐骑头像 </summary>
  28. public string Icon { get; private set; }
  29. void ISerializable.Deserialize(IReader reader)
  30. {
  31. Id = reader.ReadInt();
  32. Zqid = 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. Picture = reader.ReadString();
  39. Icon = reader.ReadString();
  40. }
  41. void ISerializable.Serialize(IWriter writer)
  42. {
  43. writer.Write(Id);
  44. writer.Write(Zqid);
  45. writer.Write(Step);
  46. writer.Write(Star);
  47. writer.Write(StarNeed);
  48. writer.Write(StepOwnAttr);
  49. writer.Write(StarSkill);
  50. writer.Write(Picture);
  51. writer.Write(Icon);
  52. }
  53. }
  54. }