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

Method GetCurveSetDuration

trinity/Eve/EveMultiEffect.cpp:265–276  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

263
264// -----------------------------------------------------------------------------
265float EveMultiEffect::GetCurveSetDuration( const std::string& name ) const
266{
267 float maxDuration = 0.f;
268 for( auto it = m_curveSets.begin(); it != m_curveSets.end(); it++ )
269 {
270 if( ( *it )->GetName() == name )
271 {
272 maxDuration = max( maxDuration, ( *it )->GetMaxCurveDuration() );
273 }
274 }
275 return maxDuration;
276}
277
278// -----------------------------------------------------------------------------
279float EveMultiEffect::GetRangeDuration( const std::string& name, const std::string& rangeName ) const

Callers

nothing calls this directly

Calls 4

GetMaxCurveDurationMethod · 0.80
beginMethod · 0.45
endMethod · 0.45
GetNameMethod · 0.45

Tested by

no test coverage detected