|
R-Type
1.0.1.0
Rewrite of the R-Type game with networking ability
|
A view is a way to iterate over a set of entities that have a specific set of components. More...
#include <View.hpp>
Data Structures | |
| class | Iterator |
| Iterator class for the view. More... | |
Public Types | |
| using | Tuple = std::tuple< size_t, Components &... > |
| The tuple type that will be returned by the iterators. | |
Public Member Functions | |
| View (ecs::Registry ®istry) | |
| Construct a new View object. More... | |
| Iterator | begin () |
| Get the begin iterator. More... | |
| Iterator | end () |
| Get the end iterator. More... | |
Private Attributes | |
| Registry | _registry |
| The registry to iterate over. | |
A view is a way to iterate over a set of entities that have a specific set of components.
| Components | the components that the entities must have |
|
inlineexplicit |
Construct a new View object.
| registry | the registry to iterate over |
|
inline |
Get the begin iterator.
|
inline |
Get the end iterator.