#pragma once #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); const std::map& GetMapData(); void Load(); void LoadLua(); void Reload(); static Fish_SeniorItemExchangeCFG* GetSingleton(); static void Release(); private: std::map mMapData; };