guildTaskTable.cs 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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> guildTask </summary>
  8. public sealed class guildTaskTable : ITable
  9. {
  10. long ITable.Key => Id;
  11. /// <summary> 功能idid*1000+任务等级*100+圣兵品质*10 </summary>
  12. public int Id { get; private set; }
  13. /// <summary> 任务名称 </summary>
  14. public string Name { get; private set; }
  15. /// <summary> 任务等级 </summary>
  16. public int Level { get; private set; }
  17. /// <summary> 任务奖励道具id+数量 </summary>
  18. public int[] TaskReward { get; private set; }
  19. /// <summary> 派遣圣兵数量 </summary>
  20. public int Number { get; private set; }
  21. /// <summary> 派遣圣兵品质2:绿3:蓝4:紫6:橙7:红9:彩11:鎏金12:炫彩 </summary>
  22. public int Quality { get; private set; }
  23. /// <summary> 派遣奖励道具id+数量 </summary>
  24. public int[] Reward2 { get; private set; }
  25. /// <summary> 任务完成时间毫秒 </summary>
  26. public int Time { get; private set; }
  27. /// <summary> 接取任务权重 </summary>
  28. public int Odds { get; private set; }
  29. void ISerializable.Deserialize(IReader reader)
  30. {
  31. Id = reader.ReadInt();
  32. Name = reader.ReadString();
  33. Level = reader.ReadInt();
  34. TaskReward = reader.ReadEnumerable<int[]>();
  35. Number = reader.ReadInt();
  36. Quality = reader.ReadInt();
  37. Reward2 = reader.ReadEnumerable<int[]>();
  38. Time = reader.ReadInt();
  39. Odds = reader.ReadInt();
  40. }
  41. void ISerializable.Serialize(IWriter writer)
  42. {
  43. writer.Write(Id);
  44. writer.Write(Name);
  45. writer.Write(Level);
  46. writer.Write(TaskReward);
  47. writer.Write(Number);
  48. writer.Write(Quality);
  49. writer.Write(Reward2);
  50. writer.Write(Time);
  51. writer.Write(Odds);
  52. }
  53. }
  54. }