SummonMwInfo.cs 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. using XGame.Database;
  2. using XGame.Framework.Interfaces;
  3. namespace FL.Data
  4. {
  5. public class SummonMwInfo
  6. {
  7. /// <summary>
  8. /// 当前保底次数
  9. /// </summary>
  10. public int Baodi;
  11. /// <summary>
  12. /// 保底类型
  13. /// 0小保底
  14. /// 1大保底
  15. /// </summary>
  16. public int Type;
  17. /// <summary>
  18. /// 今天看广告次数
  19. /// </summary>
  20. public int Kind11;
  21. /// <summary>
  22. /// 今日分享次数
  23. /// </summary>
  24. public int Share;
  25. /// <summary>
  26. /// 今日免费单抽抽奖次数
  27. /// </summary>
  28. public int FreeNum;
  29. public int FreeRemain => _drawTable.Freeware - FreeNum;
  30. /// <summary>
  31. /// 今日看广告剩余次数
  32. /// </summary>
  33. public int RemainKindCount => KindMax - Kind11;
  34. public int KindMax => _drawTable.AdNumber[0];
  35. public int RemainShareCount => ShareMax - Share;
  36. public int ShareMax => _drawTable.ShareNumber[0];
  37. public int OneCostId => _drawTable.Cost[1];
  38. public int OneCostNum => _drawTable.Cost[0];
  39. public int OneDrawNum => _drawTable.Cost[2];
  40. public int TenCostId => _drawTable.Cost[4];
  41. public int TenCostNum => _drawTable.Cost[3];
  42. public int TenDrawNum => _drawTable.Cost[5];
  43. public int BaodiSmallRemain => BaodiSmall - Baodi;
  44. public int BaodiBigRemain => BaodiBig - Baodi;
  45. public int BaodiSmall => _drawTable.Floors[0];
  46. public int BaodiBig => _drawTable.Floors[1];
  47. private raffleTable _drawTable;
  48. public SummonMwInfo()
  49. {
  50. _drawTable = raffleTableRepo.GetDrawInfoByType(2);
  51. }
  52. }
  53. }