Euphoria
eu::core::ecs Namespace Reference

Classes

struct  Signature
 
struct  AliveEntities
 
struct  KnownComponentTypes
 
struct  AllComponents
 
struct  RegistryPimpl
 
struct  ComponentArrayBase
 
struct  GenericComponentArray
 
struct  Registry
 

Enumerations

enum  EntityHandle : U64
 
enum  ComponentIndex : U8
 

Functions

std::size_t c_comp (ComponentIndex v)
 
std::size_t c_ent (EntityHandle v)
 
EntityHandle c_ent (std::size_t v)
 
ComponentIndex c_comp (std::size_t v)
 
template<typename T >
constexpr std::string_view get_component_base_name ()
 

Enumeration Type Documentation

◆ ComponentIndex

Definition at line 13 of file ecs.id.h.

◆ EntityHandle

Definition at line 12 of file ecs.id.h.

Function Documentation

◆ c_comp() [1/2]

std::size_t eu::core::ecs::c_comp ( ComponentIndex  v)

Definition at line 12 of file ecs.cc.

◆ c_comp() [2/2]

ComponentIndex eu::core::ecs::c_comp ( std::size_t  v)

Definition at line 15 of file ecs.cc.

◆ c_ent() [1/2]

std::size_t eu::core::ecs::c_ent ( EntityHandle  v)

Definition at line 13 of file ecs.cc.

◆ c_ent() [2/2]

EntityHandle eu::core::ecs::c_ent ( std::size_t  v)

Definition at line 14 of file ecs.cc.

◆ get_component_base_name()

template<typename T >
constexpr std::string_view eu::core::ecs::get_component_base_name ( )
constexpr

Definition at line 21 of file ecs.h.