| 31 | } |
| 32 | |
| 33 | void 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 | |
| 51 | bool Tr2ActionSetValue::OnModified( Be::Var* value ) |
| 52 | { |