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

Method PlayTimeRange

trinity/Curves/TriCurveSet.cpp:193–212  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

191}
192
193void TriCurveSet::PlayTimeRange( const char* name )
194{
195 bool rangeFound = false;
196 for( auto it = begin( m_ranges ); it != end( m_ranges ); ++it )
197 {
198 auto range = *it;
199 if( range->m_name == name )
200 {
201 rangeFound = true;
202 SetTimeRange( range->m_startTime, range->m_endTime, range->m_looped );
203 Play();
204 return;
205 }
206 }
207
208 if( rangeFound )
209 {
210 Stop();
211 }
212}
213
214void TriCurveSet::PlayFrom( double time )
215{

Callers 8

PlayCurveSetMethod · 0.80
PlayCurveSetMethod · 0.80
PlayCurveSetMethod · 0.80
PlayCurveSetMethod · 0.80
PlayCurveSetMethod · 0.80
PlayCurveSetMethod · 0.80
PlayCurveSetMethod · 0.80
PlayCurveSetMethod · 0.80

Calls 3

StopFunction · 0.85
beginFunction · 0.50
endFunction · 0.50

Tested by

no test coverage detected