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

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

Member Data Documentation

◆ callback

ecs_function_callback_t EcsScriptMethod::callback

Definition at line 138 of file script.h.

◆ ctx

void* EcsScriptMethod::ctx

Definition at line 139 of file script.h.

◆ params

ecs_vec_t EcsScriptMethod::params

Definition at line 137 of file script.h.

◆ return_type

ecs_entity_t EcsScriptMethod::return_type

Definition at line 136 of file script.h.


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