Every video game needs a way of keeping track of resources. I am going to re-write this later with multi-threading,resource index scaning functions, and object groups but for now I will post what I have. All these functions makes it easy to keep track of all of your resources.
NextResource() will just inc the value also searching the deleted objects array for any open indexes. I only have arrays for what resource I delete freqently. Certain resources are just initally loaded therefore don't require to be dynamic.
Removed!
This snippet is used in my project
Zombie Project: Early WIP.
Any comments, questions, or bugs let me know.
DigitalFury