03-16-2017, 01:49 AM
I started testing bound checking in cBlockArea. Here the small code:
Code:
function Initialize(Plugin)
Plugin:SetName( "TestPlugin" )
Plugin:SetVersion( 1 )
cPluginManager:BindConsoleCommand("doit", CommandDoit , "doit")
return true
end
function CommandDoit(a_Split)
local area = cBlockArea()
area:Create(500, 100, 100)
for x = 0, 499 do
for y = 0, 99 do
for z = 0, 99 do
area:SetBlockType(x, y, z, 1)
end
end
end
collectgarbage()
print("finished")
return true
end