mountTrainTable.cs 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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> mountTrain </summary>
  8. public sealed class mountTrainTable : ITable
  9. {
  10. long ITable.Key => Id;
  11. /// <summary> 功能id部位*1000+部位等级 </summary>
  12. public int Id { get; private set; }
  13. /// <summary> 坐骑部位类型1=头部2=躯干3=尾部 </summary>
  14. public int Type { get; private set; }
  15. /// <summary> 部位等级 </summary>
  16. public int Level { get; private set; }
  17. /// <summary> 升级获得属性加成属性id,属性数值 </summary>
  18. public int[] LevelOwnAttr { get; private set; }
  19. void ISerializable.Deserialize(IReader reader)
  20. {
  21. Id = reader.ReadInt();
  22. Type = reader.ReadInt();
  23. Level = reader.ReadInt();
  24. LevelOwnAttr = reader.ReadEnumerable<int[]>();
  25. }
  26. void ISerializable.Serialize(IWriter writer)
  27. {
  28. writer.Write(Id);
  29. writer.Write(Type);
  30. writer.Write(Level);
  31. writer.Write(LevelOwnAttr);
  32. }
  33. }
  34. }