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

Method UpdateCurveSet

trinity/Eve/SpaceObject/EveSpaceObject2.cpp:3377–3400  ·  view source on GitHub ↗

-------------------------------------------------------------------------------- Description: Update the curve set with the appropriate name --------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

3375// Update the curve set with the appropriate name
3376// --------------------------------------------------------------------------------
3377void EveSpaceObject2::UpdateCurveSet( const std::string& name, Be::Time time )
3378{
3379 for( auto it = m_curveSets.begin(); it != m_curveSets.end(); it++ )
3380 {
3381 if( ( *it )->GetName() == name )
3382 {
3383 ( *it )->Update( time, time );
3384 }
3385 }
3386 for( auto it = m_children.begin(); it != m_children.end(); it++ )
3387 {
3388 if( auto owner = dynamic_cast<ITr2CurveSetOwner*>( *it ) )
3389 {
3390 owner->UpdateCurveSet( name, time );
3391 }
3392 }
3393 for( auto it = m_effectChildren.begin(); it != m_effectChildren.end(); it++ )
3394 {
3395 if( auto owner = dynamic_cast<ITr2CurveSetOwner*>( *it ) )
3396 {
3397 owner->UpdateCurveSet( name, time );
3398 }
3399 }
3400}
3401
3402// --------------------------------------------------------------------------------
3403// Description:

Callers

nothing calls this directly

Calls 4

beginMethod · 0.45
endMethod · 0.45
GetNameMethod · 0.45
UpdateMethod · 0.45

Tested by

no test coverage detected