#pragma once #include #include struct M_HealthGameData { //ID int mID; //ÀàÐÍ std::string mType; //ÃèÊö std::string mDescribe; }; class M_HealthGame { public: private: static std::auto_ptr msSingleton; public: int GetCount(); const M_HealthGameData* GetData(int ID); boost::unordered_map& GetMapData(); void Reload(); void Load(const std::string& path); void Load(); static M_HealthGame* GetSingleton(); private: boost::unordered_map mMapData; };