Modules organize components, systems and more in reusable units of code.
More...
Modules organize components, systems and more in reusable units of code.
◆ import()
template<typename Module >
Import a module.
- Template Parameters
-
- Returns
- Module entity.
Definition at line 109 of file impl.hpp.
◆ module()
template<typename Module >
flecs::entity flecs::world::module |
( |
const char * | name = nullptr | ) |
const |
|
inline |
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
-
- Returns
- Module entity.
Definition at line 81 of file impl.hpp.