The SchedulerScriptHandlerEntry is used to store the handler corresponding to the Lua function pointer and assign the handler a unique id like ScriptHandlerEntry.
More...
#include <ScriptSupport.h>
Inherits ScriptHandlerEntry.
|
unsigned int | _ID |
| object id, ScriptSupport need public _ID
|
|
int | _luaID |
| Lua reference id.
|
|
The SchedulerScriptHandlerEntry is used to store the handler corresponding to the Lua function pointer and assign the handler a unique id like ScriptHandlerEntry.
Meanwhile,create a timer that named TimerScriptHandler to execute the Lua function corresponding to the handler in the interval time if the SchedulerScriptHandlerEntry object isn't paused. @js NA
◆ ~SchedulerScriptHandlerEntry()
◆ create()
create a SchedulerScriptHandlerEntry object.
- Parameters
-
handler | the index corresponding to the Lua function pointer. |
interval | the interval to execute the Lua function. If the value is 0, then the lua function will be scheduled every frame. |
paused | if paused is true, then the timer won't be started until it is resumed. |
- Returns
- a SchedulerScriptHandlerEntry object. @js NA @lua NA
◆ getTimer()
TimerScriptHandler * getTimer |
( |
| ) |
|
|
inline |
Get the pointer of TimerScriptHandler object.
- Returns
- the pointer of TimerScriptHandler object. @js NA @lua NA
◆ isPaused()
Get the flag whether paused or not.
- Returns
- the flag whether paused or not. @js NA @lua NA
◆ markedForDeletion()
void markedForDeletion |
( |
| ) |
|
|
inline |
Set the markedForDeletion flag true.
@js NA @lua NA
◆ isMarkedForDeletion()
bool isMarkedForDeletion |
( |
| ) |
|
|
inline |
Get the flag whether markedForDeletion or not.
- Returns
- the flag whether markedForDeletion or not. @js NA @lua NA
The documentation for this class was generated from the following file: