neoGFX
Cross-platform C++ app/game engine
Loading...
Searching...
No Matches
neolib::ecs::entity Class Reference

#include <entity.hpp>

Inheritance diagram for neolib::ecs::entity:
neogfx::game::shape::rectangle neogfx::game::shape::text

Public Member Functions

 entity (i_ecs &aEcs, entity_id aId)
 
 entity (i_ecs &aEcs, const entity_archetype_id &aArchetypeId)
 
template<typename... ComponentData>
 entity (i_ecs &aEcs, const entity_archetype_id &aArchetypeId, ComponentData &&... aComponentData)
 
 ~entity ()
 
 entity (const entity &aOther)=delete
 
entityoperator= (const entity &aOther)=delete
 
i_ecsecs () const
 
entity_id id () const
 
bool detached_or_destroyed () const
 
entity_id detach ()
 

Detailed Description

Definition at line 44 of file entity.hpp.

Constructor & Destructor Documentation

◆ entity() [1/4]

neolib::ecs::entity::entity ( i_ecs aEcs,
entity_id  aId 
)

◆ entity() [2/4]

neolib::ecs::entity::entity ( i_ecs aEcs,
const entity_archetype_id aArchetypeId 
)

◆ entity() [3/4]

template<typename... ComponentData>
neolib::ecs::entity::entity ( i_ecs aEcs,
const entity_archetype_id aArchetypeId,
ComponentData &&...  aComponentData 
)
inline

Definition at line 50 of file entity.hpp.

◆ ~entity()

neolib::ecs::entity::~entity ( )

◆ entity() [4/4]

neolib::ecs::entity::entity ( const entity aOther)
delete

Member Function Documentation

◆ detach()

entity_id neolib::ecs::entity::detach ( )

◆ detached_or_destroyed()

bool neolib::ecs::entity::detached_or_destroyed ( ) const

◆ ecs()

i_ecs & neolib::ecs::entity::ecs ( ) const

◆ id()

entity_id neolib::ecs::entity::id ( ) const

◆ operator=()

entity & neolib::ecs::entity::operator= ( const entity aOther)
delete

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