Module:PhaseClass

From Call of Duty Esports Wiki
Jump to: navigation, search

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

local p = require('Module:EntityAbstract'):extends()

p.objectType = 'Phase'
p.defaultlength = 'long'

function p:init(str)
	self:super('init', str, 'Phase')
	if self.is_nil then return end
	if self.unknown then
		self.vars = {
			long = str,
			medium = str,
			short = str
		}
	end
end

function p:isgroups()
	if self.is_nil then return nil end
	return self.vars.isgroups
end

return p