makeVar

fun makeVar(name: String = IdGenerator.makeRandomId(6), value: JsonPrimitive = JsonPrimitive(""), cloud: Boolean = false): Variable

Creates a local variable for this sprite.

Parameters

name

The name of the variable.

value

The initial value.

cloud

Not applicable for local variables.


fun makeVar(variableSlot: VariableSlot): Variable

Creates a local variable from a variable slot.

Parameters

variableSlot

The slot defining the variable.