Skip to content
Flecs
v4.1
Search
Ctrl K
include
flecs
addons
cpp
mixins
alerts
entity_view.inl
Go to the documentation of this file.
1
/**
2
* @file addons/cpp/mixins/alerts/entity_view.inl
3
* @brief Alerts entity mixin.
4
*/
5
6
/** Return the number of alerts for an entity.
7
*
8
* @memberof flecs::entity_view
9
* @ingroup cpp_addons_alerts
10
*/
11
int32_t
alert_count
(
flecs::entity_t
alert
= 0)
const
{
12
return
ecs_get_alert_count
(
world_
,
id_
,
alert
);
13
}
ecs_get_alert_count
FLECS_API int32_t ecs_get_alert_count(const ecs_world_t *world, ecs_entity_t entity, ecs_entity_t alert)
Return number of active alerts for entity.
flecs::entity_t
ecs_entity_t entity_t
Entity type.
Definition
c_types.hpp:21
flecs::alert
Definition
impl.hpp:14
flecs::entity_view::alert_count
int32_t alert_count(flecs::entity_t alert=0) const
Return the number of alerts for an entity.
Definition
entity_view.inl:11
flecs::id::id_
flecs::id_t id_
The raw ID value.
Definition
decl.hpp:154
flecs::id::world_
flecs::world_t * world_
World is optional, but guarantees that entity identifiers extracted from the ID are valid.
Definition
decl.hpp:152
Esc
↑
↓
to navigate
↵
to open
Esc
to close