Add test map image parsing

This commit is contained in:
Van
2026-01-10 12:04:25 +03:00
parent 7658d74387
commit 52630eb85a
4 changed files with 29 additions and 6 deletions

View File

@@ -244,6 +244,7 @@ function MapGen:register2DPeaksFromFile(layerName, map, zeroPos,peakColors)
local modPath = core.get_modpath(core.get_current_modname())
local peaks = Api.ff2luat(modPath .. '/textures/maps/' .. map)
local mapSize = peaks.size
peaks.size = nil
print(dump(peaks))
for color, peaksPos in pairs(peaks) do