ChapterTable.cs 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  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> Chapter </summary>
  8. public sealed class ChapterTable : ITable
  9. {
  10. long ITable.Key => Id;
  11. /// <summary> ID10000000*关卡类型+章节*10000+关卡*100+节点 </summary>
  12. public int Id { get; private set; }
  13. /// <summary> 关卡类型1:常规关卡 </summary>
  14. public int Type { get; private set; } // c
  15. /// <summary> 关卡名称 </summary>
  16. public string Name { get; private set; } // c
  17. /// <summary> 等级 </summary>
  18. public int Level { get; private set; }
  19. /// <summary> 调节系数 </summary>
  20. public int Power { get; private set; }
  21. /// <summary> 地图 </summary>
  22. public int Map { get; private set; } // c
  23. /// <summary> 章节 </summary>
  24. public int Chapter { get; private set; }
  25. /// <summary> 关卡 </summary>
  26. public int Section { get; private set; }
  27. /// <summary> 节点 </summary>
  28. public int Part { get; private set; }
  29. /// <summary> 0:普通节点1:BOSS节点 </summary>
  30. public int Part_type { get; private set; } // c
  31. /// <summary> 每波出怪间隔(单位:豪秒) </summary>
  32. public int Interval { get; private set; } // c
  33. /// <summary> 第1波怪物ID,数量 </summary>
  34. public int[] Monster_refresh1 { get; private set; }
  35. /// <summary> 第2波怪物ID,数量 </summary>
  36. public int[] Monster_refresh2 { get; private set; }
  37. /// <summary> 第3波怪物ID,数量 </summary>
  38. public int[] Monster_refresh3 { get; private set; }
  39. /// <summary> 第4波怪物ID,数量 </summary>
  40. public int[] Monster_refresh4 { get; private set; }
  41. /// <summary> 第5波怪物ID,数量 </summary>
  42. public int[] Monster_refresh5 { get; private set; }
  43. /// <summary> 关卡通关限时(单位:豪秒)-1:表现不限制 </summary>
  44. public int Time { get; private set; }
  45. /// <summary> 在线奖励(道具id+道具数量+秒) </summary>
  46. public int[] Online_reward { get; private set; }
  47. /// <summary> 离线奖励(道具id+道具数量+秒) </summary>
  48. public int[] Offline_reward { get; private set; }
  49. /// <summary> 地图任务[任务ID,需求] </summary>
  50. public int[] Chapter_task { get; private set; }
  51. /// <summary> 地图奖励[道具ID,数量] </summary>
  52. public int[] Chapter_task_reward { get; private set; }
  53. /// <summary> 通关属性[属性ID,属性量] </summary>
  54. public int[] Chapter_power { get; private set; }
  55. void ISerializable.Deserialize(IReader reader)
  56. {
  57. Id = reader.ReadInt();
  58. Type = reader.ReadInt();
  59. Name = reader.ReadString();
  60. Level = reader.ReadInt();
  61. Power = reader.ReadInt();
  62. Map = reader.ReadInt();
  63. Chapter = reader.ReadInt();
  64. Section = reader.ReadInt();
  65. Part = reader.ReadInt();
  66. Part_type = reader.ReadInt();
  67. Interval = reader.ReadInt();
  68. Monster_refresh1 = reader.ReadEnumerable<int[]>();
  69. Monster_refresh2 = reader.ReadEnumerable<int[]>();
  70. Monster_refresh3 = reader.ReadEnumerable<int[]>();
  71. Monster_refresh4 = reader.ReadEnumerable<int[]>();
  72. Monster_refresh5 = reader.ReadEnumerable<int[]>();
  73. Time = reader.ReadInt();
  74. Online_reward = reader.ReadEnumerable<int[]>();
  75. Offline_reward = reader.ReadEnumerable<int[]>();
  76. Chapter_task = reader.ReadEnumerable<int[]>();
  77. Chapter_task_reward = reader.ReadEnumerable<int[]>();
  78. Chapter_power = reader.ReadEnumerable<int[]>();
  79. }
  80. void ISerializable.Serialize(IWriter writer)
  81. {
  82. writer.Write(Id);
  83. writer.Write(Type);
  84. writer.Write(Name);
  85. writer.Write(Level);
  86. writer.Write(Power);
  87. writer.Write(Map);
  88. writer.Write(Chapter);
  89. writer.Write(Section);
  90. writer.Write(Part);
  91. writer.Write(Part_type);
  92. writer.Write(Interval);
  93. writer.Write(Monster_refresh1);
  94. writer.Write(Monster_refresh2);
  95. writer.Write(Monster_refresh3);
  96. writer.Write(Monster_refresh4);
  97. writer.Write(Monster_refresh5);
  98. writer.Write(Time);
  99. writer.Write(Online_reward);
  100. writer.Write(Offline_reward);
  101. writer.Write(Chapter_task);
  102. writer.Write(Chapter_task_reward);
  103. writer.Write(Chapter_power);
  104. }
  105. }
  106. }