Kemena3D
Loading...
Searching...
No Matches
kemena::kScriptGraphCompiler Namespace Reference

Compiles a node graph into AngelScript source text. More...

Functions

KEMENA3D_API kScriptGraphResult compile (const kScriptGraph &graph)
 Compiles a node graph into AngelScript source text.

Detailed Description

Compiles a node graph into AngelScript source text.

Each event node becomes a lifecycle function; graph variables become file-scope globals; exec wires sequence statements and data wires are inlined as expressions.

Function Documentation

◆ compile()

KEMENA3D_API kScriptGraphResult kemena::kScriptGraphCompiler::compile ( const kScriptGraph & graph)

Compiles a node graph into AngelScript source text.

Parameters
graphThe node graph to translate.
Returns
Result carrying the generated code, or an error on failure.