12345678910111213141516171819202122232425262728293031 |
- #pragma once
- #include <boost/unordered_map.hpp>
- #include <vector>
- struct M_ThirdPluginCFGData
- {
- //혠돛뵀
- std::string mChannelID;
- //틱憩
- std::string mPlatform;
- //신굶쨌쓺
- std::string mLuaFilePath;
- //구鬧
- std::string mRemark;
- };
- class M_ThirdPluginCFG
- {
- public:
- private:
- static std::auto_ptr<M_ThirdPluginCFG> msSingleton;
- public:
- int GetCount();
- const M_ThirdPluginCFGData* GetData(std::string ChannelID);
- boost::unordered_map<std::string, M_ThirdPluginCFGData>& GetMapData();
- void Reload();
- void Load(const std::string& path);
- void Load();
- static M_ThirdPluginCFG* GetSingleton();
- private:
- boost::unordered_map<std::string, M_ThirdPluginCFGData> mMapData;
- };
|