M_VIPProfitCFG.h 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. #pragma once
  2. #include <map>
  3. struct M_VIPProfitCFGData
  4. {
  5. //vip等级
  6. int mVipLv;
  7. //升级所需经验
  8. int mVipExp;
  9. //领取在线奖励次数
  10. int mOnlineReward;
  11. //每日送龙珠上限
  12. int mMaxGiftslimit;
  13. //解锁礼物
  14. std::vector<std::string> mGiftUnlock;
  15. //房间解锁
  16. std::vector<std::string> mRoomUnlock;
  17. //捕鱼功能解锁
  18. std::vector<std::string> mFishItemUnlock;
  19. //尊贵VIP标志
  20. int mVipName;
  21. //每天赠送礼券
  22. int mGiveTicket;
  23. //签到额外奖励
  24. int mAttendance;
  25. //每日抽奖次数上限
  26. int mDailyLottery;
  27. //破产礼包配置
  28. int mBrokenGift;
  29. //破产救济金
  30. int mBankruptcyRelief;
  31. //金币不足补齐
  32. int mTodayMaxGold;
  33. //专有火炮
  34. int mPropGun;
  35. //火炮名字
  36. std::string mPropGunName;
  37. //炮图片名称
  38. std::string mPropGunNameImg;
  39. //火炮图标
  40. std::string mPropGunIcon;
  41. //是否可抽
  42. std::vector<int> mCanStar;
  43. //是否必中
  44. std::vector<int> mStarFixed;
  45. //每天购买材料礼包的上限
  46. int mBuyMaterialsGiftLimit;
  47. //购买次数限制的周礼包
  48. int mBuyWeekLimit;
  49. //礼包商店显示ID顺序
  50. std::vector<int> mBagShopSort;
  51. //金币商店显示ID顺序
  52. std::vector<int> mGoldShopSort;
  53. //钻石商店显示ID顺序
  54. std::vector<int> mGemShopSort;
  55. //竞技场炮台加成系数(仅显示)
  56. int mTurretAddRate;
  57. //魔石兑换次数
  58. int mSquamaExchange;
  59. //发布空投次数
  60. int mAirDropsNumber;
  61. //在线领取倍数
  62. float mOnlineRewardMultiples;
  63. //聚宝金龟场游玩时间/s
  64. int mGoldenTurtleTime;
  65. //充值金币额外赠送
  66. int mRechargeGoldRewardEx;
  67. //vip大奖显示
  68. std::vector<int> mDisplayVipReward1;
  69. //vip大奖
  70. std::vector<int> mVipReward1;
  71. //vip奖显示
  72. std::vector<int> mDisplayVipReward2;
  73. //竞技场vip加成
  74. int mArenaUp;
  75. //VIP每日兑换话费券
  76. int mVipMoney;
  77. //vip奖励
  78. std::vector<int> mVipReward2;
  79. //个人池返还(百分比)
  80. int mPersonalPoolRebate;
  81. };
  82. class M_VIPProfitCFG
  83. {
  84. public:
  85. private:
  86. static std::auto_ptr<M_VIPProfitCFG> msSingleton;
  87. public:
  88. int GetCount();
  89. const M_VIPProfitCFGData* GetData(int VipLv);
  90. const std::map<int, M_VIPProfitCFGData>& GetMapData();
  91. void Load();
  92. void LoadLua();
  93. void Reload();
  94. static M_VIPProfitCFG* GetSingleton();
  95. static void Release();
  96. private:
  97. std::map<int, M_VIPProfitCFGData> mMapData;
  98. };