arenaTable.cs 2.5 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> arena </summary>
  8. public sealed class arenaTable : ITable
  9. {
  10. long ITable.Key => Id;
  11. /// <summary> 功能ID </summary>
  12. public int Id { get; private set; }
  13. /// <summary> 挑战卷回复时间(分钟) </summary>
  14. public int Time { get; private set; }
  15. /// <summary> 挑战卷回复上限 </summary>
  16. public int Maximums { get; private set; }
  17. /// <summary> 挑战卷购买次数+消耗钻石消耗钻石数量 </summary>
  18. public int[] Purchase { get; private set; }
  19. /// <summary> 刷新消耗刷新次数+消耗钻石数量 </summary>
  20. public int[] Flushed { get; private set; }
  21. /// <summary> 积分<0%(高于%+获得积分加成%+扣除积分加成%) </summary>
  22. public int[] Higher { get; private set; }
  23. /// <summary> 积分>0%(低于%+获得积分加成+扣除积分加成) </summary>
  24. public int[] Below { get; private set; }
  25. /// <summary> 基础积分 </summary>
  26. public int Basis { get; private set; }
  27. /// <summary> 挑战成功奖励道具id+数量 </summary>
  28. public int[] Rewardwin { get; private set; }
  29. /// <summary> 挑战失败奖励道具id+数量 </summary>
  30. public int[] Rewardlose { get; private set; }
  31. void ISerializable.Deserialize(IReader reader)
  32. {
  33. Id = reader.ReadInt();
  34. Time = reader.ReadInt();
  35. Maximums = reader.ReadInt();
  36. Purchase = reader.ReadEnumerable<int[]>();
  37. Flushed = reader.ReadEnumerable<int[]>();
  38. Higher = reader.ReadEnumerable<int[]>();
  39. Below = reader.ReadEnumerable<int[]>();
  40. Basis = reader.ReadInt();
  41. Rewardwin = reader.ReadEnumerable<int[]>();
  42. Rewardlose = reader.ReadEnumerable<int[]>();
  43. }
  44. void ISerializable.Serialize(IWriter writer)
  45. {
  46. writer.Write(Id);
  47. writer.Write(Time);
  48. writer.Write(Maximums);
  49. writer.Write(Purchase);
  50. writer.Write(Flushed);
  51. writer.Write(Higher);
  52. writer.Write(Below);
  53. writer.Write(Basis);
  54. writer.Write(Rewardwin);
  55. writer.Write(Rewardlose);
  56. }
  57. }
  58. }