Fix arguments of the _use_tile_data_runtime_update() vmethod.

This commit is contained in:
Relintai 2024-03-10 10:34:14 +01:00
parent f54b3c8a45
commit b376573e8a
2 changed files with 2 additions and 2 deletions

View File

@ -1044,7 +1044,7 @@ void LayeredTileMap::_bind_methods() {
ClassDB::bind_method(D_METHOD("get_neighbor_cell", "coords", "neighbor"), &LayeredTileMap::get_neighbor_cell); ClassDB::bind_method(D_METHOD("get_neighbor_cell", "coords", "neighbor"), &LayeredTileMap::get_neighbor_cell);
BIND_VMETHOD(MethodInfo("_use_tile_data_runtime_update", BIND_VMETHOD(MethodInfo(Variant::BOOL, "_use_tile_data_runtime_update",
PropertyInfo(Variant::INT, "layer"), PropertyInfo(Variant::INT, "layer"),
PropertyInfo(Variant::VECTOR2I, "coords"))); PropertyInfo(Variant::VECTOR2I, "coords")));

View File

@ -1774,7 +1774,7 @@ void LayeredTileMapLayer::_notification(int p_what) {
void LayeredTileMapLayer::_bind_methods() { void LayeredTileMapLayer::_bind_methods() {
ClassDB::bind_method(D_METHOD("set_cell", "coords", "source_id", "atlas_coords", "alternative_tile"), &LayeredTileMapLayer::set_cell, DEFVAL(LayeredTileSet::INVALID_SOURCE), DEFVAL(LayeredTileSetSource::INVALID_ATLAS_COORDS), DEFVAL(0)); ClassDB::bind_method(D_METHOD("set_cell", "coords", "source_id", "atlas_coords", "alternative_tile"), &LayeredTileMapLayer::set_cell, DEFVAL(LayeredTileSet::INVALID_SOURCE), DEFVAL(LayeredTileSetSource::INVALID_ATLAS_COORDS), DEFVAL(0));
BIND_VMETHOD(MethodInfo("_use_tile_data_runtime_update", BIND_VMETHOD(MethodInfo(Variant::BOOL, "_use_tile_data_runtime_update",
PropertyInfo(Variant::VECTOR2I, "coords"))); PropertyInfo(Variant::VECTOR2I, "coords")));
BIND_VMETHOD(MethodInfo("_tile_data_runtime_update", BIND_VMETHOD(MethodInfo("_tile_data_runtime_update",