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

Method GetOverlayEffectByName

trinity/Eve/SpaceObject/EveSpaceObject2.cpp:2947–2962  ·  view source on GitHub ↗

-------------------------------------------------------------------------------- Description: Get an overlay effect by name. Returns nullptr if no effect with this name exists on this object. --------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

2945// Get an overlay effect by name. Returns nullptr if no effect with this name exists on this object.
2946// --------------------------------------------------------------------------------
2947EveMeshOverlayEffectPtr EveSpaceObject2::GetOverlayEffectByName( const char* name ) const
2948{
2949 if( name == nullptr )
2950 {
2951 return nullptr;
2952 }
2953
2954 for( auto overlay : m_overlayEffects )
2955 {
2956 if( strcmp( overlay->m_name.c_str(), name ) == 0 )
2957 {
2958 return overlay;
2959 }
2960 }
2961 return nullptr;
2962}
2963
2964
2965// --------------------------------------------------------------------------------

Callers 1

LoadOverlayMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected