Flecs v4.0
A fast entity component system (ECS) for C & C++
Loading...
Searching...
No Matches
flecs::_::enum_type< E > Struct Template Reference

Class that scans an enum for constants, extracts names & creates entities. More...

#include <enum.hpp>

Public Member Functions

flecs::entity_t entity (E value) const
 
void init (flecs::world_t *world, flecs::entity_t id)
 

Static Public Member Functions

static enum_type< E > & get ()
 

Static Public Attributes

static enum_data_impl< E > data
 

Detailed Description

template<typename E>
struct flecs::_::enum_type< E >

Class that scans an enum for constants, extracts names & creates entities.

Definition at line 302 of file enum.hpp.

Member Function Documentation

◆ entity()

template<typename E >
flecs::entity_t flecs::_::enum_type< E >::entity ( E value) const
inline

Definition at line 363 of file enum.hpp.

◆ get()

template<typename E >
static enum_type< E > & flecs::_::enum_type< E >::get ( )
inlinestatic

Definition at line 358 of file enum.hpp.

◆ init()

template<typename E >
void flecs::_::enum_type< E >::init ( flecs::world_t * world,
flecs::entity_t id )
inline

Definition at line 371 of file enum.hpp.

Member Data Documentation

◆ data

template<typename E >
enum_data_impl< E > flecs::_::enum_type< E >::data
static

Definition at line 356 of file enum.hpp.


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