|
EnTT 3.13.2
|
Collector. More...
#include <observer.hpp>
Public Types | |
| using | current_type = matcher<type_list<Reject...>, type_list<Require...>, Rule...> |
| Current matcher. | |
Static Public Member Functions | |
| template<typename... AllOf, typename... NoneOf> | |
| static constexpr auto | group (exclude_t< NoneOf... >=exclude_t{}) noexcept |
| Adds a grouping matcher to the collector. | |
| template<typename AnyOf > | |
| static constexpr auto | update () noexcept |
| Adds an observing matcher to the collector. | |
| template<typename... AllOf, typename... NoneOf> | |
| static constexpr auto | where (exclude_t< NoneOf... >=exclude_t{}) noexcept |
| Updates the filter of the last added matcher. | |
Collector.
A collector contains a set of rules (literally, matchers) to use to track entities.
Its main purpose is to generate a descriptor that allows an observer to know how to connect to a registry.
| Reject | Untracked types used to filter out entities. |
| Require | Untracked types required by the matcher. |
| Rule | Specific details of the current matcher. |
| Other | Other matchers. |
Definition at line 70 of file observer.hpp.
| using entt::basic_collector< matcher< type_list< Reject... >, type_list< Require... >, Rule... >, Other... >::current_type = matcher<type_list<Reject...>, type_list<Require...>, Rule...> |
Current matcher.
Definition at line 72 of file observer.hpp.
|
inlinestaticconstexprnoexcept |
Adds a grouping matcher to the collector.
| AllOf | Types of components tracked by the matcher. |
| NoneOf | Types of components used to filter out entities. |
Definition at line 81 of file observer.hpp.
|
inlinestaticconstexprnoexcept |
Adds an observing matcher to the collector.
| AnyOf | Type of component for which changes should be detected. |
Definition at line 91 of file observer.hpp.
|
inlinestaticconstexprnoexcept |
Updates the filter of the last added matcher.
| AllOf | Types of components required by the matcher. |
| NoneOf | Types of components used to filter out entities. |
Definition at line 102 of file observer.hpp.