LDtkTilesetDefinition

@Serializable
data class LDtkTilesetDefinition(val identifier: String, val padding: Int, val pxHei: Int, val pxWid: Int, val relPath: String, val spacing: Int, val tileGridSize: Int, val uid: Int, val embedAtlas: String? = null)

The Tileset definition is the most important part among project definitions. It contains some extra info about each integrated tileset. If you only had to parse one definition section, that would be the one.

Constructors

Link copied to clipboard
fun LDtkTilesetDefinition(identifier: String, padding: Int, pxHei: Int, pxWid: Int, relPath: String, spacing: Int, tileGridSize: Int, uid: Int, embedAtlas: String? = null)

Properties

Link copied to clipboard
val embedAtlas: String? = null

If this value is set, then it means that this atlas uses an internal LDtk atlas image instead of a loaded one.

Link copied to clipboard

Unique String identifier

Link copied to clipboard

Distance in pixels from image borders

Link copied to clipboard
val pxHei: Int

Image height in pixels

Link copied to clipboard
val pxWid: Int

Image width in pixels

Link copied to clipboard

Path to the source file, relative to the current project JSON file

Link copied to clipboard

Space in pixels between all tiles

Link copied to clipboard
Link copied to clipboard
val uid: Int

Unique Int identifier