Pop.Box/elements/element.lua
Paul Liverman III 0f6c10a226 woop
2016-09-07 20:53:22 -07:00

32 lines
664 B
Lua

local element
do
local _class_0
local _base_0 = {
setSize = function(self) end
}
_base_0.__index = _base_0
_class_0 = setmetatable({
__init = function(self, parent, data)
if data == nil then
data = { }
end
self.parent, self.data = parent, data
if type(self.data ~= "table") then
self.data = { }
end
end,
__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