Class: TMXTilesetGroup

me. TMXTilesetGroup

new TMXTilesetGroup()

an object containing all tileset
Source:
TMXTileset.js, line 313

Methods

add(tileset)

add a tileset to the tileset group
Parameters:
Name Type Description
tileset me.TMXTileset
Source:
TMXTileset.js, line 323

getTilesetByGid(gid) → {me.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
Source:
TMXTileset.js, line 347
Returns:
corresponding tileset
Type
me.TMXTileset

getTilesetByIndex(i) → {me.TMXTileset}

return the tileset at the specified index
Parameters:
Name Type Description
i Number
Source:
TMXTileset.js, line 335
Returns:
corresponding tileset
Type
me.TMXTileset