mirror of
https://github.com/tanema/light_world.lua.git
synced 2024-12-24 20:24:19 +00:00
Added light:getRange()
This commit is contained in:
parent
22f3ac5f80
commit
e9151e95a3
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user