Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --asd
- local layer = {
- redraw = function(self)
- end,
- update = function(self)
- end,
- addScreenLine = function(self, sl)
- self.ScreenLines[#self.ScreenLines+1] = sl
- end,
- addTouchPoint = function(self, tp)
- self.TouchPoints[#self.TouchPoints+1] = tp
- end
- }
- CurrentLayer = nil
- function TouchCurrentLayer(x, y)
- end
- function RedrawCurrentLayer()
- end
- function UpdateCurrentLayer()
- end
- function SelectCurrentLayer(layer)
- CurrentLayer = Layers[layer]
- end
- function newLayer()
- o = {
- ScreenLines = {},
- TouchPoints = {}
- }
- setmetatable(o, layer)
- return o
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement