forked from homo-programmatis/CatRotationHelper
-
Notifications
You must be signed in to change notification settings - Fork 0
/
_Constants.lua
58 lines (48 loc) · 1.23 KB
/
_Constants.lua
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
local THIS_ADDON_NAME=...;
local g_Addon = getfenv(0)[THIS_ADDON_NAME];
function MakeConstTable(a_Table)
local metaTable =
{
__index = function(a_Table, a_Key)
error("Error: ConstTable: attempt to access nonexistent key " .. a_Key, 2);
end,
__newindex = function(a_Table, a_Key, a_NewValue)
error("Error: ConstTable: attempt to modify key " .. a_Key, 2);
end,
}
setmetatable(a_Table, metaTable);
return a_Table;
end
g_Addon.Constants = MakeConstTable
{
-- Logic types
LOGIC_TYPE_SKILL = 1,
LOGIC_TYPE_BUFF = 2,
LOGIC_TYPE_DEBUFF = 3,
LOGIC_TYPE_BURST = 4,
LOGIC_TYPE_PROC = 5,
-- Frame states
STATUS_COUNTING = 1,
STATUS_READY = 2,
STATUS_BURSTING = 3,
STATUS_WAITING = 4,
STATUS_PROC = 5,
-- Classes
SHAPE_DRUID_BEAR = 1,
SHAPE_DRUID_CAT = 2,
SPEC_DRUID_FERAL = 2,
SPEC_DRUID_GUARDIAN = 3,
-- UI constants
UI_SHOWWHEN_FIRST = 1,
UI_SHOWWHEN_ALWAYS = 1,
UI_SHOWWHEN_COMBAT = 2,
UI_SHOWWHEN_TARGET = 3,
UI_SHOWWHEN_COMBAT_OR_TARGET = 4,
UI_SHOWWHEN_COMBAT_AND_TARGET = 5,
UI_SHOWWHEN_LAST = 5,
UI_SIZE_FRAME = 30,
UI_SIZE_FRAME_MARGIN = 5,
MAX_TIMER_SECS = 30,
-- Various other constants
GCD_LENGTH = 1.6,
};