atomicptr / openfl-tiled

openfl-tiled is a library which gives OpenFL developers the ability to use the TILED map editor.
Other
45 stars 21 forks source link

Make ObjectGroups iterable #20

Closed atomicptr closed 11 years ago

atomicptr commented 11 years ago

You can currently only iterate ObjectGroups like this:

for (object in objectGroup.objects) {
    // do stuff
}

but i want this statement to be more intuitive like this:

for(object in objectGroup) {
    // do stuff ! :)
}