TerraForge3D  2.3.1
3D Terrain And Landscape Generator

◆ Save()

nlohmann::json MathFunctionNode::Save ( )
virtual

Implements NodeEditorNode.

Definition at line 60 of file MathFunctionNode.cpp.

61{
62 nlohmann::json data;
64 nlohmann::json tmp2;
65 data["type"] = MeshNodeEditor::MeshNodeType::MathFunction;
66 data["expr"] = std::string(inputExpression);
67 data["mathInputWidth"] = mathInputWidth;
68 data["factor"] = factor;
69 /*
70 for (int i = 0; i < vars.size(); i++)
71 {
72 tmp2.clear();
73 tmp2["name"] = vars[i].first;
74 tmp2["value"] = vars[i].second;
75 tmp.push_back(tmp2);
76 }
77 data["vars"] = tmp;
78 */
79 return data;
80}
a class to store JSON values
Definition: json.hpp:17860