Utilities for documenting entities, components and systems.
More...
|
| typedef struct EcsDocDescription | EcsDocDescription |
| | Component that stores description.
|
| |
|
|
FLECS_API const ecs_entity_t | ecs_id (EcsDocDescription) |
| | Component id for EcsDocDescription.
|
| |
| FLECS_API void | ecs_doc_set_uuid (ecs_world_t *world, ecs_entity_t entity, const char *uuid) |
| | Add UUID to entity.
|
| |
| FLECS_API void | ecs_doc_set_name (ecs_world_t *world, ecs_entity_t entity, const char *name) |
| | Add human-readable name to entity.
|
| |
| FLECS_API void | ecs_doc_set_brief (ecs_world_t *world, ecs_entity_t entity, const char *description) |
| | Add brief description to entity.
|
| |
| FLECS_API void | ecs_doc_set_detail (ecs_world_t *world, ecs_entity_t entity, const char *description) |
| | Add detailed description to entity.
|
| |
| FLECS_API void | ecs_doc_set_link (ecs_world_t *world, ecs_entity_t entity, const char *link) |
| | Add link to external documentation to entity.
|
| |
| FLECS_API void | ecs_doc_set_color (ecs_world_t *world, ecs_entity_t entity, const char *color) |
| | Add color to entity.
|
| |
| FLECS_API const char * | ecs_doc_get_uuid (const ecs_world_t *world, ecs_entity_t entity) |
| | Get UUID from entity.
|
| |
| FLECS_API const char * | ecs_doc_get_name (const ecs_world_t *world, ecs_entity_t entity) |
| | Get human readable name from entity.
|
| |
| FLECS_API const char * | ecs_doc_get_brief (const ecs_world_t *world, ecs_entity_t entity) |
| | Get brief description from entity.
|
| |
| FLECS_API const char * | ecs_doc_get_detail (const ecs_world_t *world, ecs_entity_t entity) |
| | Get detailed description from entity.
|
| |
| FLECS_API const char * | ecs_doc_get_link (const ecs_world_t *world, ecs_entity_t entity) |
| | Get link to external documentation from entity.
|
| |
| FLECS_API const char * | ecs_doc_get_color (const ecs_world_t *world, ecs_entity_t entity) |
| | Get color from entity.
|
| |
| FLECS_API void | FlecsDocImport (ecs_world_t *world) |
| | Doc module import function.
|
| |
Utilities for documenting entities, components and systems.
◆ EcsDocDescription
| typedef struct EcsDocDescription EcsDocDescription |
Component that stores description.
Used as pair together with the following tags to store entity documentation:
- EcsName
- EcsDocBrief
- EcsDocDetail
- EcsDocLink
- EcsDocColor
◆ ecs_doc_get_brief()
Get brief description from entity.
- Parameters
-
| world | The world. |
| entity | The entity from which to get the description. |
- Returns
- The description.
- See also
- ecs_doc_set_brief()
-
flecs::doc::get_brief()
-
flecs::entity_view::get_doc_brief()
◆ ecs_doc_get_color()
◆ ecs_doc_get_detail()
Get detailed description from entity.
- Parameters
-
| world | The world. |
| entity | The entity from which to get the description. |
- Returns
- The description.
- See also
- ecs_doc_set_detail()
-
flecs::doc::get_detail()
-
flecs::entity_view::get_doc_detail()
◆ ecs_doc_get_link()
Get link to external documentation from entity.
- Parameters
-
| world | The world. |
| entity | The entity from which to get the link. |
- Returns
- The link.
- See also
- ecs_doc_set_link()
-
flecs::doc::get_link()
-
flecs::entity_view::get_doc_link()
◆ ecs_doc_get_name()
Get human readable name from entity.
If entity does not have an explicit human readable name, this operation will return the entity name.
To test if an entity has a human readable name, use:
FLECS_API const ecs_entity_t ecs_id(EcsDocDescription)
Component id for EcsDocDescription.
Component that stores description.
Or in C++:
- Parameters
-
| world | The world. |
| entity | The entity from which to get the name. |
- Returns
- The name.
- See also
- ecs_doc_set_name()
-
flecs::doc::get_name()
-
flecs::entity_view::get_doc_name()
◆ ecs_doc_get_uuid()
◆ ecs_doc_set_brief()
◆ ecs_doc_set_color()
◆ ecs_doc_set_detail()
◆ ecs_doc_set_link()
◆ ecs_doc_set_name()
◆ ecs_doc_set_uuid()
◆ FlecsDocImport()
Doc module import function.
Usage:
#define ECS_IMPORT(world, id)
Wrapper around ecs_import().
- Parameters
-
◆ EcsDocBrief
◆ EcsDocColor
◆ EcsDocDetail
◆ EcsDocLink
◆ EcsDocUuid