Cocos2d-x  v4
SchedulerScriptData Struct Reference

For Lua, the SchedulerScriptData is used to find the Lua function pointer by the handler, then call the Lua function by push the elapse into the Lua stack as a parameter when scheduler update event is triggered. More...

Public Member Functions

 SchedulerScriptData (int inHandler, float inElapse, void *inNode=nullptr)
 Constructor of SchedulerScriptData. More...
 

Public Attributes

int handler
 the handler corresponding to the Lua function pointer, only use in the Lua. More...
 
float elapse
 the parameter would be passed in to the Lua function, only use in the Lua. More...
 

Detailed Description

For Lua, the SchedulerScriptData is used to find the Lua function pointer by the handler, then call the Lua function by push the elapse into the Lua stack as a parameter when scheduler update event is triggered.

@js NA

Constructor & Destructor Documentation

◆ SchedulerScriptData()

SchedulerScriptData ( int  inHandler,
float  inElapse,
void *  inNode = nullptr 
)
inline

Constructor of SchedulerScriptData.

@js NA @lua NA

Member Data Documentation

◆ handler

int handler

the handler corresponding to the Lua function pointer, only use in the Lua.

@js NA @lua NA

◆ elapse

float elapse

the parameter would be passed in to the Lua function, only use in the Lua.

@js NA @lua NA


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