mountBaseTable.cs 1.8 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> mountBase </summary>
  8. public sealed class mountBaseTable : ITable
  9. {
  10. long ITable.Key => Id;
  11. /// <summary> 坐骑ID30000+品质*100+序号 </summary>
  12. public int Id { get; private set; }
  13. /// <summary> 坐骑名称 </summary>
  14. public string Name { get; private set; } // c
  15. /// <summary> 1=普通2=高级 </summary>
  16. public int Type { get; private set; }
  17. /// <summary> 坐骑立绘 </summary>
  18. public string Picture { get; private set; } // c
  19. /// <summary> 坐骑待机 </summary>
  20. public string Spine { get; private set; } // c
  21. /// <summary> 坐骑头像 </summary>
  22. public string Icon { get; private set; } // c
  23. /// <summary> 品质 </summary>
  24. public int Quality { get; private set; } // c
  25. /// <summary> 坐骑解锁道具id,道具数量 </summary>
  26. public int[] Unlock { get; private set; }
  27. void ISerializable.Deserialize(IReader reader)
  28. {
  29. Id = reader.ReadInt();
  30. Name = reader.ReadString();
  31. Type = reader.ReadInt();
  32. Picture = reader.ReadString();
  33. Spine = reader.ReadString();
  34. Icon = reader.ReadString();
  35. Quality = reader.ReadInt();
  36. Unlock = reader.ReadEnumerable<int[]>();
  37. }
  38. void ISerializable.Serialize(IWriter writer)
  39. {
  40. writer.Write(Id);
  41. writer.Write(Name);
  42. writer.Write(Type);
  43. writer.Write(Picture);
  44. writer.Write(Spine);
  45. writer.Write(Icon);
  46. writer.Write(Quality);
  47. writer.Write(Unlock);
  48. }
  49. }
  50. }