Flecs v4.1
A fast entity component system (ECS) for C & C++
Loading...
Searching...
No Matches
ecs_alert_severity_filter_t Struct Reference

Alert severity filter. More...

#include <alerts.h>

Public Attributes

ecs_entity_t severity
 Severity kind.
 
ecs_id_t with
 Component to match.
 
const char * var
 Variable to match component on.
 
int32_t _var_index
 Index of variable in query (do not set).
 

Detailed Description

Alert severity filter.

A severity filter can adjust the severity of an alert based on whether an entity in the alert query has a specific component. For example, a filter could check if an entity has the "Production" tag, and increase the default severity of an alert from Warning to Error.

Definition at line 69 of file alerts.h.

Member Data Documentation

◆ _var_index

int32_t ecs_alert_severity_filter_t::_var_index

Index of variable in query (do not set).

Definition at line 74 of file alerts.h.

◆ severity

ecs_entity_t ecs_alert_severity_filter_t::severity

Severity kind.

Definition at line 70 of file alerts.h.

◆ var

const char* ecs_alert_severity_filter_t::var

Variable to match component on.

Do not include the '$' character. Leave as NULL for $this.

Definition at line 72 of file alerts.h.

◆ with

ecs_id_t ecs_alert_severity_filter_t::with

Component to match.

Definition at line 71 of file alerts.h.


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