Skip to content

Commit

Permalink
Fix #256: expose storage.save()
Browse files Browse the repository at this point in the history
  • Loading branch information
TokisanGames committed Dec 9, 2023
1 parent 600453c commit 8914fe2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/terrain_3d_storage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1097,6 +1097,7 @@ void Terrain3DStorage::_bind_methods() {
ClassDB::bind_method(D_METHOD("get_texture_id", "global_position"), &Terrain3DStorage::get_texture_id);
ClassDB::bind_method(D_METHOD("force_update_maps", "map_type"), &Terrain3DStorage::force_update_maps, DEFVAL(TYPE_MAX));

ClassDB::bind_method(D_METHOD("save"), &Terrain3DStorage::save);
ClassDB::bind_static_method("Terrain3DStorage", D_METHOD("load_image", "file_name", "cache_mode", "r16_height_range", "r16_size"), &Terrain3DStorage::load_image, DEFVAL(ResourceLoader::CACHE_MODE_IGNORE), DEFVAL(Vector2(0, 255)), DEFVAL(Vector2i(0, 0)));
ClassDB::bind_method(D_METHOD("import_images", "images", "global_position", "offset", "scale"), &Terrain3DStorage::import_images, DEFVAL(Vector3(0, 0, 0)), DEFVAL(0.0), DEFVAL(1.0));
ClassDB::bind_method(D_METHOD("export_image", "file_name", "map_type"), &Terrain3DStorage::export_image);
Expand Down

0 comments on commit 8914fe2

Please sign in to comment.