Flecs v3.1
A fast entity component system (ECS) for C & C++
Loading...
Searching...
No Matches
Events

API for emitting events. More...

Classes

struct  flecs::event_builder_base< Base, E >
 Event builder interface. More...
 

Functions

flecs::event_builder flecs::world::event (flecs::entity_t evt) const
 Create a new event. More...
 
template<typename E >
flecs::event_builder_typed< E > flecs::world::event () const
 Create a new event. More...
 

Detailed Description

API for emitting events.

Function Documentation

◆ event() [1/2]

template<typename E >
flecs::event_builder_typed< E > event ( ) const

Create a new event.

Template Parameters
EThe event type.
Returns
Event builder.

◆ event() [2/2]

flecs::event_builder event ( flecs::entity_t  evt) const

Create a new event.

Parameters
evtThe event id.
Returns
Event builder.