#pragma once
#include <boost/unordered_map.hpp>
#include <vector>
struct Fish_GiantSharkBomberData
{
	//ID
	int mID;
	//名称
	std::string mName;
	//消耗能量数
	int mConsumeEnergy;
	//金币轰炸消耗金币
	int mGoldBombardment;
	//权重
	std::vector<int> mGoldWeight;
	//金币浮动
	std::vector<int> mGoldFloat;
	//积分权重
	std::vector<int> mPointWeight;
	//普通积分浮动
	std::vector<int> mPointFloat;
	//积分权重
	std::vector<int> mGiftPointWeight;
	//礼包积分浮动
	std::vector<int> mGiftPointFloat;
};

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