24 lines
493 B
C++
24 lines
493 B
C++
#pragma once
|
|
|
|
#include <toolkit/khash.h>
|
|
//#include <vector>
|
|
|
|
#include "GroundMaterialResource.h"
|
|
|
|
class SGroundMaterialResDB
|
|
{
|
|
private:
|
|
KHash< GroundMaterialResource*, hashPr_mod_int> m_hashGroundMaterialRes;
|
|
|
|
void Init();
|
|
void Load();
|
|
void Destroy();
|
|
public:
|
|
GroundMaterialResource* GetGroundMaterialRes( int nTileID );
|
|
int GetGroundMaterialID(int nTileID );
|
|
public:
|
|
SGroundMaterialResDB();
|
|
~SGroundMaterialResDB();
|
|
};
|
|
|
|
SGroundMaterialResDB & GetGroundMaterialResDB(); |