123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- #pragma once
- #include <boost/unordered_map.hpp>
- #include <vector>
- struct Fish_LargeFishCFG5Data
- {
- //key
- int mID;
- //鱼阵名字
- std::string mName;
- //鱼阵ID
- int mGeneratorID;
- //BOSS鱼ID
- int mFishID;
- //提示信息
- std::string mImageInfo;
- //BOSS鱼阵
- bool mIsBoss;
- //声音
- std::string mBackSound;
- //倒计时
- int mDuration;
- //警告时间
- int mWarnTime;
- //刷水时间
- int mFlashTime;
- //死亡时间
- int mDieTime;
- };
- class Fish_LargeFishCFG5
- {
- public:
- private:
- static std::auto_ptr<Fish_LargeFishCFG5> msSingleton;
- public:
- int GetCount();
- const Fish_LargeFishCFG5Data* GetData(int ID);
- boost::unordered_map<int, Fish_LargeFishCFG5Data>& GetMapData();
- void Reload();
- void Load(const std::string& path);
- void Load();
- static Fish_LargeFishCFG5* GetSingleton();
- private:
- boost::unordered_map<int, Fish_LargeFishCFG5Data> mMapData;
- };
|