callTable.cs 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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> call </summary>
  8. public sealed class callTable : 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> 抽奖保底次数达到次数后获得保底奖励 </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. void ISerializable.Deserialize(IReader reader)
  26. {
  27. Id = reader.ReadInt();
  28. Type = reader.ReadInt();
  29. Cost = reader.ReadEnumerable<int[]>();
  30. Floors = reader.ReadInt();
  31. CallExp = reader.ReadInt();
  32. AdNumber = reader.ReadEnumerable<int[]>();
  33. ShareNumber = reader.ReadEnumerable<int[]>();
  34. }
  35. void ISerializable.Serialize(IWriter writer)
  36. {
  37. writer.Write(Id);
  38. writer.Write(Type);
  39. writer.Write(Cost);
  40. writer.Write(Floors);
  41. writer.Write(CallExp);
  42. writer.Write(AdNumber);
  43. writer.Write(ShareNumber);
  44. }
  45. }
  46. }