Merge pull request #22 from Guard13007/patch-1

Added light:getRange()
This commit is contained in:
Tim Anema 2016-07-25 09:01:41 -04:00 committed by GitHub
commit 2583e421c4

View File

@ -49,7 +49,7 @@ function light:move(x, y, z)
end
end
-- get x
-- get position
function light:getPosition()
return self.x, self.y, self.z
end
@ -61,6 +61,11 @@ function light:setColor(red, green, blue)
self.blue = blue
end
-- get range
function light:getRange()
return self.range
end
-- set range
function light:setRange(range)
if range ~= self.range then