#pragma once #include #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); boost::unordered_map& GetMapData(); void Reload(); void Load(const std::string& path); void Load(); static Fish_IntermediateExchange* GetSingleton(); private: boost::unordered_map mMapData; };