M_ActivityVipBagCFG.h 645 B

12345678910111213141516171819202122232425262728293031
  1. #pragma once
  2. #include <boost/unordered_map.hpp>
  3. #include <vector>
  4. struct M_ActivityVipBagCFGData
  5. {
  6. //񅧏
  7. int mID;
  8. //VIPµÈ¼¶
  9. int mVipLevel;
  10. //¹ºÂò´ÎÊý
  11. int mPurchaseCount;
  12. //Àñ°üid
  13. std::vector<int> mbagId;
  14. };
  15. class M_ActivityVipBagCFG
  16. {
  17. public:
  18. private:
  19. static std::auto_ptr<M_ActivityVipBagCFG> msSingleton;
  20. public:
  21. int GetCount();
  22. const M_ActivityVipBagCFGData* GetData(int ID);
  23. boost::unordered_map<int, M_ActivityVipBagCFGData>& GetMapData();
  24. void Reload();
  25. void Load(const std::string& path);
  26. void Load();
  27. static M_ActivityVipBagCFG* GetSingleton();
  28. private:
  29. boost::unordered_map<int, M_ActivityVipBagCFGData> mMapData;
  30. };