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

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

Loading...
Searching...
No Matches
EcsScript Struct Reference
C API » Addons » Flecs script

Script component. More...

`#include <script.h>`

## Public Attributes
char * | filename
| Script filename.
char * | code
| Script source code.
char * | error
| Set if script evaluation had errors.
ecs_script_t * | script
| Parsed script object.
ecs_script_template_t * | template_
| Only set for template scripts.

## Detailed Description

Script component.

This component is added to the entities of managed scripts and templates.

Definition at line 99 of file script.h.

## Member Data Documentation

## ◆ code

char* EcsScript::code

Script source code.

Definition at line 101 of file script.h.

## ◆ error

char* EcsScript::error

Set if script evaluation had errors.

Definition at line 102 of file script.h.

## ◆ filename

char* EcsScript::filename

Script filename.

Definition at line 100 of file script.h.

## ◆ script

ecs_script_t* EcsScript::script

Parsed script object.

Definition at line 103 of file script.h.

## ◆ template_

ecs_script_template_t* EcsScript::template_

Only set for template scripts.

Definition at line 104 of file script.h.

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

- include/flecs/addons/script.h