Simplified setup_server.lua
This commit is contained in:
@@ -11,23 +11,20 @@ local function dumpTable(t)
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
dumpTable(mapMaker)
|
|
||||||
dumpTable(mapSaver)
|
|
||||||
dumpTable(roomSystem)
|
|
||||||
dumpTable(roomSystem.Room)
|
|
||||||
dumpTable(roomSystem.RoomManager)
|
|
||||||
|
|
||||||
--create the overworld, set it's generator, loader & saver
|
--create the overworld, set it's generator, loader & saver
|
||||||
local overworld = roomSystem.RoomManager.CreateRoom("overworld", "overworld.bmp")
|
--[[
|
||||||
roomSystem.Room.SetOnLoad(overworld, 1123)
|
local t = {
|
||||||
roomSystem.Room.SetOnUnload(overworld, 458)
|
"overworld.bmp", --tileset name
|
||||||
|
mapSaver.load, --load function
|
||||||
|
mapSaver.save, --save function
|
||||||
|
mapMaker.debugIsland, --create function
|
||||||
|
mapSaver.save --unload function
|
||||||
|
}]]
|
||||||
|
|
||||||
if roomSystem.Room.GetOnLoad(overworld) == 1123 then
|
dumpTable(roomSystem)
|
||||||
print("onload retreival works")
|
dumpTable(roomSystem.RoomManager)
|
||||||
end
|
dumpTable(roomSystem.Room)
|
||||||
|
|
||||||
if roomSystem.Room.GetOnUnload(overworld) == 458 then
|
local overworld = roomSystem.RoomManager.CreateRoom("overworld")
|
||||||
print("onunload retreival works")
|
|
||||||
end
|
|
||||||
|
|
||||||
print("Finished the lua script")
|
print("Finished the lua script")
|
||||||
|
|||||||
Reference in New Issue
Block a user