//rotate: add comments on what needs doing to wrangle it into shape

This commit is contained in:
Starbeamrainbowlabs 2023-12-14 00:31:12 +00:00
parent 27aa3a9c8f
commit 9f8cb4d5da
Signed by: sbrl
GPG Key ID: C1C6C0BB001E1725
2 changed files with 5 additions and 0 deletions

View File

@ -73,6 +73,9 @@ function worldeditadditions.rotate(pos1, pos2, origin, rotlist)
local manip_src, area_src = worldedit.manip_helpers.init(pos1, pos2)
local data_src = manip_src:get_data()
-- TODO: grab only an area at this point for dest and a blank target table. Then copy over to the real dest later to ensure consistency. This is important because we are dealing in (potentially) non-cardinal rectangles here
-- local area = VoxelArea:new({MinEdge=emerged_pos1, MaxEdge=emerged_pos2})
local manip_dest, area_dest = worldedit.manip_helpers.init(pos1_dstvm, pos2_dstvm)
local data_dest = manip_dest:get_data()
-- TODO: Also carry param2 along for the ride

View File

@ -117,6 +117,8 @@ worldeditadditions_core.register_command("rotate+", {
rotlist
)
if not success then return success, stats end
-- TODO: Adjust the defined area to match the target here? Maybe make this optional somehow given the target may or may nor be axis-aligned
-------------------------------------------------
local time_taken = wea_c.get_ms_time() - start_time