31 lines
556 B
C++
31 lines
556 B
C++
#pragma once
|
|
|
|
// #2.1.2.11.1
|
|
|
|
#include <toolkit/khash.h>
|
|
//#include <vector>
|
|
|
|
#include "HuntaHolicResource.h"
|
|
|
|
class SHuntaHolicResourceDB
|
|
{
|
|
public:
|
|
SHuntaHolicResourceDB();
|
|
~SHuntaHolicResourceDB();
|
|
const HuntaHolicResource& Find( int nID ) const;
|
|
|
|
protected:
|
|
void Init();
|
|
void Destroy();
|
|
void Load();
|
|
|
|
typedef KHash< HuntaHolicResource*, hashPr_mod_int > HuntaHolicResourceHash;
|
|
|
|
HuntaHolicResourceHash mDB;
|
|
HuntaHolicResource mNullResource;
|
|
|
|
public:
|
|
static SHuntaHolicResourceDB* m_pThis;
|
|
};
|
|
|
|
SHuntaHolicResourceDB& GetHuntaHolicResourceDB(); |