Clementine
|
Converts a registry to a view. More...
#include <entt.hpp>
Public Types | |
using | entity_type = std::remove_const_t< Entity > |
Underlying entity identifier. | |
using | registry_type = constness_as_t< basic_registry< entity_type >, Entity > |
Type of registry to convert. | |
Public Member Functions | |
as_view (registry_type &source) ENTT_NOEXCEPT | |
Constructs a converter for a given registry. More... | |
template<typename Exclude , typename... Component> | |
operator basic_view< entity_type, Exclude, Component... > () const | |
Conversion function from a registry to a view. More... | |
Converts a registry to a view.
Entity | A valid entity type (see entt_traits for more details). |
|
inline |
Constructs a converter for a given registry.
source | A valid reference to a registry. |
|
inline |
Conversion function from a registry to a view.
Exclude | Types of components used to filter the view. |
Component | Type of components used to construct the view. |