TerraForge3D  2.3.1
3D Terrain And Landscape Generator

◆ Save()

nlohmann::json GeneratorMaskManager::Save ( )

Definition at line 78 of file GeneratorMask.cpp.

79{
80 nlohmann::json data;
81 data["uid"] = uid;
82 data["enabled"] = enabled;
83 data["gmcount"] = gmcount;
84 data["count"] = masks.size();
85 data["type"] = type;
86 nlohmann::json msks;
87
88 for(int i=0; i<masks.size(); i++)
89 {
90 msks.push_back(SaveGeneratorMask(masks[i]));
91 }
92
93 data["masks"] = msks;
94 return data;
95}
void push_back(basic_json &&val)
add an object to an array
Definition: json.hpp:23148
a class to store JSON values
Definition: json.hpp:17860