LDtkTilesLayer

open class LDtkTilesLayer(val tileset: LDtkTileset, val tiles: Map<Int, List<LDtkTilesLayer.TileInfo>>, 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 LDtkTilesLayer(tileset: LDtkTileset, tiles: Map<Int, List<LDtkTilesLayer.TileInfo>>, identifier: String, iid: String, type: LayerType, cellSize: Int, gridWidth: Int, gridHeight: Int, pxTotalOffsetX: Int, pxTotalOffsetY: Int, opacity: Float)

Types

Link copied to clipboard
data class TileInfo(val tileId: Int, val flipBits: Int)

Functions

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
Link copied to clipboard
fun hasAnyTileAt(cx: Int, cy: Int): Boolean
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

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
Link copied to clipboard
Link copied to clipboard