Embrace_It
New Member
- Reaction score
- 9
Suppose you have a unit/hero with a specific handle id (through GetHandleId(...)) and this integer is used, in whatever system, you have for struct attachment.
What if the unit dies? Is it assigned a new id? A new id that hashes to the same location? Or maybe it simply keeps the old id until it is removed from the game?
For systems that need to persist even if the unit/hero dies and is thereafter revived, for example an inventory system, I imagine this could be a problem.
What if the unit dies? Is it assigned a new id? A new id that hashes to the same location? Or maybe it simply keeps the old id until it is removed from the game?
For systems that need to persist even if the unit/hero dies and is thereafter revived, for example an inventory system, I imagine this could be a problem.