From e9151e95a3acc8ba92edfb010d169d5b07d2f582 Mon Sep 17 00:00:00 2001 From: Fox Date: Sun, 24 Jul 2016 09:47:59 -0700 Subject: [PATCH] Added light:getRange() --- lib/light.lua | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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