Function is_alive

Synopsis

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

bool is_alive() const

Description

Check is entity is alive.

Returns
True if the entity is alive, false otherwise.

Source

Lines 56-58 in include/flecs/addons/cpp/entity_view.hpp.

bool is_alive() const {
    return m_world && ecs_is_alive(m_world, m_id);
}