Method | Description | |
---|---|---|
Adjust ( LuaState luaState, object identifier, double delay, uint repetitions, lua_CFunction function ) : bool |
Adjusts the timer if the timer with the given identifier exists.
|
|
Create ( LuaState luaState, object identifier, double delay, uint repetitions, lua_CFunction function ) : void |
Creates a new timer.
|
|
Exists ( LuaState luaState, object identifier ) : bool |
Returns whenever the given timer exists or not.
|
|
Pause ( LuaState luaState, object identifier ) : bool |
Pauses the given timer.
|
|
Remove ( LuaState luaState, object identifier ) : void |
Stops and removes the timer.
|
|
RepsLeft ( LuaState luaState, object identifier ) : uint |
Returns amount of repetitions/executions left before the timer destroys itself.
|
|
Simple ( LuaState luaState, double delay, lua_CFunction function ) : void |
Runs the given function after a specified delay.
|
|
Start ( LuaState luaState, object identifier ) : bool |
Restarts the given timer.
|
|
Stop ( LuaState luaState, object identifier ) : bool |
Stops the given timer.
|
|
TimeLeft ( LuaState luaState, object identifier ) : double |
Returns amount of time left before the timer executes its function.
|
|
Toggle ( LuaState luaState, object identifier ) : bool |
Runs either Pause or UnPause based on the timer's current status.
|
|
UnPause ( LuaState luaState, object identifier ) : bool |
Unpauses the timer.
|
public static Adjust ( LuaState luaState, object identifier, double delay, uint repetitions, lua_CFunction function ) : bool | ||
luaState | LuaState | Pointer to lua_State struct. |
identifier | object | Identifier of the timer to adjust. |
delay | double | The delay interval in seconds. |
repetitions | uint | Repetitions. Use 0 for infinite. |
function | lua_CFunction | The new function. |
return | bool |
public static Create ( LuaState luaState, object identifier, double delay, uint repetitions, lua_CFunction function ) : void | ||
luaState | LuaState | Pointer to lua_State struct. |
identifier | object | Identifier of the timer to adjust. |
delay | double | The delay interval in seconds. |
repetitions | uint | The number of times to repeat the timer (use 0 for infinite repetitions). |
function | lua_CFunction | Function to call when timer has finished the countdown. |
return | void |
public static Exists ( LuaState luaState, object identifier ) : bool | ||
luaState | LuaState | Pointer to lua_State struct. |
identifier | object | Identifier of the timer. |
return | bool |
public static Pause ( LuaState luaState, object identifier ) : bool | ||
luaState | LuaState | Pointer to lua_State struct. |
identifier | object | Identifier of the timer. |
return | bool |
public static Remove ( LuaState luaState, object identifier ) : void | ||
luaState | LuaState | Pointer to lua_State struct. |
identifier | object | Identifier of the timer to remove. |
return | void |
public static RepsLeft ( LuaState luaState, object identifier ) : uint | ||
luaState | LuaState | Pointer to lua_State struct. |
identifier | object | Identifier of the timer. |
return | uint |
public static Simple ( LuaState luaState, double delay, lua_CFunction function ) : void | ||
luaState | LuaState | Pointer to lua_State struct. |
delay | double | How long until the function should be ran (in seconds). |
function | lua_CFunction | The function to run after the specified delay. |
return | void |
public static Start ( LuaState luaState, object identifier ) : bool | ||
luaState | LuaState | Pointer to lua_State struct. |
identifier | object | Identifier of the timer. |
return | bool |
public static Stop ( LuaState luaState, object identifier ) : bool | ||
luaState | LuaState | Pointer to lua_State struct. |
identifier | object | Identifier of the timer. |
return | bool |
public static TimeLeft ( LuaState luaState, object identifier ) : double | ||
luaState | LuaState | Pointer to lua_State struct. |
identifier | object | Identifier of the timer. |
return | double |
public static Toggle ( LuaState luaState, object identifier ) : bool | ||
luaState | LuaState | Pointer to lua_State struct. |
identifier | object | Identifier of the timer. |
return | bool |
public static UnPause ( LuaState luaState, object identifier ) : bool | ||
luaState | LuaState | Pointer to lua_State struct. |
identifier | object | Identifier of the timer. |
return | bool |