Header menu logo Nu

TmxExtensions Module

Type extensions

Type extension Description

this.GetImageAsset

Full Usage: this.GetImageAsset

Parameters:
    tileMapPackage : string

Returns: Image AssetTag

Get the associated image asset for the given TmxTileset in the specified package. If the TmxTileset object has a custom property named "Image" with an asset value like "[PackageName AssetName]", it will be parsed to retrieve the image asset. If the custom property is missing, the image asset will be inferred from the tile set's image source filename. Throws a TileSetPropertyNotFoundException if the custom property "Image" is missing and the tile set's image source filename cannot be inferred. Thread-safe.

Extended Type: TmxTileset

tileMapPackage : string
Returns: Image AssetTag

this.GetImageAssets

Full Usage: this.GetImageAssets

Parameters:
    tileMapPackage : string

Returns: (TmxTileset * Image AssetTag) array

Get each of the map's tilesets paired with their associated image assets (per the given package). Thread-safe.

Extended Type: TmxMap

tileMapPackage : string
Returns: (TmxTileset * Image AssetTag) array

Type something to start searching.