Skip to content
Flecs v4.1
mixin.inl
Go to the documentation of this file.
1/**
2 * @file addons/cpp/mixins/entity/mixin.inl
3 * @brief Entity world mixin.
4 */
5
6/** Create an entity.
7 *
8 * @memberof flecs::world
9 * @ingroup cpp_entities
10 */
11template <typename... Args>
12flecs::entity entity(Args &&... args) const;
13
14/** Convert an enum constant to an entity.
15 *
16 * @memberof flecs::world
17 * @ingroup cpp_entities
18 */
19template <typename E, if_t< is_enum<E>::value > = 0>
20flecs::id id(E value) const;
21
22/** Convert an enum constant to an entity.
23 *
24 * @memberof flecs::world
25 * @ingroup cpp_entities
26 */
27template <typename E, if_t< is_enum<E>::value > = 0>
28flecs::entity entity(E value) const;
29
30/** Create an entity that's associated with a type.
31 *
32 * @memberof flecs::world
33 * @ingroup cpp_entities
34 */
35template <typename T>
36flecs::entity entity(const char *name = nullptr) const;
Entity.
Definition entity.hpp:30
Class that wraps around a flecs::id_t.
Definition decl.hpp:27
flecs::entity entity(E value) const
Convert an enum constant to an entity.
flecs::entity entity(const char *name=nullptr) const
Create an entity that's associated with a type.
flecs::entity entity(Args &&... args) const
Create an entity.
flecs::id id(E value) const
Convert an enum constant to an entity.