Narks
Vastly intelligent whale-like being from the stars
- Reaction score
- 90
Okay, so I have a few questions regarding structs:
- when I allocate a new struct, will it recycle unused indexes (like I create a struct using index 1, 2, 3, destroy 2, will the next struct by created using 2 or 4?)
- how can I iterate through all struct instances?
- say my struct has an X and Y coordinate stored in it, and I have an ability that looks for all struct instances in range of the ability being used - what is the most efficient way to handle this (speed is main focus here, as this ability can be spammed...)
- when I allocate a new struct, will it recycle unused indexes (like I create a struct using index 1, 2, 3, destroy 2, will the next struct by created using 2 or 4?)
- how can I iterate through all struct instances?
- say my struct has an X and Y coordinate stored in it, and I have an ability that looks for all struct instances in range of the ability being used - what is the most efficient way to handle this (speed is main focus here, as this ability can be spammed...)