- Joined
- Jul 3, 2006
- Messages
- 102
I am trying to develop a small system to handle effect delayed destruction using a hashtable.
What I am doing:
Where I am stuck:
How can I keep a list of all alive effects? An array seems logical, but it would be hard to manage the effect indices correctly. Is there a way I am missing?
Is there a way to get all active hashtable keys for example?
What I am doing:
- Store each effect's timeout at the key of its handle.
- Have a timer looping through all registered effects decrementing the timeout.
- Each effect that reaches the timeout is destroyed and removed from the hashtable.
Where I am stuck:
How can I keep a list of all alive effects? An array seems logical, but it would be hard to manage the effect indices correctly. Is there a way I am missing?
Is there a way to get all active hashtable keys for example?






