TransientTile

PropertyTypeWritableDescription
Definition
Read-only
Registry definition of this tile.
Name
string
Read-only
Unique name of the registry definition of this tile.
Dimension
Read-only
Dimension this tile is located in.
Coordinate
Read-only
Coordinate this tile is located at.
X
number
Read-only
X coordinate in the tile grid.
Y
number
Read-only
Y coordinate in the tile grid.
Z
number
Read-only
Z coordinate in the tile grid.
Function
GetMetadata(key: string): string | nil
Gets metadata value for a specific key from this tile's definition.
HasTag(tag: string): boolean
Checks if this tile has a specific tag in its definition.
Swap(newTileDef: TileDefinition): TransientTile
Swap(newTileDef: TileDefinition, layerName: string): TransientTile
Swaps this tile for another tile definition at the same coordinate.