29 lines
532 B
C++
29 lines
532 B
C++
|
|
#ifndef BASE_MODEL_ENTITY_H
|
|
#define BASE_MODEL_ENTITY_H
|
|
|
|
#include "baseentity.h"
|
|
#include "worldrender.h"
|
|
#include "assetmgr.h"
|
|
|
|
class C_BaseModelEntity: public C_BaseEntity
|
|
{
|
|
public:
|
|
DECLARE_CLASS(C_BaseModelEntity, C_BaseEntity);
|
|
DECLARE_DATADESC();
|
|
|
|
virtual ~C_BaseModelEntity() override;
|
|
virtual void Precache() override;
|
|
virtual void Spawn() override;
|
|
void Think( float fDelta );
|
|
|
|
void SetModel( const char *szName );
|
|
private:
|
|
|
|
uint32_t m_uModelIndex;
|
|
FunnyModel_t *m_pModel;
|
|
IMeshInstance *m_pInstance;
|
|
};
|
|
|
|
#endif
|