FreeKill/lua/core/game_mode.lua

16 lines
348 B
Lua
Raw Normal View History

---@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()
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