Euphoria
eu::core::ecs::KnownComponentTypes Struct Reference

Public Member Functions

ComponentIndex add (const std::string &name)
 
ComponentIndex get_index (const std::string &name)
 
std::string get_name (ComponentIndex c)
 

Public Attributes

std::unordered_map< std::string, ComponentIndexname_to_index
 
std::vector< std::string > index_to_name
 

Detailed Description

Definition at line 122 of file ecs.cc.

Member Function Documentation

◆ add()

ComponentIndex eu::core::ecs::KnownComponentTypes::add ( const std::string &  name)
inline

Definition at line 127 of file ecs.cc.

◆ get_index()

ComponentIndex eu::core::ecs::KnownComponentTypes::get_index ( const std::string &  name)
inline

Definition at line 137 of file ecs.cc.

◆ get_name()

std::string eu::core::ecs::KnownComponentTypes::get_name ( ComponentIndex  c)
inline

Definition at line 144 of file ecs.cc.

Member Data Documentation

◆ index_to_name

std::vector<std::string> eu::core::ecs::KnownComponentTypes::index_to_name

Definition at line 125 of file ecs.cc.

◆ name_to_index

std::unordered_map<std::string, ComponentIndex> eu::core::ecs::KnownComponentTypes::name_to_index

Definition at line 124 of file ecs.cc.


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