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

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

Loading...
Searching...
No Matches
entity.inl
Go to the documentation of this file.
1
5
11 const char* from_json(const char *json) {
12 return ecs_entity_from_json(world_, id_, json, nullptr);
13}
ecs_entity_from_json
FLECS_API const char * ecs_entity_from_json(ecs_world_t *world, ecs_entity_t entity, const char *json, const ecs_from_json_desc_t *desc)
Parse JSON object with multiple component values into an entity.
flecs::entity::from_json
const char * from_json(const char *json)
Deserialize an entity from JSON.
Definition entity.inl:11
flecs::id::id_
flecs::id_t id_
The raw ID value.
Definition decl.hpp:149
flecs::id::world_
flecs::world_t * world_
World is optional, but guarantees that entity identifiers extracted from the ID are valid.
Definition decl.hpp:147