Flecs v4.0
A fast entity component system (ECS) for C & C++
Loading...
Searching...
No Matches
ecs_expr_eval_desc_t Struct Reference

Used with ecs_expr_run(). More...

#include <script.h>

Public Attributes

const char * name
 Script name.
 
const char * expr
 Full expression string.
 
const ecs_script_vars_tvars
 Variables accessible in expression.
 
ecs_entity_t type
 Type of parsed value (optional)
 
ecs_entity_t(* lookup_action )(const ecs_world_t *, const char *value, void *ctx)
 
void * lookup_ctx
 Context passed to lookup function.
 
bool disable_folding
 Disable constant folding (slower evaluation, faster parsing)
 
bool disable_dynamic_variable_binding
 This option instructs the expression runtime to lookup variables by stack pointer instead of by name, which improves performance.
 
bool allow_unresolved_identifiers
 Allow for unresolved identifiers when parsing.
 
ecs_script_runtime_t * runtime
 Reusable runtime (optional)
 

Detailed Description

Used with ecs_expr_run().

Definition at line 539 of file script.h.

Member Data Documentation

◆ allow_unresolved_identifiers

bool ecs_expr_eval_desc_t::allow_unresolved_identifiers

Allow for unresolved identifiers when parsing.

Useful when entities can be created in between parsing & evaluating.

Definition at line 560 of file script.h.

◆ disable_dynamic_variable_binding

bool ecs_expr_eval_desc_t::disable_dynamic_variable_binding

This option instructs the expression runtime to lookup variables by stack pointer instead of by name, which improves performance.

Only enable when provided variables are always declared in the same order.

Definition at line 556 of file script.h.

◆ disable_folding

bool ecs_expr_eval_desc_t::disable_folding

Disable constant folding (slower evaluation, faster parsing)

Definition at line 551 of file script.h.

◆ expr

const char* ecs_expr_eval_desc_t::expr

Full expression string.

Definition at line 541 of file script.h.

◆ lookup_action

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

Definition at line 544 of file script.h.

◆ lookup_ctx

void* ecs_expr_eval_desc_t::lookup_ctx

Context passed to lookup function.

Definition at line 548 of file script.h.

◆ name

const char* ecs_expr_eval_desc_t::name

Script name.

Definition at line 540 of file script.h.

◆ runtime

ecs_script_runtime_t* ecs_expr_eval_desc_t::runtime

Reusable runtime (optional)

Definition at line 562 of file script.h.

◆ type

ecs_entity_t ecs_expr_eval_desc_t::type

Type of parsed value (optional)

Definition at line 543 of file script.h.

◆ vars

const ecs_script_vars_t* ecs_expr_eval_desc_t::vars

Variables accessible in expression.

Definition at line 542 of file script.h.


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