Rename //find to //highlight and worldedit.find to worldedit.highlight, add //allocate and worldedit.allocate as well as related documentation. Improve documentation by fixing a few mistakes and adding return signatures.

This commit is contained in:
Anthony Zhang
2012-10-21 17:49:43 -04:00
parent 5f598db3e6
commit aa4a70d237
5 changed files with 127 additions and 47 deletions

View File

@ -94,8 +94,8 @@ worldedit.suppress = function(pos1, pos2, nodename)
return count
end
--finds all instances of `nodename` in a region defined by positions `pos1` and `pos2` by non-destructively hiding all other nodes, returning the number of nodes found
worldedit.find = function(pos1, pos2, nodename)
--highlights all instances of `nodename` in a region defined by positions `pos1` and `pos2` by non-destructively hiding all other nodes, returning the number of nodes found
worldedit.highlight = function(pos1, pos2, nodename)
local pos1, pos2 = worldedit.sort_pos(pos1, pos2)
local env = minetest.env