MCPcopy Create free account
hub / github.com/BobbyAnguelov/Esoterica / Load

Method Load

Code/Engine/Entity/EntityMap.cpp:272–288  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

270 if ( pEntity->GetMapID() == m_ID )
271 {
272 EE_ASSERT( FindEntity( pEntity->GetID() ) );
273 Threading::RecursiveScopeLock lock( m_mutex );
274 if ( !VectorContains( m_entitiesCurrentlyLoading, pEntity ) )
275 {
276 m_entitiesCurrentlyLoading.emplace_back( pEntity );
277 }
278 }
279 }
280
281 //-------------------------------------------------------------------------
282 // Loading
283 //-------------------------------------------------------------------------
284
285 void EntityMap::Load( LoadingContext const& loadingContext, InitializationContext& initializationContext )
286 {
287 EE_ASSERT( Threading::IsMainThread() && loadingContext.IsValid() );
288 EE_ASSERT( m_status == Status::Unloaded );
289 EE_ASSERT( m_entityStateUpdatesAllowed );
290
291 Threading::RecursiveScopeLock lock( m_mutex );

Callers 5

InitializeMethod · 0.45
CreateTransientMapMethod · 0.45
LoadMapMethod · 0.45
LoadComponentsMethod · 0.45
UpdateEntityStateMethod · 0.45

Calls 3

IsMainThreadFunction · 0.85
IsValidMethod · 0.45
LoadResourceMethod · 0.45

Tested by

no test coverage detected