Flecs v4.0
A fast entity component system (ECS) for C & C++
|
Modules organize components, systems and more in reusable units of code. More...
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. | |
Modules organize components, systems and more in reusable units of code.
|
related |
Import a module.
Module | module class. |
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.
Module | module class. |