LdtkTilesetDefinition
Instance Members
The LdtkDefinitions object this tileset belongs to
The Ceramic tileset generated from this tileset
Grid-based height
Grid-based width
An array of custom tile metadata
If this value isn't None, then it means that this atlas uses an internal LDtk atlas image instead of a loaded one.
Tileset tags using Enum values specified by tagsSourceEnumId. This array contains 1 element per Enum value, which contains an array of all Tile IDs that are tagged with it.
User defined unique identifier
Distance in pixels from image borders
Image height in pixels
Image width in pixels
Path to the source file, relative to the current project JSON file It can be null if no image was provided, or when using an embed atlas.
Space in pixels between all tiles
An array of user-defined tags to organize the Tilesets
Optional Enum definition UID used for this tileset meta-data
The size of a tile in this tileset
Unique Int identifier
Array of colors (with alpha) for this tileset tiles. Can be useful to know if a tile is opaque or not.
One char per tile from LDtk cachedPixelData.opaqueTiles: '1' when every pixel is opaque.
Exact, unlike averageColors whose channels are quantized to 4 bits.
Per tile, true when every pixel has alpha 0, read once from the loaded texture
(see TilemapLdtkParser.computeTilesetsPixelData()). null when this tileset has no
texture (skipped, or no image) or when the backend can't read pixels back.
Per tile, true when every pixel has alpha 255. Same lifecycle as emptyTiles.
Set when the texture of this tileset was deliberately not loaded (skip option,
or no texture loader), so that its absence is not reported as a load failure.
| Name | Type |
|---|---|
data |
String |
| Returns |
|---|
| Int |
| Name | Type |
|---|---|
tileId |
Int |
| Returns |
|---|
| AlphaColor |
true when the tile has no visible pixel.
Only trusts pixels read from our own texture: LDtk's average color is too coarse
for this (a tile with a few faint pixels averages to zero). Unknown means false.
| Name | Type |
|---|---|
tileId |
Int |
| Returns |
|---|
| Bool |
true when every pixel of the tile is opaque.
Pixels read from our texture first, then LDtk opaqueTiles, then the average color
as a last resort (its 4-bit alpha can hide a few fully transparent pixels).
| Name | Type |
|---|---|
tileId |
Int |
| Returns |
|---|
| Bool |
| Returns |
|---|
| String |
| Name | Type | Default |
|---|---|---|
defs |
LdtkDefinitions | (optional) |
json |
haxe.DynamicAccess<Dynamic> | (optional) |