| 494 | |
| 495 | |
| 496 | void 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 | |
| 515 | void EveEffectRoot2::UnRegisterComponents() |
| 516 | { |