Function in ldk_scene.h

ldk_scene_save_tml_file

Serializes the current ECS contents and writes them to a TML file.

LDK_API bool ldk_scene_save_tml_file(
 const char *path,
 LDKSceneResult *result
);

Parameters

const char *path
Path identifying the file or resource.
LDKSceneResult *result
Optional result structure populated with error details.

Returns

True if the operation succeeds; false otherwise.

Function in ldk_scene.h

ldk_scene_to_tml

Serializes the current ECS contents to TML.

LDK_API bool ldk_scene_to_tml(
 XStrBuilder *out,
 LDKSceneResult *result
);

Parameters

XStrBuilder *out
Output object or buffer receiving the result.
LDKSceneResult *result
Optional result structure populated with error details.

Returns

True if the operation succeeds; false otherwise.