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
}
nlohmann::basic_json
a class to store JSON values
Definition:
json.hpp:17860
HillNode
Generated on Thu Apr 7 2022 14:10:52 for TerraForge3D by
1.9.3