- Joined
- Jul 6, 2009
- Messages
- 1,885
I recently learned structs and i was wondering how would i loop through struct instances.
In JASS spells, i always just attach data to units in a hashtable, loop through units and load data from hashtable. But how do i do it with structs?
Do i need to somehow attach struct instances to units, loop through units and load data from instances? (If so, how would i attach 'em?)
Or do i loop through instances and load corresponding units saved in instances? (If so, how would i loop through instances?)
Or is there some way i didn't think of?
In JASS spells, i always just attach data to units in a hashtable, loop through units and load data from hashtable. But how do i do it with structs?
Do i need to somehow attach struct instances to units, loop through units and load data from instances? (If so, how would i attach 'em?)
Or do i loop through instances and load corresponding units saved in instances? (If so, how would i loop through instances?)
Or is there some way i didn't think of?