Module:BaseData

Revision as of 11:51, 12 May 2021 by Botkaze (talk | contribs) (8 revisions imported)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Documentation for this module may be created at Module:BaseData/doc

local BaseData = {}

function BaseData:create(data)
	data = data or {}
	setmetatable(data, data)
	data.__index = self
	data.__call = self.__call
	return data
end

BaseData.__call = function (table, ...)
	return table:create(...)
end

setmetatable(BaseData, BaseData)

return BaseData