deepnight / ldtk-haxe-api

LDtk level editor Haxe API (available on HaxeLib)
MIT License
94 stars 31 forks source link

Cannot iterate over all_tilesets property #36

Open 47rooks opened 2 months ago

47rooks commented 2 months ago

ldtk version : git version as at 22d7ee209b7a9f5775d53407253ec9432fc588db Jan 22, 2024

I cannot find out how to iterate the list array of tilesets. The way the macro processing works I end up with _ldtkProject.all_tilesets.Shell0 but no iteration ability. This means that when I'm trying to write a general helper function it's tied to this specific project or I have to extract the tileset id in project specific code and pass it to the helper function.

Is there any way around this or could iterators be added to these objects ?