mirror of
https://github.com/Qsgs-Fans/FreeKill.git
synced 2024-11-16 11:42:45 +08:00
16 lines
348 B
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
|