TaskList

class TaskList : Task

A task containing a list of tasks that will occur sequentially as if they were in a queue. Can be used with a ForkTask to allow multiple sequences of events to happen concurrently. A task list can contain a custom task at the end of it which adds more tasks to the list allowing for recurrent execution.

See also

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard

Functions

Link copied to clipboard
fun addTask(task: Task)

Add a task to th task list

Link copied to clipboard
open fun kill()

Used to stop tasks part of the way through.

Link copied to clipboard
open override fun loop(): Boolean

Called every loop cycle of the queue. Returning true moves on to next task.

Link copied to clipboard
open override fun onBegin(): Boolean

Called when task is started. Returning false will skip the task.