#pragma once
#include <boost/unordered_map.hpp>
#include <vector>
struct Fish_ShellCFGData
{
	//ÐòºÅ
	int mID;
	//±´¿Ç±¶ÂÊ
	int mShellrate;
	//È¨ÖØ
	int mWeight;
	//±´¿Ç×é
	std::vector<int> mShellItem;
};

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