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

Method PlayCurveSet

trinity/Eve/SpaceObject/Children/EveChildContainer.cpp:682–712  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

680}
681
682void EveChildContainer::PlayCurveSet( const std::string& name, const std::string& rangeName )
683{
684 if( !IsUpdating() )
685 {
686 return;
687 }
688
689 for( auto it = m_curveSets.begin(); it != m_curveSets.end(); it++ )
690 {
691 if( ( *it )->GetName() == name )
692 {
693 if( rangeName.empty() )
694 {
695 ( *it )->ResetTimeRange();
696 ( *it )->Play();
697 }
698 else
699 {
700 ( *it )->PlayTimeRange( rangeName.c_str() );
701 }
702 }
703 }
704
705 for( auto it = m_objects.begin(); it != m_objects.end(); it++ )
706 {
707 if( auto owner = dynamic_cast<ITr2CurveSetOwner*>( *it ) )
708 {
709 owner->PlayCurveSet( name, rangeName );
710 }
711 }
712}
713
714void EveChildContainer::PlayAllCurveSets()
715{

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