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

Method Start

trinity/Controllers/Actions/Tr2ActionSetValue.cpp:33–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31}
32
33void Tr2ActionSetValue::Start( ITr2ActionController& controller )
34{
35 if( HasDelayedBinding() )
36 {
37 LinkDestination( controller );
38 }
39 if( !m_destination.IsValid() )
40 {
41 return;
42 }
43 auto value = m_evaluator.Eval();
44 if( !value.first )
45 {
46 return;
47 }
48 m_destination.SetValue( value.second );
49}
50
51bool Tr2ActionSetValue::OnModified( Be::Var* value )
52{

Callers

nothing calls this directly

Calls 3

EvalMethod · 0.80
IsValidMethod · 0.45
SetValueMethod · 0.45

Tested by

no test coverage detected