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

Method ResetEntities

CryEntitySystem/EntitySystem.cpp:905–931  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

903
904//////////////////////////////////////////////////////////////////////////
905void CEntitySystem::ResetEntities(void)
906{
907 // call on reset for every entity
908 EntityMap::iterator it = m_mapEntities.begin();
909 while (it != m_mapEntities.end())
910 {
911 CEntity *ent = it->second;
912 if (ent)
913 {
914 ent->Reset();
915 ent->SendScriptEvent(ScriptEvent_Reset,0);
916 }
917 it++;
918 }
919/*
920 it = m_mapEntities.begin();
921 while (it != m_mapEntities.end())
922 {
923 CEntity *ent = it->second;
924 if (ent)
925 {
926 ent->OnBindAI( 0 );
927 }
928 it++;
929 }
930*/
931}
932
933//////////////////////////////////////////////////////////////////////////
934void CEntitySystem::GetMemoryStatistics(ICrySizer *pSizer)

Callers 1

ResetStateMethod · 0.80

Calls 4

SendScriptEventMethod · 0.80
beginMethod · 0.45
endMethod · 0.45
ResetMethod · 0.45

Tested by

no test coverage detected