12345678910111213141516171819202122232425262728293031 |
- #pragma once
- #include <boost/unordered_map.hpp>
- #include <vector>
- struct M_LuckTurnCFGData
- {
- //񅧏
- int mID;
- //µÀ¾ß
- int mItem;
- //ÊýÁ¿
- int mCount;
- //È¨ÖØ
- int mWeight;
- };
- class M_LuckTurnCFG
- {
- public:
- private:
- static std::auto_ptr<M_LuckTurnCFG> msSingleton;
- public:
- int GetCount();
- const M_LuckTurnCFGData* GetData(int ID);
- boost::unordered_map<int, M_LuckTurnCFGData>& GetMapData();
- void Reload();
- void Load(const std::string& path);
- void Load();
- static M_LuckTurnCFG* GetSingleton();
- private:
- boost::unordered_map<int, M_LuckTurnCFGData> mMapData;
- };
|