Flecs: include/flecs/addons/module.h File 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
module.h File Reference

Module addon. More...

Go to the source code of this file.

## Macros
#define | ECS_MODULE_DEFINE(world, id)
| Define module.
#define | ECS_MODULE(world, id)
| Create a module.
#define | ECS_IMPORT(world, id)
| Wrapper around ecs_import().

## Functions
FLECS_API ecs_entity_t | ecs_import (ecs_world_t *world, ecs_module_action_t module, const char *module_name)
| Import a module.
FLECS_API ecs_entity_t | ecs_import_c (ecs_world_t *world, ecs_module_action_t module, const char *module_name_c)
| Same as ecs_import(), but with name to scope conversion.
FLECS_API ecs_entity_t | ecs_import_from_library (ecs_world_t *world, const char *library_name, const char *module_name)
| Import a module from a library.
FLECS_API ecs_entity_t | ecs_module_init (ecs_world_t *world, const char *c_name, const ecs_component_desc_t *desc)
| Register a new module.

## Detailed Description

Module addon.

The module addon allows for creating and importing modules. Flecs modules enable applications to organize components and systems into reusable units of code that can easily be across projects.

Definition in file module.h.