You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 14, 2021. It is now read-only.
The parent should have child added to a vector of children
The child should have its parent handle set to its new parent
Any component with a member of the form ComponentHandle<T> Parent; on the child should have the Parent member set to the parent's component of that type, if it has one.
Any component with a Parent member where !std::is_same_v<T, Component> should result in a compile time error
Any component containing a Parent handle should have its parent set when added to a child entity.
To resolve #34, entity hierarchies need to be implemented. This should be done in the form:
EntityRef parent;EntityRef child;child.SetParent(parent);Behind the scenes:
childadded to a vector of childrenparenthandle set to its new parentComponentHandle<T> Parent;on the child should have theParentmember set to the parent's component of that type, if it has one.Parentmember where!std::is_same_v<T, Component>should result in a compile time error