me.TMXTilesetGroup()

new TMXTilesetGroup()

an object containing all tileset

Methods

add(tileset)

add a tileset to the tileset group

Parameters:
Name Type Description
tileset me.TMXTileset

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
Returns:
me.TMXTileset -

corresponding tileset

getTilesetByIndex(i) → {me.TMXTileset}

return the tileset at the specified index

Parameters:
Name Type Description
i Number
Returns:
me.TMXTileset -

corresponding tileset