#pragma once
#include <boost/unordered_map.hpp>
#include <vector>
struct Fish_NormalOutFishCFG5Data
{
	//key
	int mID;
	//名字
	std::string mName;
	//类型
	int mType;
	//参数
	int mParamID;
	//出鱼权值
	int mOutWeight;
	//最大数量
	int mOutMaxCount;
	//路径分组
	int mRouteGroup;
	//出鱼时间（s）
	std::vector<int> mFishTime;
	//分组
	int mGroupID;
	//玩法鱼通知
	int mFishNotice;
	//分组最大鱼数
	int mGroupMaxFish;
};

class Fish_NormalOutFishCFG5
{
public:
private:
	static std::auto_ptr<Fish_NormalOutFishCFG5> msSingleton;
public:
	int GetCount();
	const Fish_NormalOutFishCFG5Data* GetData(int ID);
	boost::unordered_map<int, Fish_NormalOutFishCFG5Data>& GetMapData();
	void Reload();
	void Load(const std::string& path);
	void Load();
	static Fish_NormalOutFishCFG5* GetSingleton();
private:
	boost::unordered_map<int, Fish_NormalOutFishCFG5Data> mMapData;
};
