M_ActivityFeedBackGiftCFG.h 815 B

1234567891011121314151617181920212223242526272829303132333435
  1. #pragma once
  2. #include <boost/unordered_map.hpp>
  3. #include <vector>
  4. struct M_ActivityFeedBackGiftCFGData
  5. {
  6. //vip된섬
  7. int mVipLv;
  8. //도貫1띨棍쉽쟨
  9. std::vector<int> mGear1;
  10. //도貫2띨棍쉽쟨
  11. std::vector<int> mGear2;
  12. //도貫3띨棍쉽쟨
  13. std::vector<int> mGear3;
  14. //도貫4띨棍쉽쟨
  15. std::vector<int> mGear4;
  16. //도貫5띨棍쉽쟨
  17. std::vector<int> mGear5;
  18. };
  19. class M_ActivityFeedBackGiftCFG
  20. {
  21. public:
  22. private:
  23. static std::auto_ptr<M_ActivityFeedBackGiftCFG> msSingleton;
  24. public:
  25. int GetCount();
  26. const M_ActivityFeedBackGiftCFGData* GetData(int VipLv);
  27. boost::unordered_map<int, M_ActivityFeedBackGiftCFGData>& GetMapData();
  28. void Reload();
  29. void Load(const std::string& path);
  30. void Load();
  31. static M_ActivityFeedBackGiftCFG* GetSingleton();
  32. private:
  33. boost::unordered_map<int, M_ActivityFeedBackGiftCFGData> mMapData;
  34. };