mirror of
https://github.com/Qsgs-Fans/FreeKill.git
synced 2024-11-16 19:58:13 +08:00
4e25c032e6
* TriggerSkill * update type comment * events of phases * lua annotation * change style of enums * clear lua stack * multi lua_State at server side * disable addPlayer when room is full or started * logic:trigger Co-authored-by: Notify-ctrl <notify-ctrl@qq.com>
23 lines
427 B
Lua
23 lines
427 B
Lua
---@class Skill : Object
|
|
---@field name string
|
|
---@field frequency Frequency
|
|
---@field visible boolean
|
|
local Skill = class("Skill")
|
|
|
|
---@alias Frequency integer
|
|
|
|
Skill.Frequent = 1
|
|
Skill.NotFrequent = 2
|
|
Skill.Compulsory = 3
|
|
Skill.Limited = 4
|
|
Skill.Wake = 5
|
|
|
|
function Skill:initialize(name, frequency)
|
|
-- TODO: visible, lord, etc
|
|
self.name = name
|
|
self.frequency = frequency
|
|
self.visible = true
|
|
end
|
|
|
|
return Skill
|