template<typename... Components>
class vex::View< Components >
Provides iteration over entities that have all specified component types.
View is a query interface that allows efficient iteration over all entities matching a given component signature. It uses the first component type as the primary storage to iterate over, then filters based on presence of other components.
- Template Parameters
-
| Components | Variable number of component types that entities must have. |
- Note
- This is a lightweight, non-owning view into the Registry's component data. The Registry must remain valid for the lifetime of the View.
- Examples
- /home/devu/Documents/Projects/VEX/Engine/Core/include/components/ECS/ECS.hpp.
Definition at line 17 of file View.hpp.