Unravel Engine C++ Reference
Loading...
Searching...
No Matches
entity_inspect.h
Go to the documentation of this file.
1#pragma once
2
3#include <engine/ecs/scene.h>
4
5#include <string>
6#include <vector>
7
8namespace unravel
9{
10
14auto find_entity_by_id(scene& scn, const std::string& id) -> entt::handle;
15
19auto entity_id_string(entt::handle entity) -> std::string;
20
24auto entity_to_summary_json(entt::handle entity, int depth = 0, int max_depth = 0) -> std::string;
25
29auto entity_components_serialized(entt::handle entity) -> std::string;
30
34auto collect_component_pretty_names(entt::handle entity) -> std::vector<std::string>;
35
36} // namespace unravel
const aiScene * scene
auto entity_id_string(entt::handle entity) -> std::string
Stable id string for MCP/editor tooling (UUID preferred).
auto find_entity_by_id(scene &scn, const std::string &id) -> entt::handle
Resolve an entity by UUID string or integral entt id.
auto collect_component_pretty_names(entt::handle entity) -> std::vector< std::string >
Component pretty-names present on the entity (inspectable + Script).
auto entity_components_serialized(entt::handle entity) -> std::string
Full associative serialization of serializeable components (scene-file format).
auto entity_to_summary_json(entt::handle entity, int depth, int max_depth) -> std::string
JSON summary: transform, component pretty-names, optional children.
entt::handle entity