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

Modules organize components, systems and more in reusable units of code. More...

Collaboration diagram for Modules:
template<typename Module >
flecs::entity flecs::world::module (const char *name=nullptr) const
 Define a module.
 
template<typename Module >
flecs::entity import ()
 Import a module.
 

Detailed Description

Modules organize components, systems and more in reusable units of code.

Function Documentation

◆ import()

template<typename Module >
flecs::entity import ( )
related

Import a module.

Template Parameters
Modulemodule class.
Returns
Module entity.

◆ module()

template<typename Module >
flecs::entity module ( const char * name = nullptr) const

Define a module.

This operation is not mandatory, but can be called inside the module ctor to obtain the entity associated with the module, or override the module name.

Template Parameters
Modulemodule class.
Returns
Module entity.