Flecs v4.0
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)
 
const char * expr
 Full expression (used for logging)
 
ecs_entity_t(* lookup_action )(const ecs_world_t *, const char *value, void *ctx)
 Callback that allows for specifying a custom lookup function.
 
void * lookup_ctx
 
bool strict
 Require components to be registered with reflection data.
 

Detailed Description

Used with ecs_ptr_from_json(), ecs_entity_from_json().

Definition at line 37 of file json.h.

Member Data Documentation

◆ expr

const char* ecs_from_json_desc_t::expr

Full expression (used for logging)

Definition at line 39 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()

Definition at line 43 of file json.h.

◆ lookup_ctx

void* ecs_from_json_desc_t::lookup_ctx

Definition at line 47 of file json.h.

◆ name

const char* ecs_from_json_desc_t::name

Name of expression (used for logging)

Definition at line 38 of file json.h.

◆ strict

bool ecs_from_json_desc_t::strict

Require components to be registered with reflection data.

When not in strict mode, values for components without reflection are ignored.

Definition at line 51 of file json.h.


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