#pragma once #include #include struct Fish_SeniorItemExchangeCFGData { //编号 int mID; //类型 int mType; //道具ID std::vector mItemId; //道具数量 std::vector mItemCount; //兑换道具id std::vector mExchangeItemId; //兑换道具数量 std::vector mExchangeItemCount; //兑换道具权重 std::vector mExchangeItemWeight; }; class Fish_SeniorItemExchangeCFG { public: private: static std::auto_ptr msSingleton; public: int GetCount(); const Fish_SeniorItemExchangeCFGData* GetData(int ID); boost::unordered_map& GetMapData(); void Reload(); void Load(const std::string& path); void Load(); static Fish_SeniorItemExchangeCFG* GetSingleton(); private: boost::unordered_map mMapData; };