/* ==========================================================================
* 파    일 : PvP.h
* 목    적 : 
* 작 성 자 : 박경희
* 작 성 일 : 2008-11-14
* 주의사항 :
*===========================================================================*/
#pragma once
#include "PVP_Common.h"
#include "Lexer.h"
#include "Parser.h"

class cPvPScript
{
public:

	static cPvPScript*	 mpPvPScript;

public:

	/// 생성 소멸
	cPvPScript(void);
	virtual ~cPvPScript(void);

	///	초기화
	bool				Init();
	/// 전체 사용 메모리 제거
	void				Release();

	sDMInfo*			GetDmInfo( unsigned char type, unsigned char level );
	sDMMemberGive*		GetMemberGive( unsigned char level );

protected:
	bool	LoadDMInfo();
	bool	LoadMemberGive();

private:

	typedef tPointerHashMap<unsigned long, void*> cHashMap;
	typedef tArray<void*>	cArray;

	// typedef tArray<sDMInfo*> cArray;
	// typedef tPointerHashMap<unsigned long, cArray*> cHashMap;
	cHashMap			mDMInfoMap;

	// typedef tPointerHashMap<unsigned long, sDMMemberGive*> cHashMap; 
	cHashMap			mDMMemberGiveMap;

};


#define PVPSCRIPT cPvPScript::mpPvPScript
