- Joined
- Oct 23, 2011
- Messages
- 182
Question about group recycling
I don't know what to choose between GroupUtils at wc3c.net or Recycle at THW.
Also, how does this stack thingy work?
after the first .get, how does it return a group without creating it? with negative index??
am I supposed to release specific amount of groups at initialization of the map and use .get to retrieve it?
I thought i was supposed to replace CreateGroup() with group.get and DestroyGroup() with group.release
GroupUtils also perform ' set .index = .index - 1 ' only if index isn't zero while Recycle does.
I don't know what to choose between GroupUtils at wc3c.net or Recycle at THW.
Also, how does this stack thingy work?
JASS:
static method get takes nothing returns group
if .index == 0 then
return CreateGroup()
endif
set .index = .index - 1
return thistype[.index].handles
endmethod
after the first .get, how does it return a group without creating it? with negative index??
am I supposed to release specific amount of groups at initialization of the map and use .get to retrieve it?
I thought i was supposed to replace CreateGroup() with group.get and DestroyGroup() with group.release
GroupUtils also perform ' set .index = .index - 1 ' only if index isn't zero while Recycle does.
Last edited: