| 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 ); |
no test coverage detected