LDtkAutoLayer

open class LDtkAutoLayer(val tileset: LDtkTileset, val autoTiles: List<LDtkAutoLayer.AutoTile>, 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 LDtkAutoLayer(tileset: LDtkTileset, autoTiles: List<LDtkAutoLayer.AutoTile>, 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 AutoTile(val tileId: Int, val flips: Int, val renderX: Int, val renderY: Int)

Functions

Link copied to clipboard
operator fun get(coordId: Int): LDtkAutoLayer.AutoTile?
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
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