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

E

the type of the receiving task's blackboard.

tasks

the children of the GdxAiSequence.

init

an optional inline block to configure the GdxAiSequence.