Started work on procgen

This commit is contained in:
2024-09-09 23:55:46 +03:00
parent f103860c79
commit 2f3465350e
6 changed files with 124 additions and 2 deletions

View File

@@ -443,6 +443,13 @@ void WorldEditor::delete_building_handler()
stream_world->run_command("get_closest_building", args2);
}
void WorldEditor::remove_buildings_by_prefix(const String &prefix)
{
Array args;
args.push_back(prefix);
stream_world->run_command("remove_buildings_by_prefix", args);
}
void WorldEditor::_bind_methods()
{
ClassDB::bind_method(D_METHOD("editor_command", "command", "args"),