chapterTaskTable.cs 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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> chapterTask </summary>
  8. public sealed class chapterTaskTable : ITable
  9. {
  10. long ITable.Key => Id;
  11. /// <summary> ID任务组*10+任务序号 </summary>
  12. public int Id { get; private set; }
  13. /// <summary> 任务组顺序 </summary>
  14. public int Task_group { get; private set; }
  15. /// <summary> 任务区域 </summary>
  16. public int[] Unlock_section { get; private set; }
  17. /// <summary> 地图任务[任务ID,需求] </summary>
  18. public int[] Chapter_task { get; private set; }
  19. /// <summary> 地图任务奖励[道具ID,数量] </summary>
  20. public int[] Chapter_task_reward { get; private set; }
  21. /// <summary> 通关属性[属性ID,属性量] </summary>
  22. public int[] Chapter_power { get; private set; }
  23. void ISerializable.Deserialize(IReader reader)
  24. {
  25. Id = reader.ReadInt();
  26. Task_group = reader.ReadInt();
  27. Unlock_section = reader.ReadEnumerable<int[]>();
  28. Chapter_task = reader.ReadEnumerable<int[]>();
  29. Chapter_task_reward = reader.ReadEnumerable<int[]>();
  30. Chapter_power = reader.ReadEnumerable<int[]>();
  31. }
  32. void ISerializable.Serialize(IWriter writer)
  33. {
  34. writer.Write(Id);
  35. writer.Write(Task_group);
  36. writer.Write(Unlock_section);
  37. writer.Write(Chapter_task);
  38. writer.Write(Chapter_task_reward);
  39. writer.Write(Chapter_power);
  40. }
  41. }
  42. }