Flecs
v4.0
A fast entity component system (ECS) for C & C++
Loading...
Searching...
No Matches
entity_view.inl
Go to the documentation of this file.
1
11
flecs::string
to_json
(
const
flecs::entity_to_json_desc_t
*desc =
nullptr
)
const
{
12
char
*json =
ecs_entity_to_json
(world_, id_, desc);
13
return
flecs::string
(json);
14
}
ecs_entity_to_json
FLECS_API char * ecs_entity_to_json(const ecs_world_t *world, ecs_entity_t entity, const ecs_entity_to_json_desc_t *desc)
Serialize entity into JSON string.
flecs::entity_view::to_json
flecs::string to_json(const flecs::entity_to_json_desc_t *desc=nullptr) const
Serialize entity to JSON.
Definition
entity_view.inl:11
ecs_entity_to_json_desc_t
Used with ecs_iter_to_json().
Definition
json.h:216
flecs::string
Definition
string.hpp:13