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

Method Reset

CryEntitySystem/EntitySystem.cpp:277–296  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

275
276//////////////////////////////////////////////////////////////////////
277void CEntitySystem::Reset()
278{
279// m_pISystem->GetILog()->Log("CEntitySystem::Reset()");
280
281 EntityMap::iterator it = m_mapEntities.begin();
282 while (it != m_mapEntities.end())
283 {
284 CEntity *ent = it->second;
285 if (ent)
286 {
287 ent->ShutDown();
288 delete ent;
289 }
290 m_mapEntities.erase( it );
291 it = m_mapEntities.begin();
292 }
293
294 m_EntityIDGenerator.Reset();
295 m_timersMap.clear();
296}
297
298//////////////////////////////////////////////////////////////////////
299void CEntitySystem::SetSink( IEntitySystemSink *pSink )

Callers 1

ResetEntitiesMethod · 0.45

Calls 5

beginMethod · 0.45
endMethod · 0.45
ShutDownMethod · 0.45
eraseMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected