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

#include <entity_archetype.hpp>

Inheritance diagram for neolib::ecs::entity_archetype:
neolib::ecs::i_entity_archetype neogfx::game::renderable_entity_archetype neogfx::game::animated_sprite_2d_archetype neogfx::game::animated_sprite_archetype neogfx::game::animation_archetype neogfx::game::sprite_2d_archetype neogfx::game::sprite_archetype

Public Member Functions

 entity_archetype (const entity_archetype_id &aId, const std::string &aName, std::initializer_list< component_id > aComponents)
 
 entity_archetype (const std::string &aName, std::initializer_list< component_id > aComponents)
 
 entity_archetype (const entity_archetype &aOther)
 
 entity_archetype (entity_archetype &&aOther)
 
const entity_archetype_idid () const override
 
const i_stringname () const override
 
const i_set< component_id > & components () const override
 
i_set< component_id > & components () override
 
void populate_default_components (i_ecs &aEcs, entity_id aEntity) override
 

Detailed Description

Definition at line 48 of file entity_archetype.hpp.

Constructor & Destructor Documentation

◆ entity_archetype() [1/4]

neolib::ecs::entity_archetype::entity_archetype ( const entity_archetype_id aId,
const std::string &  aName,
std::initializer_list< component_id aComponents 
)

◆ entity_archetype() [2/4]

neolib::ecs::entity_archetype::entity_archetype ( const std::string &  aName,
std::initializer_list< component_id aComponents 
)

◆ entity_archetype() [3/4]

neolib::ecs::entity_archetype::entity_archetype ( const entity_archetype aOther)

◆ entity_archetype() [4/4]

neolib::ecs::entity_archetype::entity_archetype ( entity_archetype &&  aOther)

Member Function Documentation

◆ components() [1/2]

const i_set< component_id > & neolib::ecs::entity_archetype::components ( ) const
overridevirtual

◆ components() [2/2]

i_set< component_id > & neolib::ecs::entity_archetype::components ( )
overridevirtual

◆ id()

const entity_archetype_id & neolib::ecs::entity_archetype::id ( ) const
overridevirtual

◆ name()

const i_string & neolib::ecs::entity_archetype::name ( ) const
overridevirtual

◆ populate_default_components()

void neolib::ecs::entity_archetype::populate_default_components ( i_ecs aEcs,
entity_id  aEntity 
)
overridevirtual

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