MCPcopy Create free account
hub / github.com/carbonengine/trinity / RebuildSceneData

Method RebuildSceneData

trinity/Interior/Tr2InteriorScene.cpp:1403–1421  ·  view source on GitHub ↗

------------------------------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

1401
1402// ------------------------------------------------------------------------------------------------------
1403void Tr2InteriorScene::RebuildSceneData( void )
1404{
1405 // Clear out any dynamics pending load
1406 m_dynamicsPendingLoad.Clear();
1407
1408 // Visit all dynamics
1409 for( PITr2InteriorDynamicVector::iterator it = m_dynamics.begin(); it != m_dynamics.end(); ++it )
1410 {
1411 // Remove from the scene
1412 ( *it )->RemoveFromScene();
1413
1414 // Attempt to re-add to the scene
1415 if( !( *it )->AddToScene( m_apexScene ) && ( m_dynamicsPendingLoad.FindKey( ( *it ) ) == -1 ) )
1416 {
1417 // Object not ready, add to pending load queue
1418 m_dynamicsPendingLoad.Insert( -1, ( *it ) );
1419 }
1420 }
1421}
1422
1423void Tr2InteriorScene::UpdateSceneFromScript( Be::Time time )
1424{

Callers

nothing calls this directly

Calls 5

ClearMethod · 0.45
beginMethod · 0.45
endMethod · 0.45
RemoveFromSceneMethod · 0.45
AddToSceneMethod · 0.45

Tested by

no test coverage detected