copyTable.cs 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  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> copy </summary>
  8. public sealed class copyTable : ITable
  9. {
  10. long ITable.Key => Kind;
  11. /// <summary> 副本种类 </summary>
  12. public int Kind { get; private set; }
  13. /// <summary> 副本名称 </summary>
  14. public string Name { get; private set; }
  15. /// <summary> 副本免费挑战次数 </summary>
  16. public int Number { get; private set; }
  17. /// <summary> 副本消耗门票1=门票2=每日次数 </summary>
  18. public int Type { get; private set; }
  19. /// <summary> 副本时长按照秒来计算 </summary>
  20. public int Time { get; private set; }
  21. /// <summary> 挑战加成开服天数+属性id+属性参数 </summary>
  22. public int[] Bonus { get; private set; }
  23. /// <summary> 副本参与人数 </summary>
  24. public int Toll { get; private set; }
  25. /// <summary> 广告获取门票次数 </summary>
  26. public int Ads { get; private set; }
  27. /// <summary> 门票上线 </summary>
  28. public int TicketLimit { get; private set; }
  29. /// <summary> 门票恢复时间(秒) </summary>
  30. public int RecoveryTime { get; private set; }
  31. void ISerializable.Deserialize(IReader reader)
  32. {
  33. Kind = reader.ReadInt();
  34. Name = reader.ReadString();
  35. Number = reader.ReadInt();
  36. Type = reader.ReadInt();
  37. Time = reader.ReadInt();
  38. Bonus = reader.ReadEnumerable<int[]>();
  39. Toll = reader.ReadInt();
  40. Ads = reader.ReadInt();
  41. TicketLimit = reader.ReadInt();
  42. RecoveryTime = reader.ReadInt();
  43. }
  44. void ISerializable.Serialize(IWriter writer)
  45. {
  46. writer.Write(Kind);
  47. writer.Write(Name);
  48. writer.Write(Number);
  49. writer.Write(Type);
  50. writer.Write(Time);
  51. writer.Write(Bonus);
  52. writer.Write(Toll);
  53. writer.Write(Ads);
  54. writer.Write(TicketLimit);
  55. writer.Write(RecoveryTime);
  56. }
  57. }
  58. }