Parses out the Wangset information from Tiled 1.1.5+ map data, if present.
Since a given tile can be in more than one wangset, the resulting properties
are nested. tile.data.wangid[someWangsetName]
will return the array-based wang id in
this implementation.
Note that we're not guaranteed that there will be any 'normal' tiles if the only thing in the tilset are wangtile definitions, so this has to be parsed separately.
See https://doc.mapeditor.org/en/latest/manual/using-wang-tiles/ for more information.
name | type | description |
---|---|---|
wangsets | Array.<object> |
The array of wangset objects (parsed from JSON) |
datas | object |
The field into which to put wangset data from Tiled. |
An object containing the tileset and image collection data.