The method to register an entity as a child of another entity has previously been protected, and only used to register children when an entity created them in its c'tor. But I think it would be beneficial to allow the user to attach arbitrary entities to another, to transfer ownership.
I'm not 100% sure if this is totally safe. I added a simple test case which works fine, so I guess it's okay for now... :)
The method to register an entity as a child of another entity has previously been protected, and only used to register children when an entity created them in its c'tor. But I think it would be beneficial to allow the user to attach arbitrary entities to another, to transfer ownership.
I'm not 100% sure if this is totally safe. I added a simple test case which works fine, so I guess it's okay for now... :)