#pragma once #include struct Fish_IntermediateExchangeData { //编号 int mID; //鱼名 std::string mname; //道具 std::vector mitemId; //数量 std::vector mitemcount; //基础奖励 std::vector mfixedReward; //概率奖励 std::vector mprobabilityReward; //福袋奖励 std::vector mprimaryFubao; //新手礼包积分 std::vector mNewGiftIntegral; //新手积分 std::vector mNewIntegral; //礼包积分 std::vector mGiftIntegral; //消耗权重 std::vector mComIntegral; //普通积分 std::vector mNorIntegral; //不上榜权重 std::vector mOnListWeight; }; class Fish_IntermediateExchange { public: private: static std::auto_ptr msSingleton; public: int GetCount(); const Fish_IntermediateExchangeData* GetData(int ID); const std::map& GetMapData(); void Load(); void LoadLua(); void Reload(); static Fish_IntermediateExchange* GetSingleton(); static void Release(); private: std::map mMapData; };