237{
239
240 for(int id : downloadedTextureStoreItems)
241 {
243 tmp["abledo"] = textureStoreItems[id].abledo;
244 tmp["normal"] = textureStoreItems[id].normal;
245 tmp["roughness"]= textureStoreItems[id].roughness;
246 tmp["metallic"] = textureStoreItems[id].metallic;
247 tmp["ao"] = textureStoreItems[id].ao;
248 tmp["arm"] = textureStoreItems[id].arm;
249 tmp["baseDir"] = textureStoreItems[id].baseDir;
250 tmp2[textureStoreItems[id].name] = tmp;
251 }
252
253 SaveToFile(GetExecutableDir() + PATH_SEPARATOR "Data" PATH_SEPARATOR
254 "configs" PATH_SEPARATOR "texture_database_downloaded.terr3d",
256}
string_t dump(const int indent=-1, const char indent_char=' ', const bool ensure_ascii=false, const error_handler_t error_handler=error_handler_t::strict) const
serialization
a class to store JSON values