Flecs
v4.0
A fast entity component system (ECS) for C & C++
Loading...
Searching...
No Matches
query.inl
1
7
flecs::string
to_json
(
flecs::iter_to_json_desc_t
*desc =
nullptr
) {
8
ecs_iter_t
it =
ecs_query_iter
(
ecs_get_world
(query_), query_);
9
char
*json =
ecs_iter_to_json
(&it, desc);
10
return
flecs::string
(json);
11
}
ecs_iter_to_json
FLECS_API char * ecs_iter_to_json(ecs_iter_t *iter, const ecs_iter_to_json_desc_t *desc)
Serialize iterator into JSON string.
flecs::query_base::to_json
flecs::string to_json(flecs::iter_to_json_desc_t *desc=nullptr)
Serialize query to JSON.
Definition
query.inl:7
ecs_query_iter
ecs_iter_t ecs_query_iter(const ecs_world_t *world, const ecs_query_t *query)
Create a query iterator.
ecs_get_world
const ecs_world_t * ecs_get_world(const ecs_poly_t *poly)
Get world from poly.
ecs_iter_t
Iterator.
Definition
flecs.h:1062
ecs_iter_to_json_desc_t
Used with ecs_iter_to_json().
Definition
json.h:290
flecs::string
Definition
string.hpp:13