123456789101112131415161718192021222324252627282930313233 |
- #pragma once
- #include <boost/unordered_map.hpp>
- #include <vector>
- struct M_ActivityIntegralExchangeCFGData
- {
- //编号
- int mID;
- //凭证ID
- int mVoucherId;
- //凭证数量
- int mVoucherCount;
- //道具ID
- int mItemId;
- //道具数量
- int mItemCount;
- };
- class M_ActivityIntegralExchangeCFG
- {
- public:
- private:
- static std::auto_ptr<M_ActivityIntegralExchangeCFG> msSingleton;
- public:
- int GetCount();
- const M_ActivityIntegralExchangeCFGData* GetData(int ID);
- boost::unordered_map<int, M_ActivityIntegralExchangeCFGData>& GetMapData();
- void Reload();
- void Load(const std::string& path);
- void Load();
- static M_ActivityIntegralExchangeCFG* GetSingleton();
- private:
- boost::unordered_map<int, M_ActivityIntegralExchangeCFGData> mMapData;
- };
|