sequence

inline fun <E> Task<E>.sequence(tasks: Array<Task<E>> = Array(), init: GdxAiSequence<E>.() -> Unit = {}): Int

Creates and adds a GdxAiSequence to the receiver Task.

Return

the index where the GdxAiSequence has been added.

Parameters

tasks

the children of the GdxAiSequence.

init

an optional inline block to configure the GdxAiSequence.

Type Parameters

E

the type of the receiving task's blackboard.