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

Method GetEffectChildByName

trinity/Eve/SpaceObject/EveSpaceObject2.cpp:3008–3019  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

3006
3007// --------------------------------------------------------------------------------
3008IEveSpaceObjectChildPtr EveSpaceObject2::GetEffectChildByName( const char* name ) const
3009{
3010 for( auto it = begin( m_effectChildren ); it != end( m_effectChildren ); ++it )
3011 {
3012 auto child = *it;
3013 if( strcmp( child->GetName(), name ) == 0 )
3014 {
3015 return child;
3016 }
3017 }
3018 return nullptr;
3019}
3020
3021// --------------------------------------------------------------------------------
3022// Description:

Callers 1

SetupInstancedMeshesMethod · 0.45

Calls 3

beginFunction · 0.50
endFunction · 0.50
GetNameMethod · 0.45

Tested by

no test coverage detected