Skip to content
Flecs v4.1
decl.hpp
Go to the documentation of this file.
1/**
2 * @file addons/cpp/mixins/alerts/decl.hpp
3 * @brief Alert declarations.
4 */
5
6#pragma once
7
8namespace flecs {
9
10/**
11 * @defgroup cpp_addons_alerts Alerts
12 * @ingroup cpp_addons
13 * Alert implementation.
14 *
15 * @{
16 */
17
18/** Module. */
19struct alerts {
20 using AlertsActive = EcsAlertsActive;
21 using Instance = EcsAlertInstance;
22
23 struct Alert { };
24 struct Info { };
25 struct Warning { };
26 struct Error { };
27
28 alerts(flecs::world& world);
29};
30
31template <typename ... Components>
32struct alert;
33
34template <typename ... Components>
35struct alert_builder;
36
37/** @} */
38
39}
Component added to alert instance.
Definition alerts.h:51
Map with active alerts for entity.
Definition alerts.h:56
Alert builder.
Definition builder.hpp:24
The world.
Definition world.hpp:129