12345678910111213141516171819202122232425262728293031 |
- #pragma once
- #include <boost/unordered_map.hpp>
- #include <vector>
- struct M_fish_schemeData
- {
- //ID
- int mID;
- //¹ÖÎïID
- int mmonster_id;
- //ÓãÕó·½°¸×é
- int mfish_group;
- //ÊýÁ¿
- int mnum;
- };
- class M_fish_scheme
- {
- public:
- private:
- static std::auto_ptr<M_fish_scheme> msSingleton;
- public:
- int GetCount();
- const M_fish_schemeData* GetData(int ID);
- boost::unordered_map<int, M_fish_schemeData>& GetMapData();
- void Reload();
- void Load(const std::string& path);
- void Load();
- static M_fish_scheme* GetSingleton();
- private:
- boost::unordered_map<int, M_fish_schemeData> mMapData;
- };
|