1. Get the reference on how big the entity list is ( you have the number before accessing the map pointer ) so you can do a for loop on exactly the number of things that are around you, not waste resources doing i=1, i<1000 and to not access invalid pointers;
2. Map a struct of informations so you can access their position, type etc;
3. Within the for loop then you can access a pointer of a specific entity by 4 bytes distance apart and select that entity, read it's values by the struct you've made and voila. You're externally reading them.
|