Updated godot, voxel module; fixed spawners; added C++ border and radial points calculation

This commit is contained in:
Segey Lapin
2021-10-29 00:58:53 +03:00
parent db6430230e
commit 7cad4daf2f
8 changed files with 131 additions and 35 deletions

View File

@@ -564,12 +564,16 @@ void RoadsData::_bind_methods()
ClassDB::bind_method(D_METHOD("get_site_polygon_3d", "site"), &RoadsData::get_site_polygon_3d);
ClassDB::bind_method(D_METHOD("get_here_sites", "position"), &RoadsData::get_here_sites);
ClassDB::bind_method(D_METHOD("get_site_avg_height", "site"), &RoadsData::get_site_avg_height);
#if 0
ClassDB::bind_method(D_METHOD("get_site_border", "site"), &RoadsData::get_site_border);
#endif
ClassDB::bind_method(D_METHOD("site_is_town", "site"), &RoadsData::site_is_town);
ClassDB::bind_method(D_METHOD("site_is_farm", "site"), &RoadsData::site_is_farm);
ClassDB::bind_method(D_METHOD("get_site_count"), &RoadsData::get_site_count);
ClassDB::bind_method(D_METHOD("save_json", "path"), &RoadsData::save_json);
ClassDB::bind_method(D_METHOD("get_site_type", "site"), &RoadsData::get_site_type);
ClassDB::bind_method(D_METHOD("get_site_border", "site", "offt"), &RoadsData::get_site_border);
ClassDB::bind_method(D_METHOD("get_site_radial_points", "site", "bofft", "offt"), &RoadsData::get_site_radial_points);
}
void RoadsData::set_noise(Ref<FastNoiseLite> noise)
{