12345678910111213141516171819202122232425262728293031 |
- #pragma once
- #include <boost/unordered_map.hpp>
- #include <vector>
- struct M_VipDescData
- {
- //编号
- int mID;
- //vip等级
- int mVipLevel;
- //是否新内容(1:是 0:不是)
- int mNewContent;
- //描述
- std::string mDesc;
- };
- class M_VipDesc
- {
- public:
- private:
- static std::auto_ptr<M_VipDesc> msSingleton;
- public:
- int GetCount();
- const M_VipDescData* GetData(int ID);
- boost::unordered_map<int, M_VipDescData>& GetMapData();
- void Reload();
- void Load(const std::string& path);
- void Load();
- static M_VipDesc* GetSingleton();
- private:
- boost::unordered_map<int, M_VipDescData> mMapData;
- };
|