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