Template Class archetype

Inheritance Relationships

Base Type

Class Documentation

template<typename component_type, typename ...component_types>
class legion::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 auto get() -> decltype(auto)
inline bool valid()
inline operator bool()

Public Members

handleGroup handles


friend class EcsRegistry