mirror of
https://github.com/TangentFoxy/Pop.Box.git
synced 2024-12-15 12:44:20 +00:00
32 lines
664 B
Lua
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
|