|
Estella 0.113.0
A fast 2D and 3D game engine powered by WebAssembly and ECS
|
Iterator for multi-component views. More...
#include <View.hpp>
Public Types | |
| using | PoolsTuple = std::tuple<SparseSet<Components>*...> |
| Tuple type holding pointers to all component pools. | |
Public Member Functions | |
| ViewIterator (const std::vector< Entity > *entities, usize index, PoolsTuple pools) | |
| Constructs an iterator. | |
| Entity | operator* () const |
| Dereferences to get the current entity. | |
| ViewIterator & | operator++ () |
| Advances to the next matching entity. | |
| bool | operator!= (const ViewIterator &other) const |
| Inequality comparison. | |
| bool | operator== (const ViewIterator &other) const |
| Equality comparison. | |
Iterator for multi-component views.
| Components | The component types required |
Iterates over entities from the smallest pool while filtering for entities that have all required components. Automatically skips entities that don't match the full component set.
| using esengine::ecs::ViewIterator< Components >::PoolsTuple = std::tuple<SparseSet<Components>*...> |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |