Add lua selection match method

Also improve the replace_terrain command parameters.
This commit is contained in:
Pasi Kallinen
2020-03-02 16:15:40 +02:00
parent ee2821e7e8
commit c9b21e36a7
6 changed files with 244 additions and 90 deletions

View File

@@ -352,9 +352,12 @@ function test_sel_flood()
sel_pt_ne(selb, 5,5, 1, __func__);
sel_pt_ne(selb, 6,5, 1, __func__);
sel_pt_ne(selb, 7,5, 1, __func__);
end -- test_sel_flood
function test_sel_match()
local sel = selection.match([[...]]);
end -- test_sel_match
test_selection_params();
test_sel_negate();
test_sel_logical_and();
@@ -368,3 +371,4 @@ test_sel_randline();
test_sel_grow();
test_sel_filter_mapchar();
test_sel_flood();
test_sel_match();