Lysa  0.0
Lysa 3D Engine
Timers Class Referenceabstract

Detailed Description

Global timer registry and factory; timers registered here are automatically updated each physics tick.

Lua full name: lysa.Timers

Public Member Functions

Timer create (wait_time: number, one_shot: boolean, auto_start: boolean, callback: fun())
 Creates a Timer with a Lua callback, registers it with the engine, and returns it. More...
 
Timer create (wait_time: number, one_shot: boolean, callback: fun())
 Creates a Timer with a Lua callback (auto_start defaults to true), registers it with the engine, and returns it. More...
 
Timer create (wait_time: number, callback: fun())
 Creates a Timer with a Lua callback (one_shot and auto_start default to true), registers it with the engine, and returns it. More...
 

Member Function Documentation

Timer create ( number  wait_time,
boolean  one_shot,
boolean  auto_start,
fun()  callback)

Creates a Timer with a Lua callback, registers it with the engine, and returns it.

Parameters
wait_timenumber
one_shotboolean
auto_startboolean
callbackfun()
Returns
Timer
Timer create ( number  wait_time,
boolean  one_shot,
fun()  callback)

Creates a Timer with a Lua callback (auto_start defaults to true), registers it with the engine, and returns it.

Parameters
wait_timenumber
one_shotboolean
callbackfun()
Returns
Timer
Timer create ( number  wait_time,
fun()  callback)

Creates a Timer with a Lua callback (one_shot and auto_start default to true), registers it with the engine, and returns it.

Parameters
wait_timenumber
callbackfun()
Returns
Timer