Quote Originally Posted by Darkhog View Post
@SilverWarrior: IMO, unless you need some record (as in Pascal record type) for each world "tile", enumeration is over engineering it. If nested loops are faster and still do the job, I'd say go for it. Just comment them well so you'll be sure what they do at a later date.
Don't worry I'll probably still be using nested loops as they also alow you to quickly iterate only through portion of your while data.

Since the threads question was "How to implement such feature" I went and do a litle research (I have nevere used Enumerations before) and build myself a litle demo to see how hard it is to implement Enumerators and what performance I can get out of them.
And of course I shared my findings with you guys so you won't have to do all this by yourselves.