-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathTypes.lua
More file actions
99 lines (84 loc) · 2.54 KB
/
Copy pathTypes.lua
File metadata and controls
99 lines (84 loc) · 2.54 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
-------- Generic
---@alias ItemLink string
---@class BasicRGB
---@field r number
---@field g number
---@field b number
--------- Texture
---@class TextureData
---@field texture string
---@field size [number, number]
---@field coords [number, number, number, number]
--------- Database
---@class Character
---@field name string
---@field realm string
---@field race string
---@field className string
---@field group EnumCharacterGroup
---@field cooldownGroup table<string, CurrentCooldown[]>
---@field professionsData ProfessionsCooldownList
---@field importTimestamp number
---@field importedCharacter boolean
---@class Option
---@field categoryID number
-------- Preset
---@class MailPresetItemType
---@field classID number
---@field subclassID? number
---@class MailPreset
---@field id? number
---@field name string
---@field to string
---@field color colorRGBA
---@field itemGroups table<string, boolean>
---@field custom ItemLink[]
---@field exclusion ItemLink[]
---@field itemType MailPresetItemType[]
---@class ItemGroupOption
---@field label string
---@field CheckItemBelongsToGroup fun(itemLink: ItemLink): boolean
---@field ShouldLoad? fun(): boolean
------- Options
---@class OptionsCreateList
---@field GetText? fun(rowData): string
---@field SortComparator fun(a: any, b: any): boolean
---@field CustomizeRow? fun(frame: table, helpers)
---@field showCheckbox? boolean
---@field OnCheckedChange? fun(rowFrame: table, rowData)
---@field showRemoveIcon? boolean
---@field OnRemove? fun(rowData, OptionsCreateList): boolean
---@field OnUpdate? fun(frame: table)
---@field hasHyperlink? boolean
---@field GetHyperlink? fun(rowData: any): string
------- AutoBuy
---@class AutoBuyItem
---@field itemLink ItemLink
---@field quantity number
---@field scope EAutoBuyScope
---@field scopeValue? string
--- Cooldowns
---@class CooldownConfig
---@field internalID number
---@field enabled boolean
---@field showNotification boolean
---@class BasicCooldown
---@field internalID number
---@field name string
---@field spellID? number
---@field itemID? number
---@class GroupedCooldown : BasicCooldown
---@field spellList? BasicCooldown[]
---@class Profession
---@field id number
---@field name string
---@field spellIDs number[]
---@field cooldowns (BasicCooldown|GroupedCooldown)[]
---@class ProfessionCooldownData
---@field name string
---@field internalID number
---@field source "SPELL_API"|"TRADE_SKILL_FRAME"
---@field endTime number
---@field invalid? boolean
---@field startTimeSpellAPI? number
---@alias ProfessionsCooldownList table<number, table<number, ProfessionCooldownData>>