copyTable.cs 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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. void ISerializable.Deserialize(IReader reader)
  28. {
  29. Kind = reader.ReadInt();
  30. Name = reader.ReadString();
  31. Number = reader.ReadInt();
  32. Type = reader.ReadInt();
  33. Time = reader.ReadInt();
  34. Bonus = reader.ReadEnumerable<int[]>();
  35. Toll = reader.ReadInt();
  36. Ads = reader.ReadInt();
  37. }
  38. void ISerializable.Serialize(IWriter writer)
  39. {
  40. writer.Write(Kind);
  41. writer.Write(Name);
  42. writer.Write(Number);
  43. writer.Write(Type);
  44. writer.Write(Time);
  45. writer.Write(Bonus);
  46. writer.Write(Toll);
  47. writer.Write(Ads);
  48. }
  49. }
  50. }