Module step_sequencer

Manages a sequence of update callbacks over time.

StepSequencer extends Object

Class Methods

StepSequencer:new (...) Create a new StepSequencer

Instance Methods

step_sequener:update (steps) Run the StepSequencer.


Class Methods

Class Methods. Must be called on Class, with a capital leading character. e.g. Class:method("foo")
StepSequencer:new (...)
Create a new StepSequencer

Parameters:

  • ... table the steps to sequence, of types wait, every, or until

Returns:

    StepSequencer

Instance Methods

Instance Methods. Must be called on an instance of Class. e.g. instance:method("foo")
step_sequener:update (steps)
Run the StepSequencer.

Parameters:

  • steps number How many steps to advance the sequencer.

Returns:

    boolean true if the StepSequencer has pending cycles, false if it has completed.
generated by LDoc 1.3.12