TerraForge3D  2.3.1
3D Terrain And Landscape Generator

◆ Load()

void GPUNoiseLayerGenerator::Load ( nlohmann::json  data)
virtual

Definition at line 130 of file GPUNoiseLayerGenerator.cpp.

131{
132 uid = data["uid"];
133 name = data["name"];
134 windowStat = data["window"];
135 enabled = data["enabled"];
136 localSize = data["ls"];
137
138 while (appState->states.remeshing);
139
140 noiseLayers.clear();
141 nlohmann::json tmp = data["nl"];
142
143 for (int i = 0; i < tmp.size(); i++)
144 {
145 noiseLayers.push_back(LoadNoiseLayer(tmp[i]));
146 }
147}
size_type size() const noexcept
returns the number of elements
Definition: json.hpp:22912
a class to store JSON values
Definition: json.hpp:17860