Flecs: ecs_function_desc_t Struct Reference
Description: A fast entity component system (ECS) for C & C++

| Flecs v4.0 A fast entity component system (ECS) for C & C++

Loading...
Searching...
No Matches
Public Attributes | List of all members
ecs_function_desc_t Struct Reference
C API » Addons » Flecs script

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 675 of file script.h.

## Member Data Documentation

## ◆ callback

ecs_function_callback_t ecs_function_desc_t::callback

Function implementation.

Definition at line 690 of file script.h.

## ◆ ctx

void* ecs_function_desc_t::ctx

Context passed to function implementation.

Definition at line 693 of file script.h.

## ◆ name

const char* ecs_function_desc_t::name

Function name.

Definition at line 677 of file script.h.

## ◆ params

ecs_script_parameter_t ecs_function_desc_t::params[(16)]

Function parameters.

Definition at line 684 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 681 of file script.h.

## ◆ return_type

ecs_entity_t ecs_function_desc_t::return_type

Function return type.

Definition at line 687 of file script.h.

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

- include/flecs/addons/script.h