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

Method Update

trinity/Controllers/Actions/Tr2ActionAnimateValue.cpp:90–104  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

88}
89
90void Tr2ActionAnimateValue::Update( Be::Time realTime, Be::Time simTime )
91{
92 m_lastSimTime = simTime;
93 if( !m_destination.IsValid() )
94 {
95 return;
96 }
97 float time = TimeAsFloat( simTime - m_startTime );
98 ExtraBuffer buffer = { this, &time };
99 auto value = m_evaluator.Eval( &buffer );
100 if( value.first )
101 {
102 m_destination.SetValue( value.second );
103 }
104}
105
106bool Tr2ActionAnimateValue::OnModified( Be::Var* value )
107{

Callers

nothing calls this directly

Calls 3

EvalMethod · 0.80
IsValidMethod · 0.45
SetValueMethod · 0.45

Tested by

no test coverage detected