Flecs v4.0
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. | |
template<typename First , typename Second > | |
Base & | id () |
Add pair to emit for. | |
template<typename First > | |
Base & | id (entity_t second) |
Add pair to emit for. | |
Base & | id (entity_t first, entity_t second) |
Add pair to emit for. | |
template<typename Enum , if_t< is_enum< Enum >::value > = 0> | |
Base & | id (Enum value) |
Base & | id (flecs::id_t id) |
Add (component) id to emit for. | |
Base & | entity (flecs::entity_t e) |
Set entity for which to emit event. | |
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 * | world_ |
ecs_event_desc_t | desc_ |
flecs::type_t | ids_ |
flecs::id_t | 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 99 of file builder.hpp.
|
inline |
Definition at line 105 of file builder.hpp.
|
inline |
Definition at line 110 of file builder.hpp.
|
inline |
Definition at line 117 of file builder.hpp.
|
inline |
Set entity for which to emit event.
Definition at line 85 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 |
Definition at line 70 of file builder.hpp.
|
inline |
Add (component) id to emit for.
Definition at line 77 of file builder.hpp.
|
inline |
Definition at line 91 of file builder.hpp.
|
protected |
Definition at line 126 of file builder.hpp.
|
protected |
Definition at line 127 of file builder.hpp.
|
protected |
Definition at line 128 of file builder.hpp.
|
protected |
Definition at line 125 of file builder.hpp.