|
CoriEngine
|
A wrapper for an EnTT runtime view that provides an iterator to access Entity instances directly. More...
#include <EntityView.hpp>
Classes | |
| class | Iterator |
Public Types | |
| using | UnderlyingIterator = entt::runtime_view::iterator |
Public Member Functions | |
| DynamicEntityView (entt::registry ®istry) | |
| Constructs a runtime view wrapper. | |
| template<typename... T> | |
| DynamicEntityView & | With () & |
| Adds one or more component types to the view's filter. | |
| template<typename... T> | |
| DynamicEntityView && | With () && |
| Adds one or more component types to the view's filter. | |
| template<typename... T> | |
| DynamicEntityView & | Without () & |
| Excludes one or more component types from the view's filter. | |
| template<typename... T> | |
| DynamicEntityView && | Without () && |
| Excludes one or more component types from the view's filter. | |
| size_t | SizeHint () const |
| Checks the estimate amount of entities in the view. | |
| bool | Contains (const Entity entity) const |
| Checks if view contains a specific entity. | |
| void | Clear () |
| Completely clear the view. | |
| auto | begin () |
| auto | end () |
A wrapper for an EnTT runtime view that provides an iterator to access Entity instances directly.
This view is configured at runtime, offering flexibility at a slight performance cost compared to a compile-time/static view. Use this when the exact set of components to iterate over is not known at compile-time.
Definition at line 107 of file EntityView.hpp.
| using Cori::World::DynamicEntityView::UnderlyingIterator = entt::runtime_view::iterator |
Definition at line 181 of file EntityView.hpp.
|
inlineexplicit |
Constructs a runtime view wrapper.
| registry | A reference to the EnTT registry. |
Definition at line 114 of file EntityView.hpp.
|
inline |
Definition at line 211 of file EntityView.hpp.
|
inline |
Completely clear the view.
Definition at line 177 of file EntityView.hpp.
|
inlinenodiscard |
Checks if view contains a specific entity.
| entity | Entity to check the presence of. |
Definition at line 170 of file EntityView.hpp.

|
inline |
Definition at line 212 of file EntityView.hpp.
|
inlinenodiscard |
Checks the estimate amount of entities in the view.
Definition at line 161 of file EntityView.hpp.
|
inline |
Adds one or more component types to the view's filter.
| T | The component types to include. |
Definition at line 122 of file EntityView.hpp.

|
inline |
Adds one or more component types to the view's filter.
| T | The component types to include. |
Definition at line 132 of file EntityView.hpp.

|
inline |
Excludes one or more component types from the view's filter.
| T | The component types to exclude. |
Definition at line 142 of file EntityView.hpp.

|
inline |
Excludes one or more component types from the view's filter.
| T | The component types to exclude. |
Definition at line 152 of file EntityView.hpp.
