M_ActivityVIPCFG.h 766 B

1234567891011121314151617181920212223242526272829
  1. #pragma once
  2. #include <boost/unordered_map.hpp>
  3. #include <vector>
  4. struct M_ActivityVIPCFGData
  5. {
  6. //vip等级
  7. int mVipLv;
  8. //刮刮乐活动,普通场免费次数,收费抽奖次数;黄金场免费次数,收费抽奖次数,钻石场免费次数,收费抽奖次数
  9. std::vector<int> mActiviyScratchTicket;
  10. //春节冒险活动。免费游戏最大次数,免死最大次数
  11. std::vector<int> mActiviyAdventure;
  12. };
  13. class M_ActivityVIPCFG
  14. {
  15. public:
  16. private:
  17. static std::auto_ptr<M_ActivityVIPCFG> msSingleton;
  18. public:
  19. int GetCount();
  20. const M_ActivityVIPCFGData* GetData(int VipLv);
  21. boost::unordered_map<int, M_ActivityVIPCFGData>& GetMapData();
  22. void Reload();
  23. void Load(const std::string& path);
  24. void Load();
  25. static M_ActivityVIPCFG* GetSingleton();
  26. private:
  27. boost::unordered_map<int, M_ActivityVIPCFGData> mMapData;
  28. };