epigraphDrawTable.cs 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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> epigraphDraw </summary>
  8. public sealed class epigraphDrawTable : ITable
  9. {
  10. long ITable.Key => Id;
  11. /// <summary> 宝箱等级 </summary>
  12. public int Id { get; private set; }
  13. /// <summary> 奖池(道具id)道具id+道具数量+道具权重(万) </summary>
  14. public int[] Reward { get; private set; }
  15. /// <summary> 升级经验 </summary>
  16. public int NeedExp { get; private set; }
  17. /// <summary> 保底奖励道具id+道具数量+道具权重(万) </summary>
  18. public int[] FloorsReward { get; private set; }
  19. /// <summary> 保底奖励道具id+道具数量+道具权重(万) </summary>
  20. public int[] FloorsReward2 { get; private set; }
  21. void ISerializable.Deserialize(IReader reader)
  22. {
  23. Id = reader.ReadInt();
  24. Reward = reader.ReadEnumerable<int[]>();
  25. NeedExp = reader.ReadInt();
  26. FloorsReward = reader.ReadEnumerable<int[]>();
  27. FloorsReward2 = reader.ReadEnumerable<int[]>();
  28. }
  29. void ISerializable.Serialize(IWriter writer)
  30. {
  31. writer.Write(Id);
  32. writer.Write(Reward);
  33. writer.Write(NeedExp);
  34. writer.Write(FloorsReward);
  35. writer.Write(FloorsReward2);
  36. }
  37. }
  38. }