Axmol Engine 2.4.0-258ceca
Loading...
Searching...
No Matches
ScriptHandlerEntry Class Reference

This classes is wrapped to store the handler corresponding to the Lua function pointer and assign the handler a unique id @js NA. More...

#include <ScriptSupport.h>

Inherits Object.

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.
 
- Public Member Functions inherited from Object
void retain ()
 Retains the ownership.
 
void release ()
 Releases the ownership immediately.
 
Objectautorelease ()
 Releases the ownership sometime soon automatically.
 
unsigned int getReferenceCount () const
 Returns the Object's current reference count.
 
virtual ~Object ()
 Destructor.
 

Static Public Member Functions

static ScriptHandlerEntrycreate (int handler)
 create a ScriptHandlerEntry instance by the handler.
 

Additional Inherited Members

- Public Attributes inherited from Object
unsigned int _ID
 object id, ScriptSupport need public _ID
 
int _luaID
 Lua reference id.
 

Detailed Description

This classes is wrapped to store the handler corresponding to the Lua function pointer and assign the handler a unique id @js NA.

Constructor & Destructor Documentation

◆ ~ScriptHandlerEntry()

virtual ~ScriptHandlerEntry ( )
virtual

Destructor of ScriptHandlerEntry.

@lua NA @js NA

Member Function Documentation

◆ create()

static ScriptHandlerEntry * create ( int handler)
static

create a ScriptHandlerEntry instance by the handler.

Parameters
handlercorresponding to the Lua function pointer.
Returns
ScriptHandlerEntry instance. @lua NA @js NA

◆ getHandler()

int getHandler ( )
inline

Get the handler corresponding to the Lua function pointer.

Returns
the handler corresponding to the Lua function pointer. @lua NA @js NA

◆ getEntryId()

int getEntryId ( )
inline

Get the unique id corresponding to the handler.

Returns
the unique id corresponding to the handler. @lua NA @js NA

The documentation for this class was generated from the following file: