#pragma once #include #include struct M_LevelCFGData { //等级 int mLevel; //升级经验值 std::string mNeedExp; //奖励金币 std::vector mAward; //升级ICON std::string mLevelUpIcon; }; class M_LevelCFG { public: private: static std::auto_ptr msSingleton; public: int GetCount(); const M_LevelCFGData* GetData(int Level); boost::unordered_map& GetMapData(); void Reload(); void Load(const std::string& path); void Load(); static M_LevelCFG* GetSingleton(); private: boost::unordered_map mMapData; };