12345678910111213141516171819202122232425262728293031 |
- #pragma once
- #include <boost/unordered_map.hpp>
- #include <vector>
- struct M_WXYaoQingCFGData
- {
- //编号
- int mID;
- //邀请描述
- std::string mDesInvitation;
- //完成人数
- int mNumberCompleted;
- //奖励
- std::vector<int> mWard;
- };
- class M_WXYaoQingCFG
- {
- public:
- private:
- static std::auto_ptr<M_WXYaoQingCFG> msSingleton;
- public:
- int GetCount();
- const M_WXYaoQingCFGData* GetData(int ID);
- boost::unordered_map<int, M_WXYaoQingCFGData>& GetMapData();
- void Reload();
- void Load(const std::string& path);
- void Load();
- static M_WXYaoQingCFG* GetSingleton();
- private:
- boost::unordered_map<int, M_WXYaoQingCFGData> mMapData;
- };
|