• 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:EnemyShip"

From Kancolle Wiki
Jump to navigation Jump to search
com>Ckwng
(Make EnemyShip an extension of Ship)
com>Ckwng
(Missed require)
Line 1: Line 1:
 +
local Ship = require('Module:Ship')
 +
 
local EnemyShip = Ship:extend{
 
local EnemyShip = Ship:extend{
 
_ships = {}, --maintain a separate cache from Ship
 
_ships = {}, --maintain a separate cache from Ship

Revision as of 01:26, 22 May 2015

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

local Ship = require('Module:Ship')

local EnemyShip = Ship:extend{
	_ships = {}, --maintain a separate cache from Ship
	_data_class = false,
}
 
function EnemyShip:_prepareShipData()
	self._data_class = self._data_class or require('Module:EnemyShipData')
end

return EnemyShip