|
Axmol 3.0.0-89d6d9a
|
Calls a 'callback' with the node as the first argument. More...
#include <ActionInstant.h>
Inherits CallFunc.
Public Member Functions | |
| void | execute () override |
| Executes the callback. | |
| bool | initWithFunction (const std::function< void(Node *)> &func) |
| initializes the action with the std::function<void(Node*)> | |
| Public Member Functions inherited from CallFunc | |
| void | update (float time) override |
| bool | initWithFunction (const std::function< void()> &func) |
| initializes the action with the std::function<void()> @lua NA | |
| Public Member Functions inherited from ActionInstant | |
| void | step (float dt) override |
| void | update (float time) override |
Static Public Member Functions | |
| static CallFuncN * | create (const std::function< void(Node *)> &func) |
| Creates the action with the callback of type std::function<void()>. | |
| Static Public Member Functions inherited from CallFunc | |
| static CallFunc * | create (const std::function< void()> &func) |
| Creates the action with the callback of type std::function<void()>. | |
Calls a 'callback' with the node as the first argument.
N means Node.
|
static |
Creates the action with the callback of type std::function<void()>.
This is the preferred way to create the callback.
| func | A callback function need to be executed. |