Flecs v3.1
A fast entity component system (ECS) for C & C++
Loading...
Searching...
No Matches
Entities

Entity operations. More...

Classes

struct  flecs::entity
 Entity. More...
 
struct  flecs::entity_view
 Entity view. More...
 
struct  flecs::entity_builder< Self >
 Entity builder. More...
 

Functions

template<typename... Args>
flecs::entity flecs::world::entity (Args &&... args) const
 Create an entity.
 
template<typename E , if_t< is_enum< E >::value > = 0>
flecs::entity flecs::world::id (E value) const
 Convert enum constant to entity.
 
template<typename E , if_t< is_enum< E >::value > = 0>
flecs::entity flecs::world::entity (E value) const
 Convert enum constant to entity.
 
template<typename... Args>
flecs::entity flecs::world::prefab (Args &&... args) const
 Create a prefab.
 
template<typename T >
flecs::entity flecs::world::entity (const char *name=nullptr) const
 Create an entity that's associated with a type.
 
template<typename T >
flecs::entity flecs::world::prefab (const char *name=nullptr) const
 Create a prefab that's associated with a type.
 
template<typename E >
flecs::entity_view::to_constant () const
 Convert entity to enum constant. More...
 
template<typename E , if_t< is_enum< E >::value > = 0>
flecs::entity flecs::world::to_entity (E constant) const
 Convert enum constant to entity.
 

Detailed Description

Entity operations.

Function Documentation

◆ to_constant()

template<typename E >
E flecs::entity_view::to_constant
inline

Convert entity to enum constant.

Definition at line 11 of file impl.hpp.