#pragma once
#include <map>
struct Fish_GoldenTurtleTaskCFGData
{
	//任务ID
	int mId;
	//任务描述
	std::string mDesc;
	//完成条件类型
	int mCompleteType;
	//特殊参数,填0不生效。对任务捕获指定鱼需要填写
	int mCompleteParam;
	//完成计数
	int mCompleteCount;
	//奖励物品ID
	int mAwardItemIDs;
	//奖励物品数量
	int mAwardItemCounts;
};

class Fish_GoldenTurtleTaskCFG
{
public:
private:
	static std::auto_ptr<Fish_GoldenTurtleTaskCFG> msSingleton;
public:
	int GetCount();
	const Fish_GoldenTurtleTaskCFGData* GetData(int Id);
	const std::map<int, Fish_GoldenTurtleTaskCFGData>& GetMapData();
	void Load();
	void LoadLua();
	void Reload();
	static Fish_GoldenTurtleTaskCFG* GetSingleton();
	static void Release();
private:
	std::map<int, Fish_GoldenTurtleTaskCFGData> mMapData;
};
