-------------------------------------------------------------------------------- Description: Play the curve set with the appropriate name --------------------------------------------------------------------------------
| 3404 | // Play the curve set with the appropriate name |
| 3405 | // -------------------------------------------------------------------------------- |
| 3406 | void EveSpaceObject2::PlayCurveSet( const std::string& name, const std::string& rangeName ) |
| 3407 | { |
| 3408 | for( auto it = m_curveSets.begin(); it != m_curveSets.end(); it++ ) |
| 3409 | { |
| 3410 | if( ( *it )->GetName() == name ) |
| 3411 | { |
| 3412 | if( rangeName.empty() ) |
| 3413 | { |
| 3414 | ( *it )->ResetTimeRange(); |
| 3415 | ( *it )->Play(); |
| 3416 | } |
| 3417 | else |
| 3418 | { |
| 3419 | ( *it )->PlayTimeRange( rangeName.c_str() ); |
| 3420 | } |
| 3421 | } |
| 3422 | } |
| 3423 | for( auto childIt = m_children.begin(); childIt != m_children.end(); childIt++ ) |
| 3424 | { |
| 3425 | if( auto owner = dynamic_cast<ITr2CurveSetOwner*>( *childIt ) ) |
| 3426 | { |
| 3427 | owner->PlayCurveSet( name, rangeName ); |
| 3428 | } |
| 3429 | } |
| 3430 | for( auto childIt = m_effectChildren.begin(); childIt != m_effectChildren.end(); childIt++ ) |
| 3431 | { |
| 3432 | if( auto owner = dynamic_cast<ITr2CurveSetOwner*>( *childIt ) ) |
| 3433 | { |
| 3434 | owner->PlayCurveSet( name, rangeName ); |
| 3435 | } |
| 3436 | } |
| 3437 | } |
| 3438 | |
| 3439 | // -------------------------------------------------------------------------------- |
| 3440 | // Description: |
nothing calls this directly
no test coverage detected