#pragma once #include #include struct M_ActivitySetWordData { //ID int mID; //需要王的数量 int mQuantityRequired; //可兑换次数 int mNumberOfExchanges; //奖励道具列表 std::vector mRewardList; //奖励数量 std::vector mRewardCount; }; class M_ActivitySetWord { public: private: static std::auto_ptr msSingleton; public: int GetCount(); const M_ActivitySetWordData* GetData(int ID); boost::unordered_map& GetMapData(); void Reload(); void Load(const std::string& path); void Load(); static M_ActivitySetWord* GetSingleton(); private: boost::unordered_map mMapData; };