JASS:
struct Branch
//data
endstruct
globals
Branch array STBRANCH[500]
endglobals
function test takes nothing returns nothing
set STBRANCH[1] = Branch.create()
set STBRANCH[2] = Branch.create()
endfunction
Is this correct usage of struct arrays. It's sort of funny looking to me as in the globals I have made it an array but have to still create it.
I saw that you could also do
JASS:
struct Branch extend array
//data
endstruct
But not sure what how this works.