- Joined
- Feb 22, 2006
- Messages
- 960
today i had too much freetime... so I started working on an ArrayList System
which can store objects (in this case structs). the arraylist itself is a struct (so you better can handle it like a normal variable) but it stores the objects in a global.
So do you think such a system could be usefull?
You would not have to attach structs to any handles, you just could store them and use them later
this would look equal to that...
so wirte down what you think, or just flame me since i get such awful ideas^^
which can store objects (in this case structs). the arraylist itself is a struct (so you better can handle it like a normal variable) but it stores the objects in a global.
So do you think such a system could be usefull?
You would not have to attach structs to any handles, you just could store them and use them later
JASS:
globals
private ArrayList blub
endglobals
function didu takes nothing returns nothing
set blub = ArrayList.create(100) //creates an ArrayList with 100slots
call blub.add(0,anystruct) //0 = index
endfunction
this would look equal to that...
so wirte down what you think, or just flame me since i get such awful ideas^^