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

Method GetEffectChildByName

trinity/Eve/EveEffectRoot2.cpp:887–898  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

885
886// --------------------------------------------------------------------------------
887IEveSpaceObjectChildPtr EveEffectRoot2::GetEffectChildByName( const char* name ) const
888{
889 for( auto it = begin( m_effectChildren ); it != end( m_effectChildren ); ++it )
890 {
891 auto child = *it;
892 if( strcmp( child->GetName(), name ) == 0 )
893 {
894 return child;
895 }
896 }
897 return nullptr;
898}
899
900// --------------------------------------------------------------------------------
901void EveEffectRoot2::AddToEffectChildrenList( IEveSpaceObjectChild* child )

Callers 3

StartMethod · 0.45
StartMethod · 0.45
StopMethod · 0.45

Calls 3

beginFunction · 0.50
endFunction · 0.50
GetNameMethod · 0.45

Tested by

no test coverage detected