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

Method OnModified

trinity/Controllers/Actions/Tr2ActionSetValue.cpp:51–69  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49}
50
51bool Tr2ActionSetValue::OnModified( Be::Var* value )
52{
53 if( !m_controller )
54 {
55 return true;
56 }
57 if( IsMatch( value, m_destination.m_path ) || IsMatch( value, m_destination.m_attribute ) || IsMatch( value, m_destination.m_object ) || IsMatch( value, m_delayBinding ) )
58 {
59 if( !HasDelayedBinding() )
60 {
61 LinkDestination( *m_controller );
62 }
63 }
64 else if( IsMatch( value, m_value ) )
65 {
66 m_evaluator.SetExpr( m_value.c_str(), *m_controller );
67 }
68 return true;
69}
70
71bool Tr2ActionSetValue::IsBindingValid() const
72{

Callers

nothing calls this directly

Calls 2

IsMatchFunction · 0.85
SetExprMethod · 0.80

Tested by

no test coverage detected