Magic_Game/core/Action/CallFunc.cpp

27 lines
353 B
C++
Raw Normal View History

#include "..\e2daction.h"
e2d::CallFunc::CallFunc(const Function& func) :
_func(func)
{
}
e2d::CallFunc * e2d::CallFunc::clone() const
{
return Create<CallFunc>(_func);
}
2018-05-14 00:36:01 +08:00
e2d::CallFunc * e2d::CallFunc::reverse() const
{
return Create<CallFunc>(_func);
2018-05-14 00:36:01 +08:00
}
void e2d::CallFunc::_init()
{
}
void e2d::CallFunc::_update()
{
_func();
this->stop();
}