work on android port
This commit is contained in:
@@ -14,9 +14,9 @@
|
||||
|
||||
static C_BaseEntity *s_pLocalEntity;
|
||||
|
||||
CEntitySystem *EntitySystem()
|
||||
C_EntitySystem *EntitySystem()
|
||||
{
|
||||
static CEntitySystem s_entitySystem;
|
||||
static C_EntitySystem s_entitySystem;
|
||||
return &s_entitySystem;
|
||||
}
|
||||
|
||||
@@ -27,7 +27,7 @@ static struct EntityRegistry_t
|
||||
struct EntityRegistry_t *m_pNext;
|
||||
} *s_pEntitiesRegistry = NULL;
|
||||
|
||||
CEntitySystem::CEntitySystem()
|
||||
C_EntitySystem::C_EntitySystem()
|
||||
{
|
||||
int i = 0;
|
||||
for ( i = 0; i < MAX_EDICTS; i++ )
|
||||
@@ -37,7 +37,7 @@ CEntitySystem::CEntitySystem()
|
||||
m_nEntityCount = 0;
|
||||
}
|
||||
|
||||
void CEntitySystem::RegisterEntityClass( IEntityFactory *pEntityFactory, const char *szClassName )
|
||||
void C_EntitySystem::RegisterEntityClass( IEntityFactory *pEntityFactory, const char *szClassName )
|
||||
{
|
||||
IEntityFactory *pFactory;
|
||||
EntityRegistry_t *pRegistry;
|
||||
@@ -57,7 +57,7 @@ void CEntitySystem::RegisterEntityClass( IEntityFactory *pEntityFactory, const c
|
||||
s_pEntitiesRegistry = pRegistry;
|
||||
}
|
||||
|
||||
C_BaseEntity *CEntitySystem::CreateByClassname( const char *szName )
|
||||
C_BaseEntity *C_EntitySystem::CreateByClassname( const char *szName )
|
||||
{
|
||||
IEntityFactory *pFactory;
|
||||
C_BaseEntity *pEntity;
|
||||
@@ -89,7 +89,7 @@ C_BaseEntity *CEntitySystem::CreateByClassname( const char *szName )
|
||||
m_nEntityCount++;
|
||||
return pEntity;
|
||||
}
|
||||
C_BaseEntity *CEntitySystem::CreateByClassnameWithIndex( const char *szName, uint32_t uIndex )
|
||||
C_BaseEntity *C_EntitySystem::CreateByClassnameWithIndex( const char *szName, uint32_t uIndex )
|
||||
{
|
||||
IEntityFactory *pFactory;
|
||||
C_BaseEntity *pEntity;
|
||||
@@ -109,7 +109,7 @@ C_BaseEntity *CEntitySystem::CreateByClassnameWithIndex( const char *szName, uin
|
||||
return pEntity;
|
||||
}
|
||||
|
||||
IEntityFactory *CEntitySystem::GetFactoryByClassname( const char *szName )
|
||||
IEntityFactory *C_EntitySystem::GetFactoryByClassname( const char *szName )
|
||||
{
|
||||
EntityRegistry_t *pEntity;
|
||||
|
||||
@@ -124,7 +124,7 @@ IEntityFactory *CEntitySystem::GetFactoryByClassname( const char *szName )
|
||||
}
|
||||
|
||||
|
||||
void CEntitySystem::DestroyEntityByIndex( uint32_t uIndex )
|
||||
void C_EntitySystem::DestroyEntityByIndex( uint32_t uIndex )
|
||||
{
|
||||
if ( uIndex >= MAX_EDICTS )
|
||||
return;
|
||||
@@ -138,12 +138,12 @@ void CEntitySystem::DestroyEntityByIndex( uint32_t uIndex )
|
||||
}
|
||||
}
|
||||
|
||||
void CEntitySystem::DestroyEntityByPtr( C_BaseEntity *pEntity )
|
||||
void C_EntitySystem::DestroyEntityByPtr( C_BaseEntity *pEntity )
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
void CEntitySystem::Think()
|
||||
void C_EntitySystem::Think()
|
||||
{
|
||||
C_BaseEntity *pEntity;
|
||||
int i;
|
||||
@@ -180,7 +180,7 @@ searchIndex:
|
||||
|
||||
}
|
||||
|
||||
void CEntitySystem::NetRecvPacket( NetPacket_t *pPacket )
|
||||
void C_EntitySystem::NetRecvPacket( NetPacket_t *pPacket )
|
||||
{
|
||||
PlayerPacket_t *pPlayerPacket = (PlayerPacket_t*)pPacket->pData;
|
||||
C_BaseEntity *pEntity;
|
||||
@@ -249,7 +249,7 @@ void CEntitySystem::NetRecvPacket( NetPacket_t *pPacket )
|
||||
}
|
||||
}
|
||||
|
||||
void CEntitySystem::NetSendThink( INetworkBase *pBase )
|
||||
void C_EntitySystem::NetSendThink( INetworkBase *pBase )
|
||||
{
|
||||
C_BaseEntity *pEntity;
|
||||
int i;
|
||||
@@ -320,12 +320,12 @@ void CEntitySystem::NetSendThink( INetworkBase *pBase )
|
||||
}
|
||||
|
||||
|
||||
C_BaseEntity **CEntitySystem::GetEntities()
|
||||
C_BaseEntity **C_EntitySystem::GetEntities()
|
||||
{
|
||||
return m_pEntities;
|
||||
};
|
||||
|
||||
C_BaseEntity *CEntitySystem::GetEntityByIndex( int idx )
|
||||
C_BaseEntity *C_EntitySystem::GetEntityByIndex( int idx )
|
||||
{
|
||||
if (idx < 0 || idx >= MAX_EDICTS)
|
||||
return NULL;
|
||||
|
||||
Reference in New Issue
Block a user