-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathEvents.lua
48 lines (33 loc) · 1.54 KB
/
Events.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
local name, addon = ...;
--[[----------------------------------------------------------------------------
PLAYER_SPECIALIZATION_CHANGED
------------------------------------------------------------------------------]]
function addon.tsv:PLAYER_SPECIALIZATION_CHANGED()
self:RecalculateTrueStatRatings();
end
--[[----------------------------------------------------------------------------
PLAYER_ENTERING_WORLD
------------------------------------------------------------------------------]]
function addon.tsv:PLAYER_ENTERING_WORLD()
self:SetupConversionFactors();
self:RecalculateTrueStatRatings();
end
--[[----------------------------------------------------------------------------
COMBAT_RATING_UPDATE
------------------------------------------------------------------------------]]
function addon.tsv:COMBAT_RATING_UPDATE()
self:RecalculateTrueStatRatings();
end
--[[----------------------------------------------------------------------------
PLAYER_LEVEL_UP
------------------------------------------------------------------------------]]
function addon.tsv:PLAYER_LEVEL_UP()
self:RecalculateTrueStatRatings();
end
--[[----------------------------------------------------------------------------
Events
------------------------------------------------------------------------------]]
addon.tsv:RegisterEvent("PLAYER_LEVEL_UP");
addon.tsv:RegisterEvent("COMBAT_RATING_UPDATE");
addon.tsv:RegisterEvent("PLAYER_SPECIALIZATION_CHANGED");
addon.tsv:RegisterEvent("PLAYER_ENTERING_WORLD");