JumpTable.cs 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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. public string Icon { get; private set; } // c
  22. /// <summary> 前置ID,需要先打开前置UI才能打开当前指定UI </summary>
  23. public int Parent { get; private set; } // c
  24. void ISerializable.Deserialize(IReader reader)
  25. {
  26. Id = reader.ReadInt();
  27. UI = reader.ReadString();
  28. Name = reader.ReadString();
  29. Desc = reader.ReadString();
  30. Param = reader.ReadEnumerable<int[]>();
  31. Icon = reader.ReadString();
  32. Parent = reader.ReadInt();
  33. }
  34. void ISerializable.Serialize(IWriter writer)
  35. {
  36. writer.Write(Id);
  37. writer.Write(UI);
  38. writer.Write(Name);
  39. writer.Write(Desc);
  40. writer.Write(Param);
  41. writer.Write(Icon);
  42. writer.Write(Parent);
  43. }
  44. }
  45. }