Skip to content
Flecs v4.1
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 */
20template <typename Module>
21flecs::entity module(const char *name = nullptr) const;
22
23/** Import a module.
24 *
25 * @tparam Module module class.
26 * @return Module entity.
27 */
28template <typename Module>
30
31/** @} */
Entity.
Definition entity.hpp:30
flecs::entity module(const char *name=nullptr) const
Define a module.