fix(world): rename some instance of BaseWorld in world2D

This commit is contained in:
Kazhnuz 2019-06-28 11:54:34 +02:00
parent e6c2af5429
commit e7c7aa1f79

View file

@ -91,7 +91,7 @@ end
-- MAP LOADING FUNCTIONS -- MAP LOADING FUNCTIONS
-- Handle loading of actors from map -- Handle loading of actors from map
function BaseWorld:batchActor(objectlayer, object) function World2D:batchActor(objectlayer, object)
local name = objectlayer.name local name = objectlayer.name
local gwidth = object.properties.gwidth or self.map.tilewidth local gwidth = object.properties.gwidth or self.map.tilewidth
local gheight = object.properties.gheight or self.map.tileheight local gheight = object.properties.gheight or self.map.tileheight
@ -110,15 +110,15 @@ function BaseWorld:batchActor(objectlayer, object)
end end
end end
function BaseWorld:newActorFromMap(objectlayer, object) function World2D:newActorFromMap(objectlayer, object)
self:newActor(objectlayer.name, object.x, object.y) self:newActor(objectlayer.name, object.x, object.y)
end end
function BaseWorld:newCollisionFromMap(objectlayer, object) function World2D:newCollisionFromMap(objectlayer, object)
self:newCollision(objectlayer.name, object.x, object.y, object.width, object.height) self:newCollision(objectlayer.name, object.x, object.y, object.width, object.height)
end end
function BaseWorld:addPlayerFromMap(object, i) function World2D:addPlayerFromMap(object, i)
self:addPlayer(self.obj.Player(self, object.x, object.y), i, true) self:addPlayer(self.obj.Player(self, object.x, object.y), i, true)
end end