Page 1 of 1

Lighter alternative to Listrootitemsincontainer() ?

Posted: Tue Jan 04, 2011 10:19 am
by xeon
Currently, I've got in my includes, deriving from POL095, the Listrootitemsincontainer() function, which does nothing more than a foreach on the output of EnumerateItemsInContainer().

Obviously, if I got 500 items in my pack, they are 500 iterations.
There isn't a lighter alternative? I'm hoping for a POL core function, but 'till now I haven't found nothing in the docs.
But, maybe I've missed something :D

Re: Lighter alternative to Listrootitemsincontainer() ?

Posted: Tue Jan 04, 2011 6:01 pm
by Austin
If you are still using POL095... That is your only solution.
This feature was added in POL 097. If you are using POL 095, I suggest upgrading to 098 or 099 betas.

Code: Select all

09-15 Austin
       Added: ENUMERATE_ROOT_ONLY for EnumerateItemsInContainer(container, flags)
              Will cause it to only list the contents in the container passed and not
              the contents of any sub-containers.

Re: Lighter alternative to Listrootitemsincontainer() ?

Posted: Sat Jan 08, 2011 3:21 pm
by xeon
Thank you Austin. I'm using 096, I will definitively upgrade as soon as I can.