alecthomas / entityx

EntityX - A fast, type-safe C++ Entity-Component system
MIT License
2.23k stars 295 forks source link

First emit entity destruction then emit each remaining component destruction #188

Closed roig closed 7 years ago

roig commented 7 years ago

You were right.. it's useless to receive an entity destruction after the destruction of the components.

And There are situations where you want ordered destruction of components, so this change is needed to remove the components in order when a on_destroy_entity is emitted.