Add missing argument names from class methods

master
Marc Gilleron 2022-08-28 02:25:29 +01:00
parent f31a6ab63b
commit dfbd7abfc1
5 changed files with 10 additions and 9 deletions

View File

@ -676,7 +676,8 @@ void VoxelBlockyModel::_bind_methods() {
ClassDB::bind_method(D_METHOD("set_mesh_collision_enabled", "surface_index", "enabled"),
&VoxelBlockyModel::set_mesh_collision_enabled);
ClassDB::bind_method(D_METHOD("is_mesh_collision_enabled"), &VoxelBlockyModel::is_mesh_collision_enabled);
ClassDB::bind_method(
D_METHOD("is_mesh_collision_enabled", "surface_index"), &VoxelBlockyModel::is_mesh_collision_enabled);
ClassDB::bind_method(D_METHOD("set_collision_aabbs", "aabbs"), &VoxelBlockyModel::_b_set_collision_aabbs);
ClassDB::bind_method(D_METHOD("get_collision_aabbs"), &VoxelBlockyModel::_b_get_collision_aabbs);

View File

@ -61,8 +61,8 @@ void VoxelColorPalette::_b_set_data(PackedInt32Array colors) {
}
void VoxelColorPalette::_bind_methods() {
ClassDB::bind_method(D_METHOD("set_color", "color"), &VoxelColorPalette::set_color);
ClassDB::bind_method(D_METHOD("get_color"), &VoxelColorPalette::get_color);
ClassDB::bind_method(D_METHOD("set_color", "index", "color"), &VoxelColorPalette::set_color);
ClassDB::bind_method(D_METHOD("get_color", "index"), &VoxelColorPalette::get_color);
ClassDB::bind_method(D_METHOD("set_colors", "colors"), &VoxelColorPalette::set_colors);
ClassDB::bind_method(D_METHOD("get_colors"), &VoxelColorPalette::get_colors);

View File

@ -75,7 +75,7 @@ Error VoxelVoxLoader::load_from_file(String fpath, Ref<gd::VoxelBuffer> p_voxels
}
void VoxelVoxLoader::_bind_methods() {
ClassDB::bind_method(D_METHOD("load_from_file", "fpath", "voxels"), &VoxelVoxLoader::load_from_file);
ClassDB::bind_method(D_METHOD("load_from_file", "fpath", "voxels", "palette"), &VoxelVoxLoader::load_from_file);
}
} // namespace zylann::voxel

View File

@ -173,7 +173,7 @@ void VoxelInstanceLibrary::_get_property_list(List<PropertyInfo> *p_list) const
}
void VoxelInstanceLibrary::_bind_methods() {
ClassDB::bind_method(D_METHOD("add_item", "id"), &VoxelInstanceLibrary::add_item);
ClassDB::bind_method(D_METHOD("add_item", "id", "item"), &VoxelInstanceLibrary::add_item);
ClassDB::bind_method(D_METHOD("remove_item", "id"), &VoxelInstanceLibrary::remove_item);
ClassDB::bind_method(D_METHOD("clear"), &VoxelInstanceLibrary::clear);
ClassDB::bind_method(D_METHOD("find_item_by_name", "name"), &VoxelInstanceLibrary::find_item_by_name);

View File

@ -2907,10 +2907,10 @@ void VoxelLodTerrain::_bind_methods() {
// Misc
ClassDB::bind_method(
D_METHOD("voxel_to_data_block_position", "lod_index"), &VoxelLodTerrain::voxel_to_data_block_position);
ClassDB::bind_method(
D_METHOD("voxel_to_mesh_block_position", "lod_index"), &VoxelLodTerrain::voxel_to_mesh_block_position);
ClassDB::bind_method(D_METHOD("voxel_to_data_block_position", "voxel_position", "lod_index"),
&VoxelLodTerrain::voxel_to_data_block_position);
ClassDB::bind_method(D_METHOD("voxel_to_mesh_block_position", "voxel_position", "lod_index"),
&VoxelLodTerrain::voxel_to_mesh_block_position);
ClassDB::bind_method(D_METHOD("get_voxel_tool"), &VoxelLodTerrain::get_voxel_tool);
ClassDB::bind_method(D_METHOD("save_modified_blocks"), &VoxelLodTerrain::_b_save_modified_blocks);