FreeKill/lua/core/game_mode.lua

16 lines
348 B
Lua

---@class GameMode: Object
---@field name string
---@field minPlayer integer
---@field maxPlayer integer
---@field rule TriggerSkill
---@field 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