Skip to content
Flecs
v4.1
Search
Ctrl K
include
flecs
addons
cpp
mixins
module
mixin.inl
Go to the documentation of this file.
1
/**
2
* @file addons/cpp/mixins/module/mixin.inl
3
* @brief Module world mixin.
4
*/
5
6
/**
7
* @memberof flecs::world
8
* @ingroup cpp_addons_modules
9
*
10
* @{
11
*/
12
13
/** Define a module.
14
* This operation is not mandatory, but can be called inside the module ctor to
15
* obtain the entity associated with the module, or override the module name.
16
*
17
* @tparam Module module class.
18
* @return Module entity.
19
*/
20
template
<
typename
Module>
21
flecs::entity
module
(
const
char
*name =
nullptr
)
const
;
22
23
/** Import a module.
24
*
25
* @tparam Module module class.
26
* @return Module entity.
27
*/
28
template
<
typename
Module>
29
flecs::entity
import
();
30
31
/** @} */
flecs::entity
Entity.
Definition
entity.hpp:30
flecs::world::module
flecs::entity module(const char *name=nullptr) const
Define a module.
Esc
↑
↓
to navigate
↵
to open
Esc
to close