6#ifdef FLECS_SCRIPT_SHELL
12#ifndef FLECS_QUERY_DSL
13#define FLECS_QUERY_DSL
80#ifndef FLECS_SCRIPT_SHELL_H
81#define FLECS_SCRIPT_SHELL_H
88#ifndef FLECS_SCRIPT_SHELL_HISTORY_SIZE
89#define FLECS_SCRIPT_SHELL_HISTORY_SIZE (256)
93typedef struct ecs_shell_result_t {
107typedef struct ecs_shell_resource_t {
110} ecs_shell_resource_t;
127typedef struct EcsCommandSession {
130 int32_t history_size;
137typedef struct EcsScriptShell {
138 ecs_vec_t command_paths;
142typedef struct ecs_shell_session_desc_t {
145 int32_t history_size;
146} ecs_shell_session_desc_t;
149typedef struct ecs_shell_param_info_t {
154} ecs_shell_param_info_t;
157typedef struct ecs_shell_info_t {
165typedef struct ecs_shell_tree_node_t {
168} ecs_shell_tree_node_t;
171typedef struct ecs_shell_component_value_t {
174} ecs_shell_component_value_t;
177typedef struct ecs_shell_entity_info_t {
180 ecs_vec_t components;
182} ecs_shell_entity_info_t;
185typedef struct ecs_shell_doc_info_t {
192} ecs_shell_doc_info_t;
195typedef struct ecs_shell_query_row_t {
198} ecs_shell_query_row_t;
201typedef struct ecs_shell_grep_match_t {
205} ecs_shell_grep_match_t;
208typedef struct ecs_shell_script_info_t {
214} ecs_shell_script_info_t;
217typedef struct ecs_shell_script_line_t {
220} ecs_shell_script_line_t;
223typedef struct ecs_shell_script_match_t {
227} ecs_shell_script_match_t;
230typedef struct ecs_shell_script_location_t {
236} ecs_shell_script_location_t;
239typedef struct ecs_shell_script_error_t {
242} ecs_shell_script_error_t;
244#ifdef FLECS_SCRIPT_INPUT
246typedef struct ecs_shell_pointer_state_t {
247 EcsScriptMouseEvent
event;
249} ecs_shell_pointer_state_t;
275 const ecs_shell_session_desc_t *desc);
290ecs_shell_result_t ecs_shell_run(
301void ecs_shell_result_fini(
303 ecs_shell_result_t *result);
337int ecs_shell_resource_create(
340 const char *content_type,
343 ecs_shell_resource_t *resource);
358void* ecs_shell_resource_read(
363 const char **content_type);
374void FlecsScriptShellImport(
struct ecs_value_t ecs_value_t
Value of a dynamic type.
ecs_id_t ecs_entity_t
An entity identifier.
struct ecs_world_t ecs_world_t
A world is the container for all ECS data and supporting features.
uint64_t ecs_id_t
IDs are the things that can be added to an entity.
script_builder script(const char *name=nullptr) const
Build a script.
#define ECS_COMPONENT_DECLARE(id)
Forward declare a component.
flecs::entity entity(Args &&... args) const
Create an entity.
flecs::id id(E value) const
Convert an enum constant to an entity.
flecs::event_builder event(flecs::entity_t evt) const
Create a new event.