The LuaCallFunc is wrapped to call the callback function in the Lua Conveniently and don't insert useless code to processing the lua in the CallFuncN.
More...
Inherits CallFuncN.
|
static LuaCallFunc * | create (const std::function< void(void *self, Node *)> &func) |
| Create a LuaCallFunc object by a function pointer for callback.
|
|
static CallFuncN * | create (const std::function< void(Node *)> &func) |
| Creates the action with the callback of type std::function<void()>.
|
|
static CallFunc * | create (const std::function< void()> &func) |
| Creates the action with the callback of type std::function<void()>.
|
|
|
unsigned int | _ID |
| object id, ScriptSupport need public _ID
|
|
int | _luaID |
| Lua reference id.
|
|
void * | _scriptObject |
| scriptObject, support for swift
|
|
bool | _rooted |
| When true, it means that the object was already rooted.
|
|
static const int | INVALID_TAG = -1 |
| Default tag used for all the actions.
|
|
bool | initWithFunction (const std::function< void(Node *)> &func) |
| initializes the action with the std::function<void(Node*)>
|
|
The LuaCallFunc is wrapped to call the callback function in the Lua Conveniently and don't insert useless code to processing the lua in the CallFuncN.
NA NA
static LuaCallFunc* create |
( |
const std::function< void(void *self, Node *)> & |
func | ) |
|
|
static |
Create a LuaCallFunc object by a function pointer for callback.
- Parameters
-
func | a function pointer for callback. |
bool initWithFunction |
( |
const std::function< void(void *self, Node *)> & |
func | ) |
|
Init a LuaCallFunc object by a function pointer for callback.
- Parameters
-
func | a function pointer for callback. |
Returns a clone of action.
- Returns
- A clone action.
Reimplemented from CallFuncN.
The documentation for this class was generated from the following file: