2023-03-13 16:12:02 +00:00
|
|
|
---@class GameMode: Object
|
|
|
|
---@field name string
|
|
|
|
---@field minPlayer integer
|
|
|
|
---@field maxPlayer integer
|
|
|
|
---@field rule TriggerSkill
|
2023-03-13 17:21:09 +00:00
|
|
|
---@field logic fun()
|
2023-03-13 16:12:02 +00:00
|
|
|
local GameMode = class("GameMode")
|
|
|
|
|
|
|
|
function GameMode:initialize(name, min, max)
|
|
|
|
self.name = name
|
|
|
|
self.minPlayer = math.max(min, 2)
|
|
|
|
self.maxPlayer = math.min(max, 8)
|
|
|
|
end
|
|
|
|
|
|
|
|
return GameMode
|