void ScriptNode::addAction( ActionPtr action ) { action->doAction(); if( m_actionAccumulator && m_undoStateStack.top() == UndoContext::Enabled ) { m_actionAccumulator->addAction( action ); actionSignal()( this, action.get(), Action::Do ); } }
void Robot::DoAction() { ActionPtr act = GetCurrnetAction(); if (act.get()) act->Do(); Next(); CommandProc(); }