#pragma once #include #include struct M_ActivityFeedBackGiftCFGData { //vip等级 int mVipLv; //档位1额外奖励 std::vector mGear1; //档位2额外奖励 std::vector mGear2; //档位3额外奖励 std::vector mGear3; //档位4额外奖励 std::vector mGear4; //档位5额外奖励 std::vector mGear5; }; class M_ActivityFeedBackGiftCFG { public: private: static std::auto_ptr msSingleton; public: int GetCount(); const M_ActivityFeedBackGiftCFGData* GetData(int VipLv); boost::unordered_map& GetMapData(); void Reload(); void Load(const std::string& path); void Load(); static M_ActivityFeedBackGiftCFG* GetSingleton(); private: boost::unordered_map mMapData; };