Flecs: include/flecs/addons/cpp/mixins/meta/world.inl Source File
Description: A fast entity component system (ECS) for C & C++

| Flecs v4.0 A fast entity component system (ECS) for C & C++

Loading...
Searching...
No Matches
world.inl
Go to the documentation of this file.
1
5
12
14 flecs::cursor cursor(flecs::entity_t tid, void *ptr) {
15 return flecs::cursor(world_, tid, ptr);
16}
17
19template <typename T>
20 flecs::cursor cursor(void *ptr) {
21 flecs::entity_t tid = _::type<T>::id(world_);
22 return cursor(tid, ptr);
23}
24
26 flecs::entity primitive(flecs::meta::primitive_kind_t kind);
27
29 flecs::entity array(flecs::entity_t elem_id, int32_t array_count);
30
32template <typename T>
33 flecs::entity array(int32_t array_count);
34
36 flecs::entity vector(flecs::entity_t elem_id);
37
39template <typename T>
40 flecs::entity vector();
41
flecs::world::cursor
flecs::cursor cursor(flecs::entity_t tid, void *ptr)
Return meta cursor to value.
Definition world.hpp:15
flecs::_::type
Definition flecs.hpp:39
flecs::cursor
Class for reading/writing dynamic values.
Definition cursor.hpp:22
flecs::entity
Entity.
Definition entity.hpp:30
flecs::world::primitive
flecs::entity primitive(flecs::meta::primitive_kind_t kind)
Create primitive type.
flecs::world::array
flecs::entity array(flecs::entity_t elem_id, int32_t array_count)
Create array type.
flecs::world::array
flecs::entity array(int32_t array_count)
Create array type.
flecs::world::vector
flecs::entity vector(flecs::entity_t elem_id)
Create vector type.
flecs::world::vector
flecs::entity vector()
Create vector type.
flecs::world::cursor
flecs::cursor cursor(void *ptr)
Return meta cursor to value.
Definition world.inl:20
flecs::world::cursor
flecs::cursor cursor(flecs::entity_t tid, void *ptr)
Return meta cursor to value.
Definition world.inl:14