Flecs v4.0
A fast entity component system (ECS) for C & C++
Loading...
Searching...
No Matches
Entity Names
Collaboration diagram for Entity Names:

Macros

#define ecs_lookup_from(world, parent, path)
#define ecs_get_path_from(world, parent, child)
#define ecs_get_path(world, child)
#define ecs_get_path_buf(world, child, buf)
#define ecs_new_from_path(world, parent, path)
#define ecs_add_path(world, entity, parent, path)
#define ecs_add_fullpath(world, entity, path)

Detailed Description

Macro Definition Documentation

◆ ecs_add_fullpath

#define ecs_add_fullpath ( world,
entity,
path )
Value:
ecs_add_path_w_sep(world, entity, 0, path, ".", NULL)
ecs_entity_t ecs_add_path_w_sep(ecs_world_t *world, ecs_entity_t entity, ecs_entity_t parent, const char *path, const char *sep, const char *prefix)
Add specified path to entity.

Definition at line 595 of file flecs_c.h.

◆ ecs_add_path

#define ecs_add_path ( world,
entity,
parent,
path )
Value:
ecs_add_path_w_sep(world, entity, parent, path, ".", NULL)

Definition at line 592 of file flecs_c.h.

◆ ecs_get_path

#define ecs_get_path ( world,
child )
Value:
ecs_get_path_w_sep(world, 0, child, ".", NULL)
char * ecs_get_path_w_sep(const ecs_world_t *world, ecs_entity_t parent, ecs_entity_t child, const char *sep, const char *prefix)
Get a path identifier for an entity.

Definition at line 583 of file flecs_c.h.

◆ ecs_get_path_buf

#define ecs_get_path_buf ( world,
child,
buf )
Value:
ecs_get_path_w_sep_buf(world, 0, child, ".", NULL, buf, false)
void ecs_get_path_w_sep_buf(const ecs_world_t *world, ecs_entity_t parent, ecs_entity_t child, const char *sep, const char *prefix, ecs_strbuf_t *buf, bool escape)
Write path identifier to buffer.

Definition at line 586 of file flecs_c.h.

◆ ecs_get_path_from

#define ecs_get_path_from ( world,
parent,
child )
Value:
ecs_get_path_w_sep(world, parent, child, ".", NULL)

Definition at line 580 of file flecs_c.h.

◆ ecs_lookup_from

#define ecs_lookup_from ( world,
parent,
path )
Value:
ecs_lookup_path_w_sep(world, parent, path, ".", NULL, true)
ecs_entity_t ecs_lookup_path_w_sep(const ecs_world_t *world, ecs_entity_t parent, const char *path, const char *sep, const char *prefix, bool recursive)
Lookup an entity from a path.

Definition at line 577 of file flecs_c.h.

◆ ecs_new_from_path

#define ecs_new_from_path ( world,
parent,
path )
Value:
ecs_new_from_path_w_sep(world, parent, path, ".", NULL)
ecs_entity_t ecs_new_from_path_w_sep(ecs_world_t *world, ecs_entity_t parent, const char *path, const char *sep, const char *prefix)
Find or create entity from path.

Definition at line 589 of file flecs_c.h.