12345678910111213141516171819202122232425262728293031323334353637 |
- #pragma once
- #include <boost/unordered_map.hpp>
- #include <vector>
- struct M_ActivitySummerPlanGoldenTouchCFGData
- {
- //ID
- int mID;
- //ÀàÐÍ
- int mType;
- //¸ÅÂÊ
- int mPro;
- //×êʯ»¨·Ñ
- int mCost;
- //½±Àø½ð±Ò
- int mReward;
- //ÏÔʾ¸ÅÂÊ
- int mShowPro;
- //Ôö¼Ó±ùÁ¹Öµ
- int mAddColdValue;
- };
- class M_ActivitySummerPlanGoldenTouchCFG
- {
- public:
- private:
- static std::auto_ptr<M_ActivitySummerPlanGoldenTouchCFG> msSingleton;
- public:
- int GetCount();
- const M_ActivitySummerPlanGoldenTouchCFGData* GetData(int ID);
- boost::unordered_map<int, M_ActivitySummerPlanGoldenTouchCFGData>& GetMapData();
- void Reload();
- void Load(const std::string& path);
- void Load();
- static M_ActivitySummerPlanGoldenTouchCFG* GetSingleton();
- private:
- boost::unordered_map<int, M_ActivitySummerPlanGoldenTouchCFGData> mMapData;
- };
|