Function ctx

Summary

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

(1) void ctx(void *ctx)

(2) void * ctx() const

Function overload

Synopsis

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

void ctx(void *ctx)

Description

No description yet.

Source

Lines 85-90 in include/flecs/addons/cpp/mixins/system/impl.hpp.

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

Synopsis

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

void * ctx() const

Description

No description yet.

Source

Lines 92-94 in include/flecs/addons/cpp/mixins/system/impl.hpp.

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