Euphoria
eu::core::ecs::AliveEntities Struct Reference

Public Member Functions

EntityHandle create ()
 
void destroy (EntityHandle h)
 
void set_component (EntityHandle handle, ComponentIndex component, bool has)
 
std::vector< EntityHandleview (const std::vector< ComponentIndex > &matching_components) const
 
bool has_components (EntityHandle handle, const std::vector< ComponentIndex > &components) const
 
int get_count () const
 

Public Attributes

std::vector< Signaturesignatures
 
std::vector< EntityHandlefree_handles
 

Detailed Description

Definition at line 48 of file ecs.cc.

Member Function Documentation

◆ create()

EntityHandle eu::core::ecs::AliveEntities::create ( )
inline

Definition at line 53 of file ecs.cc.

◆ destroy()

void eu::core::ecs::AliveEntities::destroy ( EntityHandle  h)
inline

Definition at line 69 of file ecs.cc.

◆ get_count()

int eu::core::ecs::AliveEntities::get_count ( ) const
inline

Definition at line 112 of file ecs.cc.

◆ has_components()

bool eu::core::ecs::AliveEntities::has_components ( EntityHandle  handle,
const std::vector< ComponentIndex > &  components 
) const
inline

Definition at line 96 of file ecs.cc.

◆ set_component()

void eu::core::ecs::AliveEntities::set_component ( EntityHandle  handle,
ComponentIndex  component,
bool  has 
)
inline

Definition at line 75 of file ecs.cc.

◆ view()

std::vector<EntityHandle> eu::core::ecs::AliveEntities::view ( const std::vector< ComponentIndex > &  matching_components) const
inline

Definition at line 81 of file ecs.cc.

Member Data Documentation

◆ free_handles

std::vector<EntityHandle> eu::core::ecs::AliveEntities::free_handles

Definition at line 51 of file ecs.cc.

◆ signatures

std::vector<Signature> eu::core::ecs::AliveEntities::signatures

Definition at line 50 of file ecs.cc.


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