|
| template<typename T > |
| void | flecs::set (world_t *world, flecs::entity_t entity, T &&value, flecs::id_t id) |
| | Static helper functions to assign a component value.
|
| |
| template<typename T > |
| void | flecs::set (world_t *world, flecs::entity_t entity, const T &value, flecs::id_t id) |
| | Set a component value using copy semantics.
|
| |
| template<typename T , typename A > |
| void | flecs::set (world_t *world, entity_t entity, A &&value) |
| | Set a component value using move semantics, with automatic ID lookup.
|
| |
| template<typename T , typename A > |
| void | flecs::set (world_t *world, entity_t entity, const A &value) |
| | Set a component value using copy semantics, with automatic ID lookup.
|
| |
| template<typename T > |
| void | flecs::assign (world_t *world, flecs::entity_t entity, T &&value, flecs::id_t id) |
| | Assign a component value using move semantics.
|
| |
| template<typename T > |
| void | flecs::assign (world_t *world, flecs::entity_t entity, const T &value, flecs::id_t id) |
| | Assign a component value using copy semantics.
|
| |
| template<typename T , typename A > |
| void | flecs::assign (world_t *world, entity_t entity, A &&value) |
| | Assign a component value using move semantics, with automatic ID lookup.
|
| |
| template<typename T , typename A > |
| void | flecs::assign (world_t *world, entity_t entity, const A &value) |
| | Assign a component value using copy semantics, with automatic ID lookup.
|
| |
| template<typename T , typename ... Args, if_t< std::is_constructible< actual_type_t< T >, Args... >::value||std::is_default_constructible< actual_type_t< T > >::value > = 0> |
| void | flecs::emplace (world_t *world, flecs::entity_t entity, flecs::id_t id, Args &&... args) |
| | Emplace a component value, constructing it in place.
|
| |
| flecs::id_t | flecs::strip_generation (flecs::entity_t e) |
| | Return the ID without generation.
|
| |
| uint32_t | flecs::get_generation (flecs::entity_t e) |
| | Return the entity generation.
|
| |
World class.
Definition in file world.hpp.
template<typename T , typename ... Args, if_t< std::is_constructible< actual_type_t< T >, Args... >::value||std::is_default_constructible< actual_type_t< T > >::value > = 0>
Emplace a component value, constructing it in place.
- Template Parameters
-
| T | The component type. |
| Args | Constructor argument types. |
- Parameters
-
| world | The world. |
| entity | The entity. |
| id | The component ID. |
| args | Constructor arguments. |
Definition at line 202 of file world.hpp.