Flecs v4.1
A fast entity component system (ECS) for C & C++
Loading...
Searching...
No Matches
Built-in component types.

Types that represent built-in components. More...

Collaboration diagram for Built-in component types.:

Classes

struct  EcsIdentifier
 A (string) identifier. More...
 
struct  EcsComponent
 Component information. More...
 
struct  EcsPoly
 Component for storing a poly object. More...
 
struct  EcsDefaultChildComponent
 When added to an entity, this informs serialization formats which component to use when a value is assigned to an entity without specifying the component. More...
 
struct  EcsParent
 Non-fragmenting ChildOf relationship. More...
 
struct  ecs_tree_spawner_child_t
 Component with data to instantiate a non-fragmenting tree. More...
 
struct  ecs_tree_spawner_t
 Tree spawner data for a single hierarchy depth. More...
 
struct  EcsTreeSpawner
 Tree instantiation cache component. More...
 

Typedefs

typedef struct EcsIdentifier EcsIdentifier
 A (string) identifier.
 
typedef struct EcsComponent EcsComponent
 Component information.
 
typedef struct EcsPoly EcsPoly
 Component for storing a poly object.
 
typedef struct EcsDefaultChildComponent EcsDefaultChildComponent
 When added to an entity, this informs serialization formats which component to use when a value is assigned to an entity without specifying the component.
 
typedef struct EcsParent EcsParent
 Non-fragmenting ChildOf relationship.
 
typedef struct EcsTreeSpawner EcsTreeSpawner
 Tree instantiation cache component.
 

Detailed Description

Types that represent built-in components.

Typedef Documentation

◆ EcsDefaultChildComponent

typedef struct EcsDefaultChildComponent EcsDefaultChildComponent

When added to an entity, this informs serialization formats which component to use when a value is assigned to an entity without specifying the component.

This is intended as a hint; serialization formats are not required to use it. Adding this component does not change the behavior of core ECS operations.

◆ EcsIdentifier

typedef struct EcsIdentifier EcsIdentifier

A (string) identifier.

Used as a pair with EcsName and EcsSymbol tags.

◆ EcsTreeSpawner

typedef struct EcsTreeSpawner EcsTreeSpawner

Tree instantiation cache component.

Tree instantiation cache, indexed by depth. Tables will have a (ParentDepth, depth) pair indicating the hierarchy depth. This means that for different depths, the tables the children are created in will also be different. Caching tables for different depths therefore speeds up instantiating trees even when the top-level entity is not at the root.