- Welcome to the Kancolle Wiki!
- If you have any questions regarding site content, account registration, etc., please visit the KanColle Wiki Discord
Difference between revisions of "Module:BaseData"
Jump to navigation
Jump to search
com>Ckwng (Add size arg to format_image()) |
com>Ckwng (Separate data formatting from *Data) |
||
Line 1: | Line 1: | ||
− | local BaseData = { | + | local BaseData = {} |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | } | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
function BaseData:create(data) | function BaseData:create(data) |
Revision as of 22:43, 12 February 2015
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
return data
end
BaseData.__call = function (table, ...)
return table:create(...)
end
setmetatable(BaseData, BaseData)
return BaseData