mirror of
https://github.com/sbrl/Minetest-WorldEditAdditions.git
synced 2024-12-22 19:45:02 +00:00
test geometry commands
This commit is contained in:
parent
4be7bf33d0
commit
073d621629
3 changed files with 6 additions and 5 deletions
|
@ -20,7 +20,7 @@ local function printspace(space, w, h)
|
|||
end
|
||||
|
||||
local function generate_maze(seed, width, height, path_length, path_width)
|
||||
local start_time = worldeditadditions.get_ms_time()
|
||||
local start_time = wea_c.get_ms_time()
|
||||
|
||||
if not path_length then path_length = 2 end
|
||||
if not path_width then path_width = 1 end
|
||||
|
@ -113,7 +113,7 @@ local function generate_maze(seed, width, height, path_length, path_width)
|
|||
end
|
||||
end
|
||||
|
||||
local end_time = worldeditadditions.get_ms_time()
|
||||
local end_time = wea_c.get_ms_time()
|
||||
return world, (end_time - start_time) * 1000
|
||||
end
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
local wea = worldeditadditions
|
||||
local wea_c = worldeditadditions_core
|
||||
local Vector3 = wea.Vector3
|
||||
local Vector3 = wea_c.Vector3
|
||||
|
||||
local function parse_params_maze(params_text, is_3d)
|
||||
if not params_text then params_text = "" end
|
||||
|
@ -115,7 +115,7 @@ wea_c.register_command("maze3d", {
|
|||
func = function(name, replace_node, seed, path_length, path_width, path_depth)
|
||||
local start_time = wea_c.get_ms_time()
|
||||
local pos1, pos2 = Vector3.sort(worldedit.pos1[name], worldedit.pos2[name])
|
||||
local replaced = wea_c.maze3d(
|
||||
local replaced = wea.maze3d(
|
||||
pos1, pos2,
|
||||
replace_node,
|
||||
seed,
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
local wea = worldeditadditions
|
||||
local wea_c = worldeditadditions_core
|
||||
local Vector3 = wea_c.Vector3
|
||||
|
||||
|
@ -48,7 +49,7 @@ worldeditadditions_core.register_command("walls", {
|
|||
local start_time = wea_c.get_ms_time()
|
||||
local pos1, pos2 = Vector3.sort(worldedit.pos1[name], worldedit.pos2[name])
|
||||
|
||||
local success, replaced = wea_c.walls(
|
||||
local success, replaced = wea.walls(
|
||||
pos1, pos2,
|
||||
target_node, thickness
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue