|
guillaume 2026.6.1
A C++ UI framework designed for modern desktop and extended reality (XR) applications.
|
Visits owners before what they own: the entities owned by the scene first, then the entities those own, and so on. More...
#include <headers/guillaume/ecs/level_order_traveler.hpp>


Public Member Functions | |
| std::vector< std::shared_ptr< Entity > > | travel (EntityRegistry &entityRegistry) const override |
| List every entity below a registry, parents before children. | |
| std::vector< std::shared_ptr< const Entity > > | travel (const EntityRegistry &entityRegistry) const override |
| List every entity below a registry, parents before children, read-only. | |
| Public Member Functions inherited from guillaume::ecs::EntityTreeTraveler | |
| virtual | ~EntityTreeTraveler (void)=default |
| Virtual destructor. | |
Visits owners before what they own: the entities owned by the scene first, then the entities those own, and so on.
For a scene owning A and B, where A owns A1 and A2 and B owns B1, the order is A, B, A1, A2, B1. Used by the Layout and Render phases, where a parent must be placed before its children.
Definition at line 42 of file level_order_traveler.hpp.
|
overridevirtual |
List every entity below a registry, parents before children, read-only.
| entityRegistry | The registry to start from, usually the scene. |
Implements guillaume::ecs::EntityTreeTraveler.
Definition at line 37 of file level_order_traveler.cpp.

|
overridevirtual |
List every entity below a registry, parents before children.
| entityRegistry | The registry to start from, usually the scene. |
Implements guillaume::ecs::EntityTreeTraveler.
Definition at line 31 of file level_order_traveler.cpp.
