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

Method PlayCurveSet

trinity/Eve/EveMultiEffect.cpp:221–238  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

219
220// -----------------------------------------------------------------------------
221void EveMultiEffect::PlayCurveSet( const std::string& name, const std::string& rangeName )
222{
223 for( auto it = m_curveSets.begin(); it != m_curveSets.end(); it++ )
224 {
225 if( ( *it )->GetName() == name )
226 {
227 if( rangeName.empty() )
228 {
229 ( *it )->ResetTimeRange();
230 ( *it )->Play();
231 }
232 else
233 {
234 ( *it )->PlayTimeRange( rangeName.c_str() );
235 }
236 }
237 }
238}
239
240// -----------------------------------------------------------------------------
241void EveMultiEffect::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