From e7c7aa1f7968e6495f9544edf1aebd78e75083da Mon Sep 17 00:00:00 2001 From: Kazhnuz Date: Fri, 28 Jun 2019 11:54:34 +0200 Subject: [PATCH] fix(world): rename some instance of BaseWorld in world2D --- gamecore/modules/world/world2D.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gamecore/modules/world/world2D.lua b/gamecore/modules/world/world2D.lua index 7629da3..6200c93 100644 --- a/gamecore/modules/world/world2D.lua +++ b/gamecore/modules/world/world2D.lua @@ -91,7 +91,7 @@ end -- MAP LOADING FUNCTIONS -- Handle loading of actors from map -function BaseWorld:batchActor(objectlayer, object) +function World2D:batchActor(objectlayer, object) local name = objectlayer.name local gwidth = object.properties.gwidth or self.map.tilewidth local gheight = object.properties.gheight or self.map.tileheight @@ -110,15 +110,15 @@ function BaseWorld:batchActor(objectlayer, object) end end -function BaseWorld:newActorFromMap(objectlayer, object) +function World2D:newActorFromMap(objectlayer, object) self:newActor(objectlayer.name, object.x, object.y) end -function BaseWorld:newCollisionFromMap(objectlayer, object) +function World2D:newCollisionFromMap(objectlayer, object) self:newCollision(objectlayer.name, object.x, object.y, object.width, object.height) end -function BaseWorld:addPlayerFromMap(object, i) +function World2D:addPlayerFromMap(object, i) self:addPlayer(self.obj.Player(self, object.x, object.y), i, true) end