diff --git a/gamecore/modules/world/baseworld.lua b/gamecore/modules/world/baseworld.lua index 8c46653..2f91ecf 100644 --- a/gamecore/modules/world/baseworld.lua +++ b/gamecore/modules/world/baseworld.lua @@ -20,6 +20,10 @@ end -- ACTOR MANAGEMENT FUNCTIONS -- Basic function to handle actors +function BaseWorld:newActor(name, x, y) + self.obj.index[name](self, x, y) +end + function BaseWorld:registerActor(actor) table.insert(self.actors, actor) end