Entities, components, queries
Entity handles, plain-data components and cached queries over the ECS.
| Type | Kind | Description |
|---|---|---|
Component |
class | An immutable rich text component (vanilla “text component”): text, translatable text, keybind, score or selector content with a style and children. |
Component<T> |
class | Per-type component id cache. |
Ecs |
class | ECS access scoped to a plugin (plugin.Ecs): custom components, queries and raw entities. |
Entity |
struct | Handle to an ECS entity (flecs id). |
Query |
class | A cached ECS query. |
Query<T1, T2, T3> |
class | A query over three component types. |
Query<T1, T2> |
class | A query over two component types. |
Query<T1> |
class | A query over one component type. |
QueryAction<T1, T2, T3> |
delegate | Callback for Each over three components. |
QueryAction<T1, T2> |
delegate | Callback for Each over two components. |
QueryAction<T1> |
delegate | Callback for Each over one component. |
QueryChunk |
struct | One archetype’s worth of query results: entity ids and one column per query term. |
QueryEnumerator |
struct | Iterates archetype chunks. |