#pragma once
#include <boost/unordered_map.hpp>
#include <vector>
struct M_BankGiftCFGData
{
	//±àºÅ
	int mID;
	//Àñ°üID
	std::vector<int> mRechangId;
	//È¨ÖØ
	int mWeight;
	//±¶ÂÊ
	int mMultiple;
};

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