#pragma once #include #include struct M_ActivityMonsterSwordCFGData { //编号 int mId; //任务描述 std::string mDesc; //完成条件类型 int mCompleteType; //特殊参数,填0不生效。对任务捕获指定鱼需要填写 std::vector mCompleteParam; //完成计数 int mCompleteCount; //奖励物品ID std::vector mAwardItemID; //奖励物品数量 std::vector mAwardItemCounts; //前往类型 int mGoType; //搜索范围 std::vector mFindRand; }; class M_ActivityMonsterSwordCFG { public: private: static std::auto_ptr msSingleton; public: int GetCount(); const M_ActivityMonsterSwordCFGData* GetData(int Id); boost::unordered_map& GetMapData(); void Reload(); void Load(const std::string& path); void Load(); static M_ActivityMonsterSwordCFG* GetSingleton(); private: boost::unordered_map mMapData; };