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

Method Update

trinity/Controllers/Actions/Tr2ActionBindRTPC.cpp:100–112  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

98}
99
100void Tr2ActionBindRTPC::Update( Be::Time realTime, Be::Time simTime )
101{
102 // Handle logic necessary in order to use simulated time in the expression.
103 m_lastSimTime = simTime;
104 float time = TimeAsFloat( simTime - m_startTime );
105 ExtraBuffer buffer = { this, &time };
106 auto value = m_evaluator.Eval( &buffer );
107
108 if( value.first && m_emitter )
109 {
110 m_emitter->SetRTPC( m_rtpcName, value.second );
111 }
112}
113
114bool Tr2ActionBindRTPC::OnModified( Be::Var* value )
115{

Callers

nothing calls this directly

Calls 1

EvalMethod · 0.80

Tested by

no test coverage detected