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

Method RegisterComponents

trinity/Eve/EveEffectRoot2.cpp:496–513  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

494
495
496void EveEffectRoot2::RegisterComponents()
497{
498 auto registry = GetComponentRegistry();
499 if( registry && m_display )
500 {
501 if( !m_lights.empty() )
502 {
503 registry->RegisterComponent<ITr2LightOwner>( this );
504 }
505 for( auto it = begin( m_effectChildren ); it != end( m_effectChildren ); ++it )
506 {
507 if( EveEntityPtr entity = BlueCastPtr( *it ) )
508 {
509 entity->Register( registry );
510 }
511 }
512 }
513}
514
515void EveEffectRoot2::UnRegisterComponents()
516{

Callers 1

RegisterMethod · 0.45

Calls 4

emptyMethod · 0.80
beginFunction · 0.50
endFunction · 0.50
RegisterMethod · 0.45

Tested by

no test coverage detected