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

Method PlayCurveSet

trinity/Eve/EveEffectRoot2.cpp:683–707  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

681
682// -----------------------------------------------------------------------------
683void 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// -----------------------------------------------------------------------------
710void EveEffectRoot2::StopCurveSet( const std::string& name )

Callers

nothing calls this directly

Calls 7

emptyMethod · 0.80
ResetTimeRangeMethod · 0.80
PlayTimeRangeMethod · 0.80
beginMethod · 0.45
endMethod · 0.45
GetNameMethod · 0.45
PlayMethod · 0.45

Tested by

no test coverage detected