Template Class archetype¶
Defined in File archetype.hpp
Inheritance Relationships¶
Base Type¶
public legion::core::ecs::archetype_base
(Class archetype_base)
Class Documentation¶
-
template<typename
component_type
, typename ...component_types
>
classlegion::core::ecs
::
archetype
: public legion::core::ecs::archetype_base¶ API object for grouping multiple component types together. legion::core::transform.
Public Types
-
using
handleGroup
= std::tuple<component_handle<component_type>, component_handle<component_types>...>¶
Public Functions
-
archetype
() = default¶
-
inline
archetype
(const handleGroup &handles)¶
-
template<typename
T
>
inline component_handle<T>get
()¶ Get the handle to one of the components in the archetype.
-
template<std::size_t
I
>
inline autoget
() -> decltype(auto)¶
-
inline bool
valid
()¶
-
inline
operator bool
()¶
Public Members
-
handleGroup
handles
¶
Friends
- friend class EcsRegistry
-
using