f13e8479e4
I've added a simple edge-smoothing function to debug island's generator. It doesn't handle all edge cases (pun intended), but the proof of concept is sound. I just wish I could release this... I've also added exception checks to region.cpp
15 lines
358 B
Lua
15 lines
358 B
Lua
local Region = require("map_system").Region
|
|
|
|
local mapSaver = {}
|
|
|
|
function mapSaver.Load(r)
|
|
--empty
|
|
io.write("map_saver:Load(", Region.GetX(r), ", ", Region.GetY(r), ")\n")
|
|
end
|
|
function mapSaver.Save(r)
|
|
--empty
|
|
io.write("map_saver:Save(", Region.GetX(r), ", ", Region.GetY(r), ")\n")
|
|
end
|
|
|
|
--TODO: create a flexible saving & loading system
|
|
return mapSaver |