SummonSbInfo.cs 1.6 KB

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