123456789101112131415161718192021222324252627282930313233 |
- #pragma once
- #include <boost/unordered_map.hpp>
- #include <vector>
- struct M_GrowthFundData
- {
- //ID
- int mID;
- //ÀàÐÍ
- int mFundType;
- //µÈ¼¶
- int mLevel;
- //½±ÀøÎïÆ·ID
- std::vector<int> mItemId;
- //Àñ°üID
- int mGiftId;
- };
- class M_GrowthFund
- {
- public:
- private:
- static std::auto_ptr<M_GrowthFund> msSingleton;
- public:
- int GetCount();
- const M_GrowthFundData* GetData(int ID);
- boost::unordered_map<int, M_GrowthFundData>& GetMapData();
- void Reload();
- void Load(const std::string& path);
- void Load();
- static M_GrowthFund* GetSingleton();
- private:
- boost::unordered_map<int, M_GrowthFundData> mMapData;
- };
|