1234567891011121314151617181920212223242526272829303132333435 |
- #pragma once
- #include <boost/unordered_map.hpp>
- #include <vector>
- struct Fish_RedJumpCFGData
- {
- //编号
- int mID;
- //Room顺序
- int mRoomOrder;
- //对应场次id
- int mRoomId;
- //前往标题
- std::string mTitle;
- //前往图片
- std::string mResources;
- //前往描述
- std::string mDesc;
- };
- class Fish_RedJumpCFG
- {
- public:
- private:
- static std::auto_ptr<Fish_RedJumpCFG> msSingleton;
- public:
- int GetCount();
- const Fish_RedJumpCFGData* GetData(int ID);
- boost::unordered_map<int, Fish_RedJumpCFGData>& GetMapData();
- void Reload();
- void Load(const std::string& path);
- void Load();
- static Fish_RedJumpCFG* GetSingleton();
- private:
- boost::unordered_map<int, Fish_RedJumpCFGData> mMapData;
- };
|