Testing the creatures via scripts
I need to find some way to ensure type safety of userdata.
This commit is contained in:
@@ -35,14 +35,23 @@ mapSaver = require("map_saver")
|
||||
|
||||
doorUtility = require("door_utility")
|
||||
|
||||
creatureAPI = require("creature")
|
||||
creatureManagerAPI = require("creature_manager")
|
||||
|
||||
--test the room hooks
|
||||
roomManagerAPI.SetOnCreate(function(room, index)
|
||||
print("", "Creating room: ", roomAPI.GetName(room), index)
|
||||
|
||||
creatureManagerAPI.Create(roomAPI.GetCreatureMgr(room), "anibunny.png", function() --[[]] end)
|
||||
|
||||
roomAPI.SetOnTick(room, function(room)
|
||||
roomAPI.ForEachCharacter(room, function(character)
|
||||
--
|
||||
end)
|
||||
|
||||
roomAPI.ForEachCreature(room, function(creature)
|
||||
--
|
||||
end)
|
||||
end)
|
||||
end)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user