LDtkIntGridAutoLayer

open class LDtkIntGridAutoLayer(val tileset: LDtkTileset, val autoTiles: List<LDtkAutoLayer.AutoTile>, intGridValueInfo: List<LDtkIntGridLayer.ValueInfo>, val intGrid: Map<Int, Int>, 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) : LDtkIntGridLayer

Author

Colton Daily

Constructors

Link copied to clipboard
fun LDtkIntGridAutoLayer(tileset: LDtkTileset, autoTiles: List<LDtkAutoLayer.AutoTile>, intGridValueInfo: List<LDtkIntGridLayer.ValueInfo>, intGrid: Map<Int, Int>, identifier: String, iid: String, type: LayerType, cellSize: Int, gridWidth: Int, gridHeight: Int, pxTotalOffsetX: Int, pxTotalOffsetY: Int, opacity: Float)

Functions

Link copied to clipboard
operator fun get(coordId: Int): LDtkAutoLayer.AutoTile?
operator fun get(cx: Int, cy: Int): Int
Link copied to clipboard
fun getCellX(coordId: Int): Int
Link copied to clipboard
fun getCellY(coordId: Int): Int
Link copied to clipboard
fun getColor(cx: Int, cy: Int): Color?

Get the value color ("#rrggbb" string format) at selected coordinates.

Link copied to clipboard
fun getCoordId(cx: Int, cy: Int): Int
Link copied to clipboard
fun getInt(cx: Int, cy: Int): Int

Get the Integer value at selected coordinates

Link copied to clipboard
fun getName(cx: Int, cy: Int): String?

Get the value String identifier at selected coordinates.

Link copied to clipboard
fun hasValue(cx: Int, cy: Int, value: Int? = null): 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
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

IntGrid integer values, map is based on coordIds

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