Add ecs::entity_container::attach/detach declarations (no implementation yet)

This commit is contained in:
Nikita Lisitsa 2023-08-23 00:05:12 +03:00
parent fee1f647b2
commit 0f621a9f3f

View file

@ -37,6 +37,18 @@ namespace psemek::ecs
// or if the entity isn't active
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
// apply() call to speed it up
template <typename ... Components>