The SchedulerScriptHandlerEntry is used to store the handler corresponding to the Lua function pointer and assign the handler a unique id like ScriptHandlerEntry.
More...
Inherits ScriptHandlerEntry.
|
|
unsigned int | _ID |
| | object id, ScriptSupport need public _ID
|
| |
|
int | _luaID |
| | Lua reference id.
|
| |
|
void * | _scriptObject |
| | scriptObject, support for swift
|
| |
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.
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.
| TimerScriptHandler* getTimer |
( |
void |
| ) |
|
|
inline |
Get the pointer of TimerScriptHandler object.
- Returns
- the pointer of TimerScriptHandler object.
Get the flag whether paused or not.
- Returns
- the flag whether paused or not.
| bool isMarkedForDeletion |
( |
void |
| ) |
|
|
inline |
Get the flag whether markedForDeletion or not.
- Returns
- the flag whether markedForDeletion or not.
The documentation for this class was generated from the following file: