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

Enumeration constant data. More...

#include <enum.hpp>

Public Attributes

int32_t index
 Global index used to obtain a world-local entity ID.
value
 The constant value.
offset
 Offset from the previous constant value.
const char * name
 The constant name.

Detailed Description

template<typename T>
struct flecs::_::enum_constant< T >

Enumeration constant data.

Template Parameters
TThe underlying type of the enum.

Definition at line 321 of file enum.hpp.

Member Data Documentation

◆ index

template<typename T>
int32_t flecs::_::enum_constant< T >::index

Global index used to obtain a world-local entity ID.

Definition at line 323 of file enum.hpp.

◆ name

template<typename T>
const char* flecs::_::enum_constant< T >::name

The constant name.

Definition at line 329 of file enum.hpp.

◆ offset

template<typename T>
T flecs::_::enum_constant< T >::offset

Offset from the previous constant value.

Definition at line 327 of file enum.hpp.

◆ value

template<typename T>
T flecs::_::enum_constant< T >::value

The constant value.

Definition at line 325 of file enum.hpp.


The documentation for this struct was generated from the following file:
  • include/flecs/addons/cpp/utils/enum.hpp