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

Used with ecs_function_init and ecs_method_init. More...

#include <script.h>

Public Attributes

const char * name
 Function name.
 
ecs_entity_t parent
 Parent of function.
 
ecs_script_parameter_t params [(16)]
 Function parameters.
 
ecs_entity_t return_type
 Function return type.
 
ecs_function_callback_t callback
 Function implementation.
 
void * ctx
 Context passed to function implementation.
 

Detailed Description

Used with ecs_function_init and ecs_method_init.

Definition at line 628 of file script.h.

Member Data Documentation

◆ callback

ecs_function_callback_t ecs_function_desc_t::callback

Function implementation.

Definition at line 643 of file script.h.

◆ ctx

void* ecs_function_desc_t::ctx

Context passed to function implementation.

Definition at line 646 of file script.h.

◆ name

const char* ecs_function_desc_t::name

Function name.

Definition at line 630 of file script.h.

◆ params

ecs_script_parameter_t ecs_function_desc_t::params[(16)]

Function parameters.

Definition at line 637 of file script.h.

◆ parent

ecs_entity_t ecs_function_desc_t::parent

Parent of function.

For methods the parent is the type for which the method will be registered.

Definition at line 634 of file script.h.

◆ return_type

ecs_entity_t ecs_function_desc_t::return_type

Function return type.

Definition at line 640 of file script.h.


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