Parameter Type Required Description obj table✕ The table to turn into a TimerList. Creates a new instance of TimerList.
Returns:
Type Description TimerListThe new TimerList object. Table structure:
{ last = Timer -- the last timer (the one that must trigger before all the others). Might be nil. }
Parameter Type Required Description timer Timer✔ The timer to add. @
timerparameter's structure:
Index Type Required Description callback function✔ The callback function. when int✔ When it will be executed. Adds a timer to the list.
timer.callbackwill receive the timer as the unique argument, so you can add more values hereReturns:
Type Description TimerThe timer you've added
Runs the timers that need to be run.
Parameter Type Required Description timer Timer✔ The timer to remove. Removes a timer from the list.