temp script changes

This commit is contained in:
Kayne Ruse
2014-11-06 01:21:37 +11:00
parent a4ed23f6c7
commit daa38413f3
6 changed files with 9 additions and 12 deletions
+1
View File
@@ -0,0 +1 @@
--TODO: create a flexible saving & loading system
View File
+4 -5
View File
@@ -2,11 +2,10 @@ print("Lua script check")
mapMaker = require "map_maker"
mapSaver = require "map_saver"
roomSystem = require "room_system"
--BUG: #35 The server fails without at least one room
--TODO: Create rooms with names?
newRoom = RoomManager.CreateRoom("overworld", "overworld.bmp")
pager = Room.GetPager(newRoom)
RegionPager.SetOnCreate(pager, mapMaker.debugIsland)
--create the overworld, set it's generator, loader & saver
local overworld = roomSystem.CreateRoom("overworld", "overworld.bmp")
roomSystem.SetOnLoad(overworld, mapMaker.debugIsland, mapSaver.load, mapSaver.save)
print("Finished the lua script")