![]() |
Flecs v3.2
A fast entity component system (ECS) for C & C++
|
Functions for serializing to/from JSON. More...
Typedefs | |
| using | flecs::from_json_desc_t = ecs_from_json_desc_t |
| using | flecs::entity_to_json_desc_t = ecs_entity_to_json_desc_t |
| using | flecs::iter_to_json_desc_t = ecs_iter_to_json_desc_t |
Functions | |
| const char * | flecs::entity::from_json (const char *json) |
| Deserialize entity to JSON. | |
| Self & | flecs::entity_builder< Self >::set_json (flecs::id_t e, const char *json, flecs::from_json_desc_t *desc=nullptr) |
| Set component from JSON. | |
| Self & | flecs::entity_builder< Self >::set_json (flecs::entity_t r, flecs::entity_t t, const char *json, flecs::from_json_desc_t *desc=nullptr) |
| Set pair from JSON. | |
| template<typename T > | |
| Self & | flecs::entity_builder< Self >::set_json (const char *json, flecs::from_json_desc_t *desc=nullptr) |
| Set component from JSON. | |
| template<typename R , typename T > | |
| Self & | flecs::entity_builder< Self >::set_json (const char *json, flecs::from_json_desc_t *desc=nullptr) |
| Set pair from JSON. | |
| template<typename R > | |
| Self & | flecs::entity_builder< Self >::set_json (flecs::entity_t t, const char *json, flecs::from_json_desc_t *desc=nullptr) |
| Set pair from JSON. | |
| template<typename T > | |
| Self & | flecs::entity_builder< Self >::set_json_second (flecs::entity_t r, const char *json, flecs::from_json_desc_t *desc=nullptr) |
| Set pair from JSON. | |
| flecs::string | flecs::entity_view::to_json (const flecs::entity_to_json_desc_t *desc=nullptr) |
| Serialize entity to JSON. | |
| flecs::string | flecs::iter::to_json (flecs::iter_to_json_desc_t *desc=nullptr) |
| Serialize iterator result to JSON. | |
| flecs::string | flecs::world::to_json (flecs::entity_t tid, const void *value) |
| Serialize untyped value to JSON. | |
| template<typename T > | |
| flecs::string | flecs::world::to_json (const T *value) |
| Serialize value to JSON. | |
| flecs::string | flecs::world::to_json () |
| Serialize world to JSON. | |
| const char * | flecs::world::from_json (flecs::entity_t tid, void *value, const char *json, flecs::from_json_desc_t *desc=nullptr) |
| Deserialize value from JSON. | |
| template<typename T > | |
| const char * | flecs::world::from_json (T *value, const char *json, flecs::from_json_desc_t *desc=nullptr) |
| Deserialize value from JSON. | |
| const char * | flecs::world::from_json (const char *json, flecs::from_json_desc_t *desc=nullptr) |
| Deserialize JSON into world. | |
Functions for serializing to/from JSON.
| using flecs::entity_to_json_desc_t = typedef ecs_entity_to_json_desc_t |
| using flecs::from_json_desc_t = typedef ecs_from_json_desc_t |
| using flecs::iter_to_json_desc_t = typedef ecs_iter_to_json_desc_t |
| const char * from_json | ( | const char * | json | ) |
Deserialize entity to JSON.
Definition at line 7 of file entity.inl.
| const char * from_json | ( | const char * | json, |
| flecs::from_json_desc_t * | desc = nullptr |
||
| ) |
| const char * from_json | ( | flecs::entity_t | tid, |
| void * | value, | ||
| const char * | json, | ||
| flecs::from_json_desc_t * | desc = nullptr |
||
| ) |
| const char * from_json | ( | T * | value, |
| const char * | json, | ||
| flecs::from_json_desc_t * | desc = nullptr |
||
| ) |
| Self & set_json | ( | const char * | json, |
| flecs::from_json_desc_t * | desc = nullptr |
||
| ) |
Set component from JSON.
Definition at line 50 of file entity_builder.inl.
| Self & set_json | ( | const char * | json, |
| flecs::from_json_desc_t * | desc = nullptr |
||
| ) |
Set pair from JSON.
Definition at line 63 of file entity_builder.inl.
| Self & set_json | ( | flecs::entity_t | r, |
| flecs::entity_t | t, | ||
| const char * | json, | ||
| flecs::from_json_desc_t * | desc = nullptr |
||
| ) |
Set pair from JSON.
Definition at line 35 of file entity_builder.inl.
| Self & set_json | ( | flecs::entity_t | t, |
| const char * | json, | ||
| flecs::from_json_desc_t * | desc = nullptr |
||
| ) |
Set pair from JSON.
Definition at line 79 of file entity_builder.inl.
| Self & set_json | ( | flecs::id_t | e, |
| const char * | json, | ||
| flecs::from_json_desc_t * | desc = nullptr |
||
| ) |
Set component from JSON.
Definition at line 11 of file entity_builder.inl.
| Self & set_json_second | ( | flecs::entity_t | r, |
| const char * | json, | ||
| flecs::from_json_desc_t * | desc = nullptr |
||
| ) |
Set pair from JSON.
Definition at line 95 of file entity_builder.inl.
| flecs::string to_json | ( | ) |
| flecs::string to_json | ( | const flecs::entity_to_json_desc_t * | desc = nullptr | ) |
Serialize entity to JSON.
Definition at line 11 of file entity_view.inl.
| flecs::string to_json | ( | const T * | value | ) |
| flecs::string to_json | ( | flecs::entity_t | tid, |
| const void * | value | ||
| ) |
| flecs::string to_json | ( | flecs::iter_to_json_desc_t * | desc = nullptr | ) |
Serialize iterator result to JSON.
Definition at line 11 of file iterable.inl.