Function ctx

Summary

#include <include/flecs/addons/cpp/mixins/observer/impl.hpp>

(1) void ctx(void *ctx)

(2) void * ctx() const

Function overload

Synopsis

#include <include/flecs/addons/cpp/mixins/observer/impl.hpp>

void ctx(void *ctx)

Description

No description yet.

Source

Lines 28-33 in include/flecs/addons/cpp/mixins/observer/impl.hpp.

void ctx(void *ctx) {
    ecs_observer_desc_t desc = {};
    desc.entity = m_id;
    desc.ctx = ctx;
    ecs_observer_init(m_world, &desc);
}

Synopsis

#include <include/flecs/addons/cpp/mixins/observer/impl.hpp>

void * ctx() const

Description

No description yet.

Source

Lines 35-37 in include/flecs/addons/cpp/mixins/observer/impl.hpp.

void* ctx() const {
    return ecs_get_observer_ctx(m_world, m_id);
}