Flecs: Events
Description: A fast entity component system (ECS) for C & C++

| Flecs v4.0 A fast entity component system (ECS) for C & C++

Loading...
Searching...
No Matches
Classes | Functions
Events
C++ API » Addons

API for emitting events. More...

Collaboration diagram for Events:

## 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.
template<typename E >
flecs::event_builder_typed< E > | flecs::world::event () const
| Create a new event.

## Detailed Description

API for emitting events.

API for emitting events.

## Function Documentation

## ◆ event() [1/2]

template<typename E >

flecs::event_builder_typed< E > flecs::world::event | ( |  | ) | const
| inline

Create a new event.

Template Parameters

  E | The event type.

Returns
  Event builder.

Definition at line 20 of file impl.hpp.

## ◆ event() [2/2]

flecs::event_builder flecs::world::event | ( | flecs::entity_t | evt | ) | const
| inline

Create a new event.

Parameters

  evt | The event id.

Returns
  Event builder.

Definition at line 15 of file impl.hpp.