Closed mrtrizer closed 7 years ago
This could be solved if Entity in destructor will notify all child entities and components about destruction process and pass pure pointer to them. Or even simplier, just keep pure pointer to the parent Entity instead of SafePtr. This even can improve performance a bit.
This is a pain in the ass. This causes problems in deinitialization after app closing (components are not deinitialized properly. Also this problem makes pretty difficult to work with subtrees out of a main hierarchy.