zuoqiBaseTable.cs 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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> zuoqiBase </summary>
  8. public sealed class zuoqiBaseTable : ITable
  9. {
  10. long ITable.Key => Id;
  11. /// <summary> 坐骑ID </summary>
  12. public int Id { get; private set; }
  13. /// <summary> 坐骑名称 </summary>
  14. public string Name { get; private set; }
  15. /// <summary> 1=普通2=高级 </summary>
  16. public int Type { get; private set; }
  17. /// <summary> 坐骑立绘 </summary>
  18. public string Icon { get; private set; }
  19. /// <summary> 拥有坐骑属性属性id+属性数值 </summary>
  20. public int[] StarOwnAttr { get; private set; }
  21. /// <summary> 坐骑头像 </summary>
  22. public string Icon2 { get; private set; }
  23. void ISerializable.Deserialize(IReader reader)
  24. {
  25. Id = reader.ReadInt();
  26. Name = reader.ReadString();
  27. Type = reader.ReadInt();
  28. Icon = reader.ReadString();
  29. StarOwnAttr = reader.ReadEnumerable<int[]>();
  30. Icon2 = reader.ReadString();
  31. }
  32. void ISerializable.Serialize(IWriter writer)
  33. {
  34. writer.Write(Id);
  35. writer.Write(Name);
  36. writer.Write(Type);
  37. writer.Write(Icon);
  38. writer.Write(StarOwnAttr);
  39. writer.Write(Icon2);
  40. }
  41. }
  42. }