FreeKill/lua/core/game_mode.lua

18 lines
429 B
Lua

-- SPDX-License-Identifier: GPL-3.0-or-later
---@class GameMode: Object
---@field public name string
---@field public minPlayer integer
---@field public maxPlayer integer
---@field public rule TriggerSkill
---@field public logic fun()
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