2022-04-01 20:51:01 +08:00
|
|
|
---@class Skill : Object
|
|
|
|
---@field name string
|
|
|
|
---@field frequency Frequency
|
|
|
|
---@field visible boolean
|
2022-03-31 13:29:23 +08:00
|
|
|
local Skill = class("Skill")
|
|
|
|
|
2022-04-01 20:51:01 +08:00
|
|
|
---@alias Frequency integer
|
2022-03-25 12:28:07 +08:00
|
|
|
|
2022-04-01 20:51:01 +08:00
|
|
|
Skill.Frequent = 1
|
|
|
|
Skill.NotFrequent = 2
|
|
|
|
Skill.Compulsory = 3
|
|
|
|
Skill.Limited = 4
|
|
|
|
Skill.Wake = 5
|
2022-03-25 12:28:07 +08:00
|
|
|
|
2022-04-01 20:51:01 +08:00
|
|
|
function Skill:initialize(name, frequency)
|
|
|
|
-- TODO: visible, lord, etc
|
|
|
|
self.name = name
|
|
|
|
self.frequency = frequency
|
|
|
|
self.visible = true
|
2022-03-25 12:28:07 +08:00
|
|
|
end
|
|
|
|
|
|
|
|
return Skill
|