• 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
m (3 revisions imported)
 
Line 2: Line 2:
  
 
local EnemyShip = Ship:extend{
 
local EnemyShip = Ship:extend{
 +
_enemy = true,
 
_ships = {}, --maintain a separate cache from Ship
 
_ships = {}, --maintain a separate cache from Ship
 
_data_class = false,
 
_data_class = false,

Latest revision as of 01:52, 24 May 2021

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

local Ship = require('Module:Ship')

local EnemyShip = Ship:extend{
	_enemy = true,
	_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