#pragma once
#include <boost/unordered_map.hpp>
#include <vector>
struct Fish_LuckyDrawCFGData
{
	//索引
	int mIndex;
	//价值校验值
	std::vector<int> mPinValue;
	//类型
	int mStarLvl;
	//物品类型
	int mItemType;
	//物品数量
	int mItemCount;
	//道具价值
	int mItemValue;
	//普通概率
	std::vector<int> mNormalProb;
	//无彩券概率
	std::vector<int> mNoChipProb;
};

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