123456789101112131415161718192021222324252627282930313233 |
- #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;
- //击杀次数
- std::vector<int> mkill_count;
- };
- 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;
- };
|