World class.
More...
Go to the source code of this file.
|
template<typename T , if_t< is_flecs_constructible< T >::value > = 0> |
void | flecs::set (world_t *world, flecs::entity_t entity, T &&value, flecs::id_t id) |
|
template<typename T , if_t< is_flecs_constructible< T >::value > = 0> |
void | flecs::set (world_t *world, flecs::entity_t entity, const T &value, flecs::id_t id) |
|
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) |
|
template<typename T , typename A > |
void | flecs::set (world_t *world, entity_t entity, A &&value) |
|
template<typename T , typename A > |
void | flecs::set (world_t *world, entity_t entity, const A &value) |
|
flecs::id_t | flecs::strip_generation (flecs::entity_t e) |
| Return id without generation.
|
|
uint32_t | flecs::get_generation (flecs::entity_t e) |
| Return entity generation.
|
|
World class.
Definition in file world.hpp.
◆ emplace()
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 ) |
|
inline |
◆ get_generation()
uint32_t flecs::get_generation |
( |
flecs::entity_t | e | ) |
|
|
inline |
Return entity generation.
Definition at line 119 of file world.hpp.
◆ set() [1/4]
template<typename T , typename A >
void flecs::set |
( |
world_t * | world, |
|
|
entity_t | entity, |
|
|
A && | value ) |
|
inline |
◆ set() [2/4]
template<typename T , typename A >
void flecs::set |
( |
world_t * | world, |
|
|
entity_t | entity, |
|
|
const A & | value ) |
|
inline |
◆ set() [3/4]
template<typename T , if_t< is_flecs_constructible< T >::value > = 0>
void flecs::set |
( |
world_t * | world, |
|
|
flecs::entity_t | entity, |
|
|
const T & | value, |
|
|
flecs::id_t | id ) |
|
inline |
◆ set() [4/4]
template<typename T , if_t< is_flecs_constructible< T >::value > = 0>
void flecs::set |
( |
world_t * | world, |
|
|
flecs::entity_t | entity, |
|
|
T && | value, |
|
|
flecs::id_t | id ) |
|
inline |
◆ strip_generation()
flecs::id_t flecs::strip_generation |
( |
flecs::entity_t | e | ) |
|
|
inline |