CeresEngine 0.2.0
A game development framework
Loading...
Searching...
No Matches
CeresEngine::ComponentSet< Cs > Struct Template Reference

#include <CeresEngine/Entity/Component.hpp>

Public Types

template<template< typename... > typename T>
using Apply = T< Cs... >
 Applies all components Cs into the template type T as T<Cs...>.
 

Static Public Member Functions

static ComponentMask getComponentMask () noexcept
 A trait that contains the minimum component mask for that includes all components in the set.
 

Static Public Attributes

template<CComponent C>
static constexpr bool includes = (std::is_same_v<C, Cs> || ...)
 Checks if all Cs are valid component types.
 

Member Typedef Documentation

◆ Apply

template<CComponent... Cs>
template<template< typename... > typename T>
using CeresEngine::ComponentSet< Cs >::Apply = T<Cs...>

Applies all components Cs into the template type T as T<Cs...>.

Template Parameters
Tthe template type to appli the components into

Member Function Documentation

◆ getComponentMask()

template<CComponent... Cs>
static ComponentMask CeresEngine::ComponentSet< Cs >::getComponentMask ( )
inlinestaticnoexcept

A trait that contains the minimum component mask for that includes all components in the set.

Member Data Documentation

◆ includes

template<CComponent... Cs>
template<CComponent C>
constexpr bool CeresEngine::ComponentSet< Cs >::includes = (std::is_same_v<C, Cs> || ...)
inlinestaticconstexpr

Checks if all Cs are valid component types.

A trait that checks if the component type C is included in the component set

Template Parameters
Cthe component type

The documentation for this struct was generated from the following file: