Struct event_builder_typed

Synopsis

#include <include/flecs/addons/cpp/mixins/event/builder.hpp>

template <typename E>
struct event_builder_typed : event_builder_base<event_builder_typed<E>, E>

Description

No description yet.

Inheritance

Ancestors: event_builder_base

Methods

ctx

Source

Lines 120-133 in include/flecs/addons/cpp/mixins/event/builder.hpp.

template <typename E>
struct event_builder_typed : event_builder_base<event_builder_typed<E>, E> {
private:
    using Class = event_builder_typed<E>;

public:
    using event_builder_base<Class, E>::event_builder_base;

    /* Set event data */
    Class& ctx(const E& ptr) {
        this->m_desc.param = &ptr;
        return *this;
    }
};