TMXTilesetGroup
class TMXTilesetGroup
an object containing all tileset
Summary
Methods from TMXTilesetGroup
Public Methods
add(tileset: TMXTileset) → {}
add a tileset to the tileset group
Name | Type | Description |
---|---|---|
tileset | TMXTileset |
getTilesetByGid(gid: number) → {TMXTileset}
return the tileset corresponding to the specified id
will throw an exception if no matching tileset is found
Name | Type | Description |
---|---|---|
gid | number |
Type | Description |
---|---|
TMXTileset |
corresponding tileset |
getTilesetByIndex(i: number) → {TMXTileset}
return the tileset at the specified index
Name | Type | Description |
---|---|---|
i | number |
Type | Description |
---|---|
TMXTileset |
corresponding tileset |