LDtkEntityLayer

open class LDtkEntityLayer(val entities: List<LDtkEntity>, val identifier: String, val iid: String, val type: LayerType, val cellSize: Int, val gridWidth: Int, val gridHeight: Int, val pxTotalOffsetX: Int, val pxTotalOffsetY: Int, val opacity: Float) : LDtkLayer

Author

Colton Daily

Constructors

Link copied to clipboard
fun LDtkEntityLayer(entities: List<LDtkEntity>, identifier: String, iid: String, type: LayerType, cellSize: Int, gridWidth: Int, gridHeight: Int, pxTotalOffsetX: Int, pxTotalOffsetY: Int, opacity: Float)

Functions

Link copied to clipboard
Link copied to clipboard
operator fun get(entity: String): List<LDtkEntity>
Link copied to clipboard
fun getCellX(coordId: Int): Int
Link copied to clipboard
fun getCellY(coordId: Int): Int
Link copied to clipboard
fun getCoordId(cx: Int, cy: Int): Int
Link copied to clipboard
fun isCoordValid(cx: Int, cy: Int): Boolean
Link copied to clipboard
open override fun render(batch: Batch, viewBounds: Rect, x: Float, y: Float, scale: Float)
fun render(batch: Batch, camera: Camera, x: Float, y: Float, scale: Float = 1.0f)
Link copied to clipboard
open override fun toString(): String

Properties

Link copied to clipboard

Grid size in pixels

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Grid-based layer height

Link copied to clipboard

Grid-based layer width

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

Layer opacity (0-1)

Link copied to clipboard

Pixel-based layer X offset (includes both instance and definition offsets)

Link copied to clipboard

Pixel-based layer Y offset (includes both instance and definition offsets)

Link copied to clipboard