makeList

fun makeList(name: String = IdGenerator.makeRandomId(6), jsonArray: JsonArray): ScratchList

Creates a local list for this sprite.

Parameters

name

The name of the list.

jsonArray

The initial contents.


fun makeList(name: String = IdGenerator.makeRandomId(6), block: JsonArrayBuilder.() -> Unit): ScratchList

Creates a local list for this sprite with a builder.

Parameters

name

The name of the list.

block

The builder for the list's contents.


Creates a local list from a list slot.

Parameters

listSlot

The slot defining the list.