Lines Matching defs:entity
29 #include <core/ecs/entity.h>
62 void GetComponents(Entity entity, vector<IComponentManager*>& result) override;
67 Entity CloneEntity(const Entity entity) override;
153 // Let listeners know that entity state has changed.
310 void Ecs::GetComponents(Entity entity, vector<IComponentManager*>& result)
315 if (m->HasComponent(entity)) {
357 Entity Ecs::CloneEntity(const Entity entity)
359 if (!EntityUtil::IsValid(entity)) {
364 if (entityManager_.IsAlive(entity)) {
366 const auto id = cm->GetComponentId(entity);
398 [removedEntities](const Entity& entity) {
399 const auto pos = std::lower_bound(removedEntities.cbegin(), removedEntities.cend(), entity,
400 [](const Entity& entity, const Entity& removed) { return entity.id < removed.id; });
401 return ((pos != removedEntities.cend()) && !(entity.id < pos->id));
435 // Let entity manager check entity reference counts
438 // Send entity related events
456 // Destroying components may release the last reference for some entity so we loop until there are no new