fishingPierRewardTable.cs 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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> fishingPierReward </summary>
  8. public sealed class fishingPierRewardTable : ITable
  9. {
  10. long ITable.Key => Id;
  11. /// <summary> 捕鱼id </summary>
  12. public int Id { get; private set; }
  13. /// <summary> 渔网名字 </summary>
  14. public string Name { get; private set; }
  15. /// <summary> 捕鱼时长(s) </summary>
  16. public int RewardCd { get; private set; }
  17. /// <summary> 捕鱼奖励(道具id,道具数量) </summary>
  18. public int[] Reward { get; private set; }
  19. /// <summary> 捕鱼中状态 </summary>
  20. public string Immaturity { get; private set; }
  21. /// <summary> 捕鱼完状态 </summary>
  22. public string Status { get; private set; }
  23. /// <summary> 额外收获额外收获概率,额外收获数量 </summary>
  24. public int[] Mature { get; private set; }
  25. void ISerializable.Deserialize(IReader reader)
  26. {
  27. Id = reader.ReadInt();
  28. Name = reader.ReadString();
  29. RewardCd = reader.ReadInt();
  30. Reward = reader.ReadEnumerable<int[]>();
  31. Immaturity = reader.ReadString();
  32. Status = reader.ReadString();
  33. Mature = reader.ReadEnumerable<int[]>();
  34. }
  35. void ISerializable.Serialize(IWriter writer)
  36. {
  37. writer.Write(Id);
  38. writer.Write(Name);
  39. writer.Write(RewardCd);
  40. writer.Write(Reward);
  41. writer.Write(Immaturity);
  42. writer.Write(Status);
  43. writer.Write(Mature);
  44. }
  45. }
  46. }