MCPcopy Create free account
hub / github.com/StrongPC123/Far-Cry-1-Source-Full / GetEntity

Method GetEntity

CryEntitySystem/EntitySystem.cpp:543–563  ·  view source on GitHub ↗

/////////////////////////////////////////////////////////////////

Source from the content-addressed store, hash-verified

541
542//////////////////////////////////////////////////////////////////////
543IEntity* CEntitySystem::GetEntity( EntityId id )
544{
545 m_nGetEntityCounter++;
546 EntityMap::iterator it = m_mapEntities.find(id);
547 if (it != m_mapEntities.end())
548 {
549 // Entity found.
550 return (IEntity*)(it->second);
551 }
552
553 /*
554 it = m_vStaticEntities.find(id);
555 if (it != m_vStaticEntities.end())
556 {
557 return (IEntity*) (it->second);
558 }
559 */
560
561// ASSERT(id==0); // if we have a valid id here, someone is using the id after deleting the ent
562 return NULL;
563}
564
565//////////////////////////////////////////////////////////////////////
566EntityId CEntitySystem::FindEntity( const char *name ) const

Callers 9

ReadMethod · 0.45
PostLoadMethod · 0.45
SinkRebindMethod · 0.45
BindMethod · 0.45
UnbindMethod · 0.45
AttachToBoneMethod · 0.45
UpdateHierarchyMethod · 0.45
AddColliderMethod · 0.45
RemoveColliderMethod · 0.45

Calls 5

stricmpFunction · 0.50
findMethod · 0.45
endMethod · 0.45
beginMethod · 0.45
GetNameMethod · 0.45

Tested by

no test coverage detected