- 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"
Jump to navigation
Jump to search
com>Ckwng (Make EnemyShip an extension of Ship) |
|||
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
+ | local Ship = require('Module:Ship') | ||
+ | |||
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