1234567891011121314151617181920212223242526272829303132333435 |
- #pragma once
- #include <boost/unordered_map.hpp>
- #include <vector>
- struct Fish_JumpCFGData
- {
- //key
- int mID;
- //ÀàÐÍ
- int mType;
- //Icon1
- std::string mͼ±ê1;
- //Icon2
- std::string mͼ±ê2;
- //Icon3
- std::string mͼ±ê3;
- //Icon4
- std::string mͼ±ê4;
- };
- class Fish_JumpCFG
- {
- public:
- private:
- static std::auto_ptr<Fish_JumpCFG> msSingleton;
- public:
- int GetCount();
- const Fish_JumpCFGData* GetData(int ID);
- boost::unordered_map<int, Fish_JumpCFGData>& GetMapData();
- void Reload();
- void Load(const std::string& path);
- void Load();
- static Fish_JumpCFG* GetSingleton();
- private:
- boost::unordered_map<int, Fish_JumpCFGData> mMapData;
- };
|