TerraForge3D  2.3.1
3D Terrain And Landscape Generator

◆ Save()

nlohmann::json NodeEditorLink::Save ( )

Definition at line 20 of file NodeEditor.cpp.

21{
22 nlohmann::json data;
24 data["type"] = "Link";
25 data["from"] = from->id;
26 data["to"] = to->id;
27 data["id"] = id;
28 tmp["r"] = color.x;
29 tmp["g"] = color.y;
30 tmp["b"] = color.z;
31 tmp["a"] = color.w;
32 data["color"] = tmp;
33 tmp = nlohmann::json();
34 data["thickness"] = thickness;
35 return data;
36}
a class to store JSON values
Definition: json.hpp:17860
basic_json<> json
default JSON class
Definition: json.hpp:3411