TMXTilesetGroup

class TMXTilesetGroup

an object containing all tileset

Public Methods


add TMXTilesetGroup.js:14
add(tileset: TMXTileset) → {}

add a tileset to the tileset group

Parameters:
Name Type Description
tileset TMXTileset
getTilesetByGid TMXTilesetGroup.js:32
getTilesetByGid(gid: number) → {TMXTileset}

return the tileset corresponding to the specified id
will throw an exception if no matching tileset is found

Parameters:
Name Type Description
gid number
Returns:
Type Description
TMXTileset

corresponding tileset

getTilesetByIndex TMXTilesetGroup.js:23
getTilesetByIndex(i: number) → {TMXTileset}

return the tileset at the specified index

Parameters:
Name Type Description
i number
Returns:
Type Description
TMXTileset

corresponding tileset


Powered by webdoc!