• Welcome to the Kancolle Wiki!
  • If you have any questions regarding site content, account registration, etc., please visit the KanColle Wiki Discord

Module:BaseData

From Kancolle Wiki
Revision as of 23:30, 6 March 2015 by com>Ckwng
Jump to navigation Jump to search

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