Cocos2d-x
4.0.0
|
This classes is wrapped to store the handler corresponding to the Lua function pointer and assign the handler a unique id NA. More...
Inherits Ref.
Inherited by SchedulerScriptHandlerEntry.
Public Member Functions | |
virtual | ~ScriptHandlerEntry () |
Destructor of ScriptHandlerEntry. | |
int | getHandler () |
Get the handler corresponding to the Lua function pointer. | |
int | getEntryId () |
Get the unique id corresponding to the handler. | |
![]() | |
void | retain () |
Retains the ownership. | |
void | release () |
Releases the ownership immediately. | |
Ref * | autorelease () |
Releases the ownership sometime soon automatically. | |
unsigned int | getReferenceCount () const |
Returns the Ref's current reference count. | |
virtual | ~Ref () |
Destructor. | |
Static Public Member Functions | |
static ScriptHandlerEntry * | create (int handler) |
create a ScriptHandlerEntry instance by the handler. | |
Additional Inherited Members | |
![]() | |
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. | |
This classes is wrapped to store the handler corresponding to the Lua function pointer and assign the handler a unique id NA.
|
virtual |
Destructor of ScriptHandlerEntry.
NA NA
|
static |
create a ScriptHandlerEntry instance by the handler.
handler | corresponding to the Lua function pointer. |
|
inline |
Get the handler corresponding to the Lua function pointer.
|
inline |
Get the unique id corresponding to the handler.