![]() |
Flecs v3.2
A fast entity component system (ECS) for C & C++
|
Event builder interface. More...
#include <builder.hpp>
Public Member Functions | |
event_builder_base (flecs::world_t *world, flecs::entity_t event) | |
template<typename T > | |
Base & | id () |
Add component to emit for. More... | |
template<typename First , typename Second > | |
Base & | id () |
Add pair to emit for. More... | |
template<typename First > | |
Base & | id (entity_t second) |
Add pair to emit for. More... | |
Base & | id (entity_t first, entity_t second) |
Add pair to emit for. More... | |
Base & | id (flecs::id_t id) |
Add (component) id to emit for. More... | |
Base & | entity (flecs::entity_t e) |
Set entity for which to emit event. More... | |
Base & | table (flecs::table_t *t, int32_t offset=0, int32_t count=0) |
Base & | ctx (const E *ptr) |
Base & | ctx (E *ptr) |
void | emit () |
void | enqueue () |
Protected Attributes | |
flecs::world_t * | m_world |
ecs_event_desc_t | m_desc |
flecs::type_t | m_ids |
flecs::id_t | m_ids_array [(8)] |
Event builder interface.
Definition at line 19 of file builder.hpp.
|
inline |
Definition at line 20 of file builder.hpp.
|
inline |
Definition at line 92 of file builder.hpp.
|
inline |
Definition at line 98 of file builder.hpp.
|
inline |
Definition at line 103 of file builder.hpp.
|
inline |
Definition at line 110 of file builder.hpp.
|
inline |
Set entity for which to emit event.
Definition at line 78 of file builder.hpp.
|
inline |
Add component to emit for.
Definition at line 31 of file builder.hpp.
|
inline |
Add pair to emit for.
First | The first element of the pair. |
Second | the second element of a pair. |
Definition at line 44 of file builder.hpp.
|
inline |
Add pair to emit for.
first | The first element of the pair type. |
second | The second element of the pair id. |
Definition at line 65 of file builder.hpp.
|
inline |
Add pair to emit for.
First | The first element of the pair. |
second | The second element of the pair id. |
Definition at line 56 of file builder.hpp.
|
inline |
Add (component) id to emit for.
Definition at line 70 of file builder.hpp.
|
inline |
Definition at line 84 of file builder.hpp.
|
protected |
Definition at line 119 of file builder.hpp.
|
protected |
Definition at line 120 of file builder.hpp.
|
protected |
Definition at line 121 of file builder.hpp.
|
protected |
Definition at line 118 of file builder.hpp.