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

Method SetControllerVariable

trinity/Eve/EveLensflare.cpp:480–495  ·  view source on GitHub ↗

--------------------------Controllers-----------------------------------------

Source from the content-addressed store, hash-verified

478
479// --------------------------Controllers-----------------------------------------
480void EveLensflare::SetControllerVariable( const char* name, float value )
481{
482 auto found = find_if( begin( m_controllerVariables ), end( m_controllerVariables ), [name]( auto& x ) { return x.first == name; } );
483 if( found == end( m_controllerVariables ) )
484 {
485 m_controllerVariables.push_back( { name, value } );
486 }
487 else
488 {
489 found->second = value;
490 }
491 for( auto it = m_controllers.begin(); it != m_controllers.end(); ++it )
492 {
493 ( *it )->SetVariable( name, value );
494 }
495}
496
497void EveLensflare::HandleControllerEvent( const char* name )
498{

Callers 1

StartMethod · 0.45

Calls 5

beginFunction · 0.50
endFunction · 0.50
beginMethod · 0.45
endMethod · 0.45
SetVariableMethod · 0.45

Tested by

no test coverage detected