示例#1
0
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 );
	}
}
示例#2
0
文件: robot.cpp 项目: vengine/XGC
void Robot::DoAction() {
	ActionPtr act = GetCurrnetAction();
	if (act.get()) act->Do();
	Next();
	CommandProc();
}