⚠️ This documentation corresponds to the latest development branch of axmol. It might diverge from the official releases.
|
Axmol Engine 3.0.0-dff292a
|
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...
#include <ScriptSupport.h>
Public Member Functions | |
| SchedulerScriptData (int inHandler, float inElapse, void *inNode=nullptr) | |
| Constructor of SchedulerScriptData. | |
Public Attributes | |
| int | handler |
| the handler corresponding to the Lua function pointer, only use in the Lua. | |
| float | elapse |
| the parameter would be passed in to the Lua function, only use in the Lua. | |
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.
|
inline |
Constructor of SchedulerScriptData.
@lua NA
| int handler |
the handler corresponding to the Lua function pointer, only use in the Lua.
@lua NA
| float elapse |
the parameter would be passed in to the Lua function, only use in the Lua.
@lua NA