JumpTable.cs 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  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. /// <summary> 对应功能ID </summary>
  25. public int FunctionId { get; private set; } // c
  26. void ISerializable.Deserialize(IReader reader)
  27. {
  28. Id = reader.ReadInt();
  29. UI = reader.ReadString();
  30. Name = reader.ReadString();
  31. Desc = reader.ReadString();
  32. Param = reader.ReadEnumerable<int[]>();
  33. Icon = reader.ReadString();
  34. Parent = reader.ReadInt();
  35. FunctionId = reader.ReadInt();
  36. }
  37. void ISerializable.Serialize(IWriter writer)
  38. {
  39. writer.Write(Id);
  40. writer.Write(UI);
  41. writer.Write(Name);
  42. writer.Write(Desc);
  43. writer.Write(Param);
  44. writer.Write(Icon);
  45. writer.Write(Parent);
  46. writer.Write(FunctionId);
  47. }
  48. }
  49. }