I searched around SC2mapster but was unable to find an answer-hopefully this isn't a redundant question.
Let's say I have 12 special units to keep track of, so I create an array of 12 units. I also want to keep track of their starting locations, their unit types, and a score value for them, so I make separate arrays for points, unit types, and integers.
Is it possible to combine all these arrays into one array of objects?
I searched around SC2mapster but was unable to find an answer-hopefully this isn't a redundant question.
Let's say I have 12 special units to keep track of, so I create an array of 12 units. I also want to keep track of their starting locations, their unit types, and a score value for them, so I make separate arrays for points, unit types, and integers.
Is it possible to combine all these arrays into one array of objects?
(Hopefully I worded that all clearly!)
Thanks!
Yes. Structs which in GUI are called Records
Just note that due retardness of Galaxy you can't pass them as parameters or return them
Ah, I see. I saw records but couldn't figure them out-that link helped quite a bit. Thanks!