Add ecs::entity_container::attach/detach declarations (no implementation yet)
This commit is contained in:
parent
fee1f647b2
commit
0f621a9f3f
1 changed files with 12 additions and 0 deletions
|
|
@ -37,6 +37,18 @@ namespace psemek::ecs
|
||||||
// or if the entity isn't active
|
// or if the entity isn't active
|
||||||
entity_accessor get(entity_handle const & entity);
|
entity_accessor get(entity_handle const & entity);
|
||||||
|
|
||||||
|
// Attach new components to an existing entity
|
||||||
|
// If the entity already has a component, its value
|
||||||
|
// is replaced with a new one
|
||||||
|
// TODO: implement
|
||||||
|
template <typename ... Components>
|
||||||
|
void attach(entity_handle const & entity, Components && ... components);
|
||||||
|
|
||||||
|
// Remove components from an existing entity
|
||||||
|
// TODO: implement
|
||||||
|
template <typename ... Components>
|
||||||
|
void detach(entity_handle const & entity);
|
||||||
|
|
||||||
// Create a query cache that can be used for the
|
// Create a query cache that can be used for the
|
||||||
// apply() call to speed it up
|
// apply() call to speed it up
|
||||||
template <typename ... Components>
|
template <typename ... Components>
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue