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

Method UpdateCurveSet

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

Source from the content-addressed store, hash-verified

768}
769
770void EveChildContainer::UpdateCurveSet( const std::string& name, Be::Time time )
771{
772 for( auto it = m_curveSets.begin(); it != m_curveSets.end(); it++ )
773 {
774 if( ( *it )->GetName() == name )
775 {
776 ( *it )->Update( time, time );
777 }
778 }
779 for( auto it = m_objects.begin(); it != m_objects.end(); it++ )
780 {
781 if( auto owner = dynamic_cast<ITr2CurveSetOwner*>( *it ) )
782 {
783 owner->UpdateCurveSet( name, time );
784 }
785 }
786}
787
788float EveChildContainer::GetCurveSetDuration( const std::string& name ) const
789{

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