hx3d  1
2D/3D Simple Game Framework
Static Public Member Functions | List of all members
hx3d::ecs::ComponentBits Class Reference

Unique bit attribution for each component. More...

#include <component.hpp>

Static Public Member Functions

template<class T >
static unsigned int get (typename std::enable_if< std::is_base_of< Component, T >::value >::type *test=nullptr)
 Get the bits for the current component type T. More...
 
template<class... Types>
static unsigned int getFamily ()
 Get the bits corresponding to the suite of Types. More...
 

Detailed Description

Unique bit attribution for each component.

Definition at line 44 of file component.hpp.

Member Function Documentation

template<class T >
unsigned int hx3d::ecs::ComponentBits::get ( typename std::enable_if< std::is_base_of< Component, T >::value >::type *  test = nullptr)
static

Get the bits for the current component type T.

Parameters
testT must be a Component
Returns
Bits

Definition at line 23 of file component.hpp.

template<class... Types>
unsigned int hx3d::ecs::ComponentBits::getFamily ( )
static

Get the bits corresponding to the suite of Types.

Returns
Bits

Definition at line 46 of file component.hpp.


The documentation for this class was generated from the following files: