32 lines
762 B
C++
32 lines
762 B
C++
|
|
#pragma once
|
|
|
|
#include <toolkit/khash.h>
|
|
//#include <vector>
|
|
|
|
#include "FieldPropResource.h"
|
|
|
|
class SFieldPropResourceDB
|
|
{
|
|
private:
|
|
KHash< FieldPropResource*, hashPr_mod_int> m_hashFieldPropResource;
|
|
|
|
void Init();
|
|
void Load();
|
|
void Destroy();
|
|
public:
|
|
FieldPropResource* GetFieldPropResource( int nQuestPropID );
|
|
int GetSkillID( int nQuestPropID );
|
|
int GetTerrainCheck( int nQuestPropID );
|
|
int getDungeonGateType(int id); /// 2011.07.21 - prodongi
|
|
|
|
KHash< FieldPropResource*, hashPr_mod_int>& GetFieldPropResourceInfo();
|
|
const char* GetQuestPropModelName( int nQuestPropID );
|
|
public:
|
|
SFieldPropResourceDB();
|
|
~SFieldPropResourceDB();
|
|
|
|
static SFieldPropResourceDB* m_pThis;
|
|
};
|
|
|
|
SFieldPropResourceDB & GetFieldPropResourceDB(); |