android port
This commit is contained in:
@@ -20,7 +20,7 @@
|
||||
typedef className ThisClass;
|
||||
|
||||
#define LINK_ENTITY_TO_CLASS( mapClassName, DLLClassName) \
|
||||
static CEntityFactory<DLLClassName> g_EntityFactory_##mapClassName( #mapClassName ); \
|
||||
static C_EntityFactory<DLLClassName> g_EntityFactory_##mapClassName( #mapClassName ); \
|
||||
|
||||
class C_BaseEntity;
|
||||
|
||||
@@ -32,12 +32,12 @@ public:
|
||||
|
||||
|
||||
template<class T>
|
||||
class CEntityFactory : public IEntityFactory
|
||||
class C_EntityFactory : public IEntityFactory
|
||||
{
|
||||
public:
|
||||
CEntityFactory( const char *szClassName )
|
||||
C_EntityFactory( const char *szClassName )
|
||||
{
|
||||
EntitySystem()->RegisterEntityClass(this, szClassName);
|
||||
ClientEntitySystem()->RegisterEntityClass(this, szClassName);
|
||||
};
|
||||
virtual C_BaseEntity *Create() {
|
||||
return new T;
|
||||
|
||||
Reference in New Issue
Block a user