ChapterTable.cs 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  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; } // sc
  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; } // sc
  19. /// <summary> 调节系数 </summary>
  20. public int Power { get; private set; } // sc
  21. /// <summary> 地图 </summary>
  22. public int Map { get; private set; } // c
  23. /// <summary> 章节 </summary>
  24. public int Chapter { get; private set; } // sc
  25. /// <summary> 关卡 </summary>
  26. public int Section { get; private set; } // sc
  27. /// <summary> 节点 </summary>
  28. public int Part { get; private set; } // sc
  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; } // sc
  35. /// <summary> 第2波怪物ID,数量 </summary>
  36. public int[] Monster_refresh2 { get; private set; } // sc
  37. /// <summary> 第3波怪物ID,数量 </summary>
  38. public int[] Monster_refresh3 { get; private set; } // sc
  39. /// <summary> 第4波怪物ID,数量 </summary>
  40. public int[] Monster_refresh4 { get; private set; } // sc
  41. /// <summary> 第5波怪物ID,数量 </summary>
  42. public int[] Monster_refresh5 { get; private set; } // sc
  43. /// <summary> 关卡通关限时(单位:豪秒)-1:表现不限制 </summary>
  44. public int Time { get; private set; } // sc
  45. /// <summary> 在线奖励 </summary>
  46. public int[] Online_reward { get; private set; } // sc
  47. /// <summary> 离线奖励 </summary>
  48. public int[] Offline_reward { get; private set; } // sc
  49. void ISerializable.Deserialize(IReader reader)
  50. {
  51. Id = reader.ReadInt();
  52. Type = reader.ReadInt();
  53. Name = reader.ReadString();
  54. Level = reader.ReadInt();
  55. Power = reader.ReadInt();
  56. Map = reader.ReadInt();
  57. Chapter = reader.ReadInt();
  58. Section = reader.ReadInt();
  59. Part = reader.ReadInt();
  60. Part_type = reader.ReadInt();
  61. Interval = reader.ReadInt();
  62. Monster_refresh1 = reader.ReadEnumerable<int[]>();
  63. Monster_refresh2 = reader.ReadEnumerable<int[]>();
  64. Monster_refresh3 = reader.ReadEnumerable<int[]>();
  65. Monster_refresh4 = reader.ReadEnumerable<int[]>();
  66. Monster_refresh5 = reader.ReadEnumerable<int[]>();
  67. Time = reader.ReadInt();
  68. Online_reward = reader.ReadEnumerable<int[]>();
  69. Offline_reward = reader.ReadEnumerable<int[]>();
  70. }
  71. void ISerializable.Serialize(IWriter writer)
  72. {
  73. writer.Write(Id);
  74. writer.Write(Type);
  75. writer.Write(Name);
  76. writer.Write(Level);
  77. writer.Write(Power);
  78. writer.Write(Map);
  79. writer.Write(Chapter);
  80. writer.Write(Section);
  81. writer.Write(Part);
  82. writer.Write(Part_type);
  83. writer.Write(Interval);
  84. writer.Write(Monster_refresh1);
  85. writer.Write(Monster_refresh2);
  86. writer.Write(Monster_refresh3);
  87. writer.Write(Monster_refresh4);
  88. writer.Write(Monster_refresh5);
  89. writer.Write(Time);
  90. writer.Write(Online_reward);
  91. writer.Write(Offline_reward);
  92. }
  93. }
  94. }