TerraForge3D  2.3.1
3D Terrain And Landscape Generator

◆ Save()

nlohmann::json HillNode::Save ( )
virtual

Implements NodeEditorNode.

Definition at line 66 of file HillNode.cpp.

67{
68 nlohmann::json data;
69 data["type"] = MeshNodeEditor::MeshNodeType::Hill;
70 data["posX"] = pos[0];
71 data["posY"] = pos[1];
72 data["posZ"] = pos[2];
73 data["height"] = height;
74 data["radius"] = radius;
75 data["p"] = p;
76 return data;
77}
a class to store JSON values
Definition: json.hpp:17860