Skip to content
Flecs v4.1
mixin.inl
1/**
2 * @file addons/cpp/mixins/entity/mixin.inl
3 * @brief Entity world mixin.
4 */
5
6/** Create a prefab that's associated with a type.
7 *
8 * @memberof flecs::world
9 * @ingroup cpp_entities
10 */
11template <typename T>
12flecs::entity prefab(const char *name = nullptr) const;
13
14/** Create a prefab.
15 *
16 * @memberof flecs::world
17 * @ingroup cpp_entities
18 */
19template <typename... Args>
20flecs::entity prefab(Args &&... args) const;
Entity.
Definition entity.hpp:30
flecs::entity prefab(Args &&... args) const
Create a prefab.
flecs::entity prefab(const char *name=nullptr) const
Create a prefab that's associated with a type.