#pragma once
#include <map>
struct Fish_TurretCFGData
{
	//ID
	int mID;
	//炮台名字
	std::string mName;
	//资源类型
	int mResType;
	//资源名字
	std::string mResName;
	//Vip等级
	int mVipLevel;
	//颜色
	int mColor;
	//声音ID
	int mSoundID;
	//开火效果
	int mFireEffectID;
	//效果偏移
	int mEffectOffsetY;
	//偏移
	int mOffsetY;
	//开火高度
	int mFireOffsetY;
};

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