Flecs v4.0
A fast entity component system (ECS) for C & C++
Loading...
Searching...
No Matches
flecs::event_builder_typed< E > Struct Template Reference
Inheritance diagram for flecs::event_builder_typed< E >:
[legend]

Public Member Functions

Classctx (const E &ptr)
 
Classctx (E &&ptr)
 
- Public Member Functions inherited from flecs::event_builder_base< event_builder_typed< E >, E >
 event_builder_base (flecs::world_t *world, flecs::entity_t event)
 
event_builder_typed< E > & id ()
 Add component to emit for.
 
event_builder_typed< E > & id ()
 Add pair to emit for.
 
event_builder_typed< E > & id (entity_t second)
 Add pair to emit for.
 
event_builder_typed< E > & id (entity_t first, entity_t second)
 Add pair to emit for.
 
event_builder_typed< E > & id (Enum value)
 
event_builder_typed< E > & id (flecs::id_t id)
 Add (component) id to emit for.
 
event_builder_typed< E > & entity (flecs::entity_t e)
 Set entity for which to emit event.
 
event_builder_typed< E > & table (flecs::table_t *t, int32_t offset=0, int32_t count=0)
 
event_builder_typed< E > & ctx (const E *ptr)
 
event_builder_typed< E > & ctx (E *ptr)
 
void emit ()
 
void enqueue ()
 

Additional Inherited Members

- Protected Attributes inherited from flecs::event_builder_base< event_builder_typed< E >, E >
flecs::world_t * world_
 
ecs_event_desc_t desc_
 
flecs::type_t ids_
 
flecs::id_t ids_array_ [(8)]
 

Detailed Description

template<typename E>
struct flecs::event_builder_typed< E >

Definition at line 141 of file builder.hpp.

Member Function Documentation

◆ ctx() [1/2]

template<typename E >
Class & flecs::event_builder_typed< E >::ctx ( const E & ptr)
inline

Definition at line 149 of file builder.hpp.

◆ ctx() [2/2]

template<typename E >
Class & flecs::event_builder_typed< E >::ctx ( E && ptr)
inline

Definition at line 155 of file builder.hpp.


The documentation for this struct was generated from the following file: