Euphoria
eu::core::ecs::AllComponents Struct Reference

Public Member Functions

void set_component_array (ComponentIndex comp_ind, std::unique_ptr< ComponentArrayBase > &&components)
 
void destroy_entity (EntityHandle entity)
 
ComponentArrayBaseget_components_base (ComponentIndex comp_ind)
 
const ComponentArrayBaseget_components_base (ComponentIndex comp_ind) const
 

Public Attributes

std::vector< std::unique_ptr< ComponentArrayBase > > component_arrays
 

Detailed Description

Definition at line 151 of file ecs.cc.

Member Function Documentation

◆ destroy_entity()

void eu::core::ecs::AllComponents::destroy_entity ( EntityHandle  entity)
inline

Definition at line 164 of file ecs.cc.

◆ get_components_base() [1/2]

ComponentArrayBase* eu::core::ecs::AllComponents::get_components_base ( ComponentIndex  comp_ind)
inline

Definition at line 172 of file ecs.cc.

◆ get_components_base() [2/2]

const ComponentArrayBase* eu::core::ecs::AllComponents::get_components_base ( ComponentIndex  comp_ind) const
inline

Definition at line 180 of file ecs.cc.

◆ set_component_array()

void eu::core::ecs::AllComponents::set_component_array ( ComponentIndex  comp_ind,
std::unique_ptr< ComponentArrayBase > &&  components 
)
inline

Definition at line 155 of file ecs.cc.

Member Data Documentation

◆ component_arrays

std::vector<std::unique_ptr<ComponentArrayBase> > eu::core::ecs::AllComponents::component_arrays

Definition at line 153 of file ecs.cc.


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