drawTable.cs 2.0 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> draw </summary>
  8. public sealed class drawTable : ITable
  9. {
  10. long ITable.Key => Id;
  11. /// <summary> 功能id1000*抽奖类型+1 </summary>
  12. public int Id { get; private set; }
  13. /// <summary> 抽奖类型1=圣兵2=铭文 </summary>
  14. public int Type { get; private set; }
  15. /// <summary> 抽奖消耗抽奖消耗+抽奖道具+抽奖次数 </summary>
  16. public int[] Cost { get; private set; }
  17. /// <summary> 抽奖保底次数小保底次数+大保底次数0=没有保底机制 </summary>
  18. public int[] Floors { get; private set; }
  19. /// <summary> 抽奖经验 </summary>
  20. public int CallExp { get; private set; }
  21. /// <summary> 每日广告每日广告次数+抽奖次数 </summary>
  22. public int[] AdNumber { get; private set; }
  23. /// <summary> 每日分享每日分享次数+道县id+道具数量 </summary>
  24. public int[] ShareNumber { get; private set; }
  25. /// <summary> 免费抽奖次数 </summary>
  26. public int Freeware { get; private set; }
  27. void ISerializable.Deserialize(IReader reader)
  28. {
  29. Id = reader.ReadInt();
  30. Type = reader.ReadInt();
  31. Cost = reader.ReadEnumerable<int[]>();
  32. Floors = reader.ReadEnumerable<int[]>();
  33. CallExp = reader.ReadInt();
  34. AdNumber = reader.ReadEnumerable<int[]>();
  35. ShareNumber = reader.ReadEnumerable<int[]>();
  36. Freeware = reader.ReadInt();
  37. }
  38. void ISerializable.Serialize(IWriter writer)
  39. {
  40. writer.Write(Id);
  41. writer.Write(Type);
  42. writer.Write(Cost);
  43. writer.Write(Floors);
  44. writer.Write(CallExp);
  45. writer.Write(AdNumber);
  46. writer.Write(ShareNumber);
  47. writer.Write(Freeware);
  48. }
  49. }
  50. }