Flecs v3.2
A fast entity component system (ECS) for C & C++
Loading...
Searching...
No Matches
ecs_from_json_desc_t Struct Reference

Used with ecs_ptr_from_json, ecs_entity_from_json. More...

#include <json.h>

Public Attributes

const char * name
 Name of expression (used for logging) More...
 
const char * expr
 Full expression (used for logging) More...
 
ecs_entity_t(* lookup_action )(const ecs_world_t *, const char *value, void *ctx)
 Callback that allows for specifying a custom lookup function. More...
 
void * lookup_ctx
 

Detailed Description

Used with ecs_ptr_from_json, ecs_entity_from_json.

Definition at line 33 of file json.h.

Member Data Documentation

◆ expr

const char* ecs_from_json_desc_t::expr

Full expression (used for logging)

Definition at line 35 of file json.h.

◆ lookup_action

ecs_entity_t(* ecs_from_json_desc_t::lookup_action) (const ecs_world_t *, const char *value, void *ctx)

Callback that allows for specifying a custom lookup function.

The default behavior uses ecs_lookup_fullpath

Definition at line 39 of file json.h.

◆ lookup_ctx

void* ecs_from_json_desc_t::lookup_ctx

Definition at line 43 of file json.h.

◆ name

const char* ecs_from_json_desc_t::name

Name of expression (used for logging)

Definition at line 34 of file json.h.


The documentation for this struct was generated from the following file: