Replaced RoomData's hooks with Initialize API function
This commit is contained in:
@@ -1,3 +1,9 @@
|
||||
local mapSaver = {}
|
||||
function mapSaver.Load(region)
|
||||
--empty
|
||||
end
|
||||
function mapSaver.Save(region)
|
||||
--empty
|
||||
end
|
||||
--TODO: create a flexible saving & loading system
|
||||
return mapSaver
|
||||
@@ -26,5 +26,6 @@ dumpTable(roomSystem.RoomManager)
|
||||
dumpTable(roomSystem.Room)
|
||||
|
||||
local overworld = roomSystem.RoomManager.CreateRoom("overworld")
|
||||
roomSystem.Room.Initialize(overworld, "overworld.bmp", mapSaver.Load, mapSaver.Save, mapMaker.debugIsland, mapSaver.Save)
|
||||
|
||||
print("Finished the lua script")
|
||||
|
||||
Reference in New Issue
Block a user