JumpTable.cs 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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> Jump </summary>
  8. public sealed class JumpTable : ITable
  9. {
  10. long ITable.Key => Id;
  11. /// <summary> 跳转id </summary>
  12. public int Id { get; private set; } // c
  13. /// <summary> 前往跳转 </summary>
  14. public string UI { get; private set; } // c
  15. /// <summary> 系统名称 </summary>
  16. public string Name { get; private set; } // c
  17. /// <summary> 跳转描述 </summary>
  18. public string Desc { get; private set; } // c
  19. /// <summary> 透传参数 </summary>
  20. public int[] Param { get; private set; } // c
  21. void ISerializable.Deserialize(IReader reader)
  22. {
  23. Id = reader.ReadInt();
  24. UI = reader.ReadString();
  25. Name = reader.ReadString();
  26. Desc = reader.ReadString();
  27. Param = reader.ReadEnumerable<int[]>();
  28. }
  29. void ISerializable.Serialize(IWriter writer)
  30. {
  31. writer.Write(Id);
  32. writer.Write(UI);
  33. writer.Write(Name);
  34. writer.Write(Desc);
  35. writer.Write(Param);
  36. }
  37. }
  38. }