1234567891011121314151617181920212223242526272829 |
- #pragma once
- #include <boost/unordered_map.hpp>
- #include <vector>
- struct M_FaceCFGData
- {
- //ID
- int mID;
- //Ãû×Ö
- std::string mName;
- //·¾¶
- std::string mIcon;
- };
- class M_FaceCFG
- {
- public:
- private:
- static std::auto_ptr<M_FaceCFG> msSingleton;
- public:
- int GetCount();
- const M_FaceCFGData* GetData(int ID);
- boost::unordered_map<int, M_FaceCFGData>& GetMapData();
- void Reload();
- void Load(const std::string& path);
- void Load();
- static M_FaceCFG* GetSingleton();
- private:
- boost::unordered_map<int, M_FaceCFGData> mMapData;
- };
|