Flecs v4.0
A fast entity component system (ECS) for C & C++
Loading...
Searching...
No Matches
Components

Registering and working with components. More...

Collaboration diagram for Components:

Classes

struct  flecs::untyped_component
 Untyped component class. More...
 
struct  flecs::component< T >
 Component class. More...
 

Functions

template<typename T, typename... Args>
flecs::component< T > flecs::world::component (Args &&... args) const
 Find or register component.
 
template<typename... Args>
flecs::untyped_component flecs::world::component (Args &&... args) const
 Find or register untyped component.
 

Detailed Description

Registering and working with components.

Function Documentation

◆ component() [1/2]

template<typename T, typename... Args>
flecs::component< T > flecs::world::component ( Args &&... args) const
inline

Find or register component.

Definition at line 11 of file impl.hpp.

◆ component() [2/2]

template<typename... Args>
flecs::untyped_component flecs::world::component ( Args &&... args) const
inline

Find or register untyped component.

Method available on flecs::world class.

Definition at line 16 of file impl.hpp.