bitcraft / pytmx

Python library to read Tiled Map Editor's TMX maps.
GNU Lesser General Public License v3.0
384 stars 81 forks source link

TiledMap.get_all_tilemaps() #173

Closed VantaTree closed 1 year ago

VantaTree commented 1 year ago

currently, there is no way to get all the TiledTileset(s) from the TiledMap.

 <tileset firstgid="1" source="../tsx_data/tileset.tsx"/>
 <tileset firstgid="241" source="../tsx_data/props.tsx"/>
 <tileset firstgid="257" source="../tsx_data/collision.tsx"/>
 <tileset firstgid="262" source="../tsx_data/enemies.tsx"/>

It would be really useful in certain situations to have access to all the tilesets.