Function get_alive

Synopsis

#include <include/flecs/addons/cpp/world.hpp>

flecs::entity get_alive(flecs::entity_t e) const

Description

Get alive entity for id. Returns the entity with the current generation.

See
ecs_get_alive

Source

Lines 139-142 in include/flecs/addons/cpp/impl/world.hpp. Line 810 in include/flecs/addons/cpp/world.hpp.

inline flecs::entity world::get_alive(flecs::entity_t e) const {
    e = ecs_get_alive(m_world, e);
    return flecs::entity(m_world, e);
}