Tweaked scripts, added ForEachMonster()

(cherry picked from commit 0cf6a3dceb56a85969e8248e19f9143364b75c68)
This commit is contained in:
Kayne Ruse
2015-03-27 04:09:07 +11:00
parent 27fd810cfd
commit 35e7d0cf61
3 changed files with 53 additions and 16 deletions
+5
View File
@@ -41,6 +41,10 @@ roomManagerAPI.SetOnCreate(function(room, index)
roomAPI.ForEachCharacter(room, function(character)
--
end)
roomAPI.ForEachMonster(room, function(monster)
--
end)
end)
end)
@@ -51,6 +55,7 @@ end)
--NOTE: room 0 is the first that the client asks for, therefore it must exist
local overworld, uidOne = roomManagerAPI.CreateRoom("overworld", "overworld.bmp")
roomAPI.Initialize(overworld, mapSaver.Load, mapSaver.Save, mapMaker.DebugIsland, mapSaver.Save)
local underworld, uidTwo = roomManagerAPI.CreateRoom("underworld", "overworld.bmp")
roomAPI.Initialize(underworld, mapSaver.Load, mapSaver.Save, mapMaker.DebugGrassland, mapSaver.Save)