-----------------------------------------------------------------------------
| 681 | |
| 682 | // ----------------------------------------------------------------------------- |
| 683 | void EveEffectRoot2::PlayCurveSet( const std::string& name, const std::string& rangeName ) |
| 684 | { |
| 685 | for( auto it = m_curveSets.begin(); it != m_curveSets.end(); it++ ) |
| 686 | { |
| 687 | if( ( *it )->GetName() == name ) |
| 688 | { |
| 689 | if( rangeName.empty() ) |
| 690 | { |
| 691 | ( *it )->ResetTimeRange(); |
| 692 | ( *it )->Play(); |
| 693 | } |
| 694 | else |
| 695 | { |
| 696 | ( *it )->PlayTimeRange( rangeName.c_str() ); |
| 697 | } |
| 698 | } |
| 699 | } |
| 700 | for( auto childIt = m_effectChildren.begin(); childIt != m_effectChildren.end(); childIt++ ) |
| 701 | { |
| 702 | if( auto owner = dynamic_cast<ITr2CurveSetOwner*>( *childIt ) ) |
| 703 | { |
| 704 | owner->PlayCurveSet( name, rangeName ); |
| 705 | } |
| 706 | } |
| 707 | } |
| 708 | |
| 709 | // ----------------------------------------------------------------------------- |
| 710 | void EveEffectRoot2::StopCurveSet( const std::string& name ) |
nothing calls this directly
no test coverage detected