diff --git a/lib/light.lua b/lib/light.lua index 13879a7..e81c7c0 100644 --- a/lib/light.lua +++ b/lib/light.lua @@ -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