Flecs: EcsScriptMethod 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
EcsScriptMethod Struct Reference
C API » Addons » Flecs script

Method component. More...

`#include <script.h>`

## Public Attributes
ecs_entity_t | return_type
ecs_vec_t | params
ecs_function_callback_t | callback
void * | ctx

## Detailed Description

Method component.

This component describes a method that can be called from a script. Methods are functions that can be called on instances of a type. A method entity is stored in the scope of the type it belongs to.

Definition at line 144 of file script.h.

## Member Data Documentation

## ◆ callback

ecs_function_callback_t EcsScriptMethod::callback

Definition at line 147 of file script.h.

## ◆ ctx

void* EcsScriptMethod::ctx

Definition at line 148 of file script.h.

## ◆ params

ecs_vec_t EcsScriptMethod::params

Definition at line 146 of file script.h.

## ◆ return_type

ecs_entity_t EcsScriptMethod::return_type

Definition at line 145 of file script.h.

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

- include/flecs/addons/script.h