- Joined
- Feb 6, 2014
- Messages
- 2,466
Hello fellow modders/coders, I have a few question regarding struct array members because I don't have JNGP at the moment so I can't test it myself
1. If the struct extends an array, can I still assign array members?
If that is the case, does allocation work differently?
2. Example my struct has an integer array member Q[5]. What are the index after JassHelper compiles?
this.Q[1] -> Si_Struct_Q[this*5 + 1]??
this.Q[4] -> Si_Struct_Q[this*5 + 4]??
1. If the struct extends an array, can I still assign array members?
If that is the case, does allocation work differently?
2. Example my struct has an integer array member Q[5]. What are the index after JassHelper compiles?
this.Q[1] -> Si_Struct_Q[this*5 + 1]??
this.Q[4] -> Si_Struct_Q[this*5 + 4]??