![]() |
Flecs v4.1
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 a component to emit for. | |
| template<typename First , typename Second > | |
| Base & | id () |
| Add a pair to emit for. | |
| template<typename First > | |
| Base & | id (entity_t second) |
| Add a pair to emit for. | |
| Base & | id (entity_t first, entity_t second) |
| Add a pair to emit for. | |
| template<typename Enum , if_t< is_enum< Enum >::value > = 0> | |
| Base & | id (Enum value) |
| Add an enum constant to emit for. | |
| Base & | id (flecs::id_t id) |
| Add a (component) ID to emit for. | |
| Base & | entity (flecs::entity_t e) |
| Set the entity for which to emit the event. | |
| Base & | table (flecs::table_t *t, int32_t offset=0, int32_t count=0) |
| Set the table for which to emit the event. | |
| Base & | ctx (const E *ptr) |
| Set event data (const). | |
| Base & | ctx (E *ptr) |
| Set event data (mutable). | |
| void | emit () |
| Emit the event. | |
| void | enqueue () |
| Enqueue the event. | |
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 |
Set event data (const).
Definition at line 104 of file builder.hpp.
|
inline |
Set event data (mutable).
Definition at line 110 of file builder.hpp.
|
inline |
Emit the event.
Definition at line 116 of file builder.hpp.
|
inline |
Enqueue the event.
Definition at line 124 of file builder.hpp.
|
inline |
Set the entity for which to emit the event.
Definition at line 90 of file builder.hpp.
|
inline |
Add a component to emit for.
Definition at line 31 of file builder.hpp.
|
inline |
Add a pair to emit for.
| First | The first element of the pair. |
| Second | The second element of the pair. |
Definition at line 44 of file builder.hpp.
|
inline |
Add a pair to emit for.
| first | The first element of the pair. |
| second | The second element of the pair. |
Definition at line 65 of file builder.hpp.
|
inline |
Add a pair to emit for.
| First | The first element of the pair. |
| second | The second element of the pair. |
Definition at line 56 of file builder.hpp.
|
inline |
Add an enum constant to emit for.
| Enum | The enum type. |
| value | The enum constant value. |
Definition at line 75 of file builder.hpp.
|
inline |
Add a (component) ID to emit for.
Definition at line 82 of file builder.hpp.
|
inline |
Set the table for which to emit the event.
Definition at line 96 of file builder.hpp.
|
protected |
Definition at line 133 of file builder.hpp.
|
protected |
Definition at line 134 of file builder.hpp.
|
protected |
Definition at line 135 of file builder.hpp.
|
protected |
Definition at line 132 of file builder.hpp.