LDtkEntity

open class LDtkEntity(val identifier: String, val iid: String, val cx: Int, val cy: Int, val x: Float, val y: Float, val pivotX: Float, val pivotY: Float, val width: Int, val height: Int, val tileInfo: LDtkTileInfo?, val fields: Map<String, LDtkField<*>>)

Author

Colton Daily

Constructors

Link copied to clipboard
fun LDtkEntity(identifier: String, iid: String, cx: Int, cy: Int, x: Float, y: Float, pivotX: Float, pivotY: Float, width: Int, height: Int, tileInfo: LDtkTileInfo?, fields: Map<String, LDtkField<*>>)

Functions

Link copied to clipboard
fun <T> field(name: String): LDtkValueField<T>
Link copied to clipboard
Link copied to clipboard
open override fun toString(): String

Properties

Link copied to clipboard
val cx: Int

Grid-based X coordinate

Link copied to clipboard
val cy: Int

Grid-based Y coordinate

Link copied to clipboard
Link copied to clipboard
val height: Int

Height in pixels

Link copied to clipboard
Link copied to clipboard
val iid: String
Link copied to clipboard

Pivot X coord (0-1)

Link copied to clipboard

Pivot Y coord (0-1)

Link copied to clipboard

Tile infos if the entity has one (it could have been overridden by a Field value, such as Enums)

Link copied to clipboard
val width: Int

Width in pixels

Link copied to clipboard
val x: Float

Pixel-based X coordinate

Link copied to clipboard
val y: Float

Pixel-based Y coordinate