Flecs: ecs_component_desc_t Struct Reference
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
Public Attributes | List of all members
ecs_component_desc_t Struct Reference
C API » Core » API types | C API » Core » Components

Used with ecs_component_init(). More...

`#include <flecs.h>`

## Public Attributes
int32_t | _canary
| Used for validity testing.
ecs_entity_t | entity
| Existing entity to associate with observer (optional)
ecs_type_info_t | type
| Parameters for type (size, hooks, ...)

## Detailed Description

Used with ecs_component_init().

Definition at line 1088 of file flecs.h.

## Member Data Documentation

## ◆ _canary

int32_t ecs_component_desc_t::_canary

Used for validity testing.

Must be 0.

Definition at line 1089 of file flecs.h.

## ◆ entity

ecs_entity_t ecs_component_desc_t::entity

Existing entity to associate with observer (optional)

Definition at line 1092 of file flecs.h.

## ◆ type

ecs_type_info_t ecs_component_desc_t::type

Parameters for type (size, hooks, ...)

Definition at line 1095 of file flecs.h.

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

- include/flecs.h