UNPKG

arcade-physics

Version:
28 lines 1.21 kB
export = ParseWangsets; /** * @author Richard Davey <rich@photonstorm.com> * @copyright 2013-2023 Photon Storm Ltd. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ /** * 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. * * @function Phaser.Tilemaps.Parsers.Tiled.ParseWangsets * @since 3.53.0 * * @param {Array.<object>} wangsets - The array of wangset objects (parsed from JSON) * @param {object} datas - The field into which to put wangset data from Tiled. * * @return {object} An object containing the tileset and image collection data. */ declare function ParseWangsets(wangsets: Array<object>, datas: object): object; //# sourceMappingURL=ParseWangsets.d.ts.map