Struct ecs_event_desc_t


#include <include/flecs.h>

typedef struct ecs_event_desc_t


No description yet.


Lines 2834-2853 in include/flecs.h.

typedef struct ecs_event_desc_t {
    ecs_entity_t event;
    ecs_ids_t *ids; /* When NULL, notify for all ids in entity/table type */
    ecs_payload_kind_t payload_kind;
    union {
        ecs_entity_t entity;
        struct {
            ecs_table_t *table;
            ecs_table_t *other_table;
            int32_t offset;
            int32_t count; /* When 0 notify all entities starting from offset */
        } table;
    } payload;

    void *param; /* Assigned to iter param member */

    /* Observable for which to notify the triggers/observers. If NULL, the
     * world will be used as observable. */
    ecs_poly_t *observable;
} ecs_event_desc_t;