Event builder interface. More...
#include <builder.hpp>
Public Member Functions | |
| event_builder_base (flecs::world_t *world, flecs::entity_t event) | |
| template<typename... T, typename... Args> | |
| Base & | id (Args... args) |
| 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 51 of file builder.hpp.
|
inline |
Set event data (mutable).
Definition at line 57 of file builder.hpp.
|
inline |
Emit the event.
Definition at line 63 of file builder.hpp.
|
inline |
Enqueue the event.
Definition at line 71 of file builder.hpp.
|
inline |
Set the entity for which to emit the event.
Definition at line 37 of file builder.hpp.
|
inline |
Definition at line 30 of file builder.hpp.
|
inline |
Set the table for which to emit the event.
Definition at line 43 of file builder.hpp.
|
protected |
Definition at line 80 of file builder.hpp.
|
protected |
Definition at line 81 of file builder.hpp.
|
protected |
Definition at line 82 of file builder.hpp.
|
protected |
Definition at line 79 of file builder.hpp.