2023-03-13 16:12:02 +00:00
|
|
|
---@class GameMode: Object
|
2023-03-26 09:32:45 +00:00
|
|
|
---@field public name string
|
|
|
|
---@field public minPlayer integer
|
|
|
|
---@field public maxPlayer integer
|
|
|
|
---@field public rule TriggerSkill
|
|
|
|
---@field public 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
|