ChoiceBuilder

A Choice's options, in order. Option keys and descriptions are both sent to the model.

Functions

Link copied to clipboard
infix fun String.means(image: JevImage)

An option defined by a picture: the image's reference. Option keys are never replaced, so it goes here.

infix fun String.means(description: String)
infix fun String.means(entry: JsonElement)
Link copied to clipboard
fun option(key: String, image: JevImage)
fun option(key: String, entry: JsonElement)

fun option(key: String, description: String? = null)

Adds an option; with no description it is sent as null, fine when the key says it all.

Link copied to clipboard
fun options(vararg keys: String)

Adds undescribed options.