Pop.Box/elements/element.lua

32 lines
664 B
Lua
Raw Normal View History

2016-08-21 05:29:16 +00:00
local element
do
local _class_0
local _base_0 = {
setSize = function(self) end
}
_base_0.__index = _base_0
_class_0 = setmetatable({
2016-08-23 01:19:58 +00:00
__init = function(self, parent, data)
if data == nil then
data = { }
end
self.parent, self.data = parent, data
2016-09-08 03:53:22 +00:00
if type(self.data ~= "table") then
self.data = { }
end
2016-08-23 01:19:58 +00:00
end,
2016-08-21 05:29:16 +00:00
__base = _base_0,
__name = "element"
}, {
__index = _base_0,
__call = function(cls, ...)
local _self_0 = setmetatable({}, _base_0)
cls.__init(_self_0, ...)
return _self_0
end
})
_base_0.__class = _class_0
element = _class_0
return _class_0
end