class
ecs::RuntimeView
Creates a view that allows you to iterate over all entities that match included
& excluded type filter.
Unlike TView, included and excluded type filters can be changed dynamically at runtime, rather than having to be known at compile time. However runtime views are less performant than regular views.
Public
Constructors
RuntimeView
RuntimeView
RuntimeView
Methods
~RuntimeView
Include
Adds a storage that the entity must be a part of in order to be included in the view.
Exclude
Adds a storage that the entity must not be a part of in order to be included in the view.
Clear
Clears all filters from the view.
GetSizeEstimate
Returns a rough number of elements in the view, based on the number of elements in the leading storage.
Begin
Iterator to the first entity matching the view filter.
End
Iterator past the last entity matching the view filter.
Contains
Returns true if the provided entity matches the view filter.