mirror of
https://github.com/tanema/light_world.lua.git
synced 2024-12-24 20:24:19 +00:00
minimized body methods
This commit is contained in:
parent
8da68cc68c
commit
5add341a14
@ -46,27 +46,8 @@ function light:setPosition(x, y, z)
|
||||
end
|
||||
|
||||
-- get x
|
||||
function light:getX()
|
||||
return self.x
|
||||
end
|
||||
|
||||
-- get y
|
||||
function light:getY()
|
||||
return self.y
|
||||
end
|
||||
|
||||
-- set x
|
||||
function light:setX(x)
|
||||
if x ~= self.x then
|
||||
self.x = x
|
||||
end
|
||||
end
|
||||
|
||||
-- set y
|
||||
function light:setY(y)
|
||||
if y ~= self.y then
|
||||
self.y = y
|
||||
end
|
||||
function light:getPosition()
|
||||
return self.x, self.y
|
||||
end
|
||||
|
||||
-- set color
|
||||
|
Loading…
Reference in New Issue
Block a user