TmxWangSet

format.tmx.TmxWangSet (Class)

Defines a list of corner colors and a list of edge colors, and any number of Wang tiles using these colors.

Instance Members

name: String

The name of the Wang set.


tile: Int

The tile ID of the tile representing this Wang set.


A color that can be used to define the corner of a Wang tile.


A color that can be used to define the edge of a Wang tile.


Defines a Wang tile, by referring to a tile in the tileset and associating it with a certain Wang ID.


new(name: String, tile: Int, corners: Array<TmxWangSetColor>, edges: Array<TmxWangSetColor>, tiles: Array<TmxWangSetTile>): Void
Name Type Description
name String The name of the Wang set.
tile Int The tile ID of the tile representing this Wang set.
corners Array<TmxWangSetColor> A color that can be used to define the corner of a Wang tile.
edges Array<TmxWangSetColor> A color that can be used to define the edge of a Wang tile.
tiles Array<TmxWangSetTile> Defines a Wang tile, by referring to a tile in the tileset and associating it with a certain Wang ID.

Metadata

Name Parameters
:structInit -