OverviewFilesCommitsIssuesDocsReleasesPeers

proc-nodes / src / graph / graph_exporter.h

25 lines · c ref:
#ifndef PROC_NODES_GRAPH_EXPORTER_H
#define PROC_NODES_GRAPH_EXPORTER_H

#include "proc_node_graph.h"
#include <godot_cpp/classes/object.hpp>
#include <godot_cpp/variant/string.hpp>

namespace godot {

class GraphExporter : public Object {
	GDCLASS(GraphExporter, Object);

protected:
	static void _bind_methods();

public:
	// Serialize ProcNodeGraph to JSON string (same format as geometry_serializer.py)
	static String export_to_json(const Ref<ProcNodeGraph> &p_graph);

	GraphExporter() = default;
};

} // namespace godot
#endif // PROC_NODES_GRAPH_EXPORTER_H