My Project
|
interface class for filtering block models. More...
#include <BlockModelProvider.h>
Public Member Functions | |
IBlockModelProvider (BlockTemplate *pBlockTemplate) | |
virtual BlockModel & | GetBlockModel (int nIndex=0) |
get the default block model. More... | |
virtual BlockModel & | GetBlockModel (CBlockWorld *pBlockManager, uint16_t block_id, uint16_t bx, uint16_t by, uint16_t bz, uint16_t nBlockData=0, Block **neighborBlocks=NULL) |
virtual BlockModel & | GetBlockModelByData (uint32 nData) |
virtual int | GetModelIndex (CBlockWorld *pBlockManager, uint16_t block_id, uint16_t bx, uint16_t by, uint16_t bz, uint16_t nBlockData=0, Block **neighborBlocks=NULL) |
get block model index | |
Protected Attributes | |
BlockTemplate * | m_pBlockTemplate |
interface class for filtering block models.
|
virtual |
get the default block model.
This function must be implemented if one provide its own model
nIndex | model index default to 0 |
Reimplemented in ParaEngine::CCarpetModelProvider, ParaEngine::CSlopeModelProvider, and ParaEngine::CWireModelProvider.