#pragma once #include #include struct Fish_DropGoldCFGData { //ID int mID; //资源类型 int mResType; //资源名字 std::string mResName; //资源路径 std::string mResPath; //宽度 int mWidth; //高度 int mHeight; //缩放 float mScale; }; class Fish_DropGoldCFG { public: private: static std::auto_ptr msSingleton; public: int GetCount(); const Fish_DropGoldCFGData* GetData(int ID); boost::unordered_map& GetMapData(); void Reload(); void Load(const std::string& path); void Load(); static Fish_DropGoldCFG* GetSingleton(); private: boost::unordered_map mMapData; };