- Joined
- Apr 6, 2008
- Messages
- 760
can u allocate a struct in like a filter func for e.g
JASS:
private struct Data
static method create takes nothing returns Data //can i remove the return somehow?
local Data d = Data.allocate()
local group g = CreateGroup()
call GroupEnumUnitsInRange(g,x,y,aoe,Filter(function Data.filt))
//something
return d
endmethod
static method filt takes nothing returns boolean
local Data d = Data.allocate() //will this get the correct struct?
//stuff
endmethod
endstruct