123456789101112131415161718192021222324252627282930313233 |
- #pragma once
- #include <boost/unordered_map.hpp>
- #include <vector>
- struct M_HeadData
- {
- //ID
- int mID;
- //膠틔ID
- int mItemID;
- //돛야잚謹
- int mType;
- //Vip된섬삿혤
- int mVipGet;
- //삿혤쨌쓺
- int mRoute;
- };
- class M_Head
- {
- public:
- private:
- static std::auto_ptr<M_Head> msSingleton;
- public:
- int GetCount();
- const M_HeadData* GetData(int ID);
- boost::unordered_map<int, M_HeadData>& GetMapData();
- void Reload();
- void Load(const std::string& path);
- void Load();
- static M_Head* GetSingleton();
- private:
- boost::unordered_map<int, M_HeadData> mMapData;
- };
|