Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
If I have a item, remove it and instantly create a new item,
would the new item have the same handle id as the one destroyed?
or does the counter increase infinitely?
If you remove/destroy a handle (and assuming you null all pointers) it's handle ID will be freed/recycled. (meaning, it will be available for use) The counter will not increase infinitely.
I don't remember whether it does it so that the last removed that gets priority for use or if it is the first removed that gets priority for use though.
If I have a item, remove it and instantly create a new item,
would the new item have the same handle id as the one destroyed?
or does the counter increase infinitely?
in ur case u cant use hashtable for keep tracking the handle id?
or something else like u make linked list for keep tracking the item handle id?
or just use item custom value, so something liek this item custom value = handleid(item)?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.