Refactored scripts, added a smoother for Debug Islan
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
This commit is contained in:
@@ -1,11 +1,15 @@
|
||||
local Region = require("map_system").Region
|
||||
|
||||
local mapSaver = {}
|
||||
function mapSaver.Load(region)
|
||||
|
||||
function mapSaver.Load(r)
|
||||
--empty
|
||||
print("map_saver.lua:mapSaver.Load(region)")
|
||||
io.write("map_saver:Load(", Region.GetX(r), ", ", Region.GetY(r), ")\n")
|
||||
end
|
||||
function mapSaver.Save(region)
|
||||
function mapSaver.Save(r)
|
||||
--empty
|
||||
print("map_saver.lua:mapSaver.Save(region)")
|
||||
io.write("map_saver:Save(", Region.GetX(r), ", ", Region.GetY(r), ")\n")
|
||||
end
|
||||
|
||||
--TODO: create a flexible saving & loading system
|
||||
return mapSaver
|
||||
Reference in New Issue
Block a user