LDtkFieldInstance

@Serializable
data class LDtkFieldInstance(val identifier: String, val type: String, val value: MultiAssociatedValue?, val defUid: Int, val tile: LDtkTileRect? = null)

Constructors

Link copied to clipboard
fun LDtkFieldInstance(identifier: String, type: String, value: MultiAssociatedValue?, defUid: Int, tile: LDtkTileRect? = null)

Properties

Link copied to clipboard
val defUid: Int

Reference of the Field definition UID

Link copied to clipboard

Field definition identifier

Link copied to clipboard
val tile: LDtkTileRect? = null

Optional TilesetRect used to display this field (this can be the field own Tile, or some other Tile guessed from the value, like an Enum)

Link copied to clipboard

Type of the field, such as Int, Float, Enum(my_enum_name), Bool, etc.

Link copied to clipboard

Actual value of the field instance. The value type may vary, depending on __type (Integer, Boolean, String etc.)
It can also be an Array of those same types.