12345678910111213141516171819202122232425262728293031 |
- #pragma once
- #include <boost/unordered_map.hpp>
- #include <vector>
- struct Fish_RedPackagelotteryCFGData
- {
- //긍뵀
- int mId;
- //븐관돛야
- int mRedPageItem;
- //븐관鑒좆(뇜鹿10)
- int mRedPageQuantity;
- //홈路
- int mWeight;
- };
- class Fish_RedPackagelotteryCFG
- {
- public:
- private:
- static std::auto_ptr<Fish_RedPackagelotteryCFG> msSingleton;
- public:
- int GetCount();
- const Fish_RedPackagelotteryCFGData* GetData(int Id);
- boost::unordered_map<int, Fish_RedPackagelotteryCFGData>& GetMapData();
- void Reload();
- void Load(const std::string& path);
- void Load();
- static Fish_RedPackagelotteryCFG* GetSingleton();
- private:
- boost::unordered_map<int, Fish_RedPackagelotteryCFGData> mMapData;
- };
|