- Welcome to the Kancolle Wiki!
- If you have any questions regarding site content, account registration, etc., please visit the KanColle Wiki Discord
Module:Ship
Revision as of 21:21, 10 December 2014 by com>Ckwng (Entry point module)
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