- 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:Ship"
Jump to navigation
Jump to search
com>Ckwng (Entry point module) |
(No difference)
|
Revision as of 21:21, 10 December 2014
Documentation for this module may be created at Module:Ship/doc
local Ship = {}
local ShipData = require('Module:ShipData')
function Ship:get(stat, name, model)
return self:create(name, model)[stat]()
end
function Ship:create(name, model)
local ship_table = require(mw.ustring.format('Module:%s', name))
return ShipData:create(ship_table[model])
end
Ship.__call = Ship.create
setmetatable(Ship, Ship)
return Ship