Fish_RedPackagelotteryCFG.h 689 B

12345678910111213141516171819202122232425262728293031
  1. #pragma once
  2. #include <boost/unordered_map.hpp>
  3. #include <vector>
  4. struct Fish_RedPackagelotteryCFGData
  5. {
  6. //긍뵀
  7. int mId;
  8. //븐관돛야
  9. int mRedPageItem;
  10. //븐관鑒좆(뇜鹿10)
  11. int mRedPageQuantity;
  12. //홈路
  13. int mWeight;
  14. };
  15. class Fish_RedPackagelotteryCFG
  16. {
  17. public:
  18. private:
  19. static std::auto_ptr<Fish_RedPackagelotteryCFG> msSingleton;
  20. public:
  21. int GetCount();
  22. const Fish_RedPackagelotteryCFGData* GetData(int Id);
  23. boost::unordered_map<int, Fish_RedPackagelotteryCFGData>& GetMapData();
  24. void Reload();
  25. void Load(const std::string& path);
  26. void Load();
  27. static Fish_RedPackagelotteryCFG* GetSingleton();
  28. private:
  29. boost::unordered_map<int, Fish_RedPackagelotteryCFGData> mMapData;
  30. };