|
Kemena3D
|
Visual-scripting node graph: data model, JSON serialisation, and AngelScript code generation. More...
#include "kexport.h"#include <vector>#include <string>#include <nlohmann/json.hpp>#include "kdatatype.h"
Go to the source code of this file.
Classes | |
| struct | kemena::kScriptGraphPin |
| A connection point on a node. More... | |
| struct | kemena::kScriptGraphNode |
| A single graph node with its input/output pins and payload. More... | |
| struct | kemena::kScriptGraphLink |
| A directed wire from an output pin to an input pin. More... | |
| struct | kemena::kScriptGraphVar |
| A graph-scope variable, emitted as an AngelScript global. More... | |
| struct | kemena::kScriptGraph |
| The complete editable node graph for one script. More... | |
| struct | kemena::kScriptGraphResult |
| Result of compiling a graph to AngelScript text. More... | |
Namespaces | |
| namespace | kemena |
| Top-level Kemena3D engine namespace. | |
| namespace | kemena::kScriptGraphCompiler |
| Compiles a node graph into AngelScript source text. | |
Typedefs | |
| using | kemena::kJson = nlohmann::json |
Functions | |
| KEMENA3D_API const char * | kemena::kScriptNodeTypeName (kScriptNodeType type) |
| Human-readable label for a node type (used by the editor menu). | |
| KEMENA3D_API kScriptGraphResult | kemena::kScriptGraphCompiler::compile (const kScriptGraph &graph) |
| Compiles a node graph into AngelScript source text. | |
Visual-scripting node graph: data model, JSON serialisation, and AngelScript code generation.
A kScriptGraph is the editable form of a node-graph script. The editor saves it as a .logic JSON file; kScriptGraphCompiler::compile() turns it into AngelScript .as text that flows through the normal script pipeline (kScriptManager compiles that text to bytecode).
The graph mixes two wire kinds, Unreal-Blueprint style: