mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-12 03:48:56 +00:00
Updated WoW addon
This commit is contained in:
1 parent
7940f4ef33
commit
52cdb52ecc
2 files changed
+5
-8
No files matched your search
@@ -1,9 +1,6 @@
|
|||||||
Artemis = LibStub("AceAddon-3.0"):NewAddon("Artemis", "AceConsole-3.0", "AceEvent-3.0", "AceTimer-3.0", "AceComm-3.0")
|
Artemis = LibStub("AceAddon-3.0"):NewAddon("Artemis", "AceConsole-3.0", "AceEvent-3.0", "AceTimer-3.0", "AceComm-3.0")
|
||||||
json = LibStub("json")
|
json = LibStub("json")
|
||||||
|
|
||||||
-- Hook onto logout because it seems PLAYER_LOGOUT fires on reload as well
|
|
||||||
local _Logout = Logout
|
|
||||||
|
|
||||||
local debugging = false
|
local debugging = false
|
||||||
local lastLine = {}
|
local lastLine = {}
|
||||||
local channeling = {}
|
local channeling = {}
|
||||||
@@ -22,6 +19,7 @@ function Artemis:OnEnable()
|
|||||||
Artemis:RegisterEvent("PLAYER_ENTERING_WORLD")
|
Artemis:RegisterEvent("PLAYER_ENTERING_WORLD")
|
||||||
Artemis:RegisterEvent("PLAYER_LEVEL_UP")
|
Artemis:RegisterEvent("PLAYER_LEVEL_UP")
|
||||||
Artemis:RegisterEvent("PLAYER_FLAGS_CHANGED")
|
Artemis:RegisterEvent("PLAYER_FLAGS_CHANGED")
|
||||||
|
Artemis:RegisterEvent("PLAYER_LOGOUT")
|
||||||
Artemis:RegisterEvent("ACHIEVEMENT_EARNED")
|
Artemis:RegisterEvent("ACHIEVEMENT_EARNED")
|
||||||
Artemis:RegisterEvent("ACTIVE_TALENT_GROUP_CHANGED")
|
Artemis:RegisterEvent("ACTIVE_TALENT_GROUP_CHANGED")
|
||||||
Artemis:RegisterEvent("UNIT_TARGET")
|
Artemis:RegisterEvent("UNIT_TARGET")
|
||||||
@@ -174,11 +172,6 @@ function Artemis:PLAYER_ENTERING_WORLD(...)
|
|||||||
Artemis:TransmitUnitState("player", true);
|
Artemis:TransmitUnitState("player", true);
|
||||||
end
|
end
|
||||||
|
|
||||||
function Logout()
|
|
||||||
Artemis:Transmit("gameState", "loggedOut")
|
|
||||||
return _Logout()
|
|
||||||
end
|
|
||||||
|
|
||||||
function Artemis:PLAYER_LEVEL_UP(...)
|
function Artemis:PLAYER_LEVEL_UP(...)
|
||||||
Artemis:Transmit("player", Artemis:GetPlayerDetails())
|
Artemis:Transmit("player", Artemis:GetPlayerDetails())
|
||||||
end
|
end
|
||||||
@@ -199,6 +192,10 @@ function Artemis:PLAYER_FLAGS_CHANGED(...)
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function Artemis:PLAYER_LOGOUT(...)
|
||||||
|
Artemis:Transmit("gameState", "loggedOut")
|
||||||
|
end
|
||||||
|
|
||||||
function Artemis:ACHIEVEMENT_EARNED(...)
|
function Artemis:ACHIEVEMENT_EARNED(...)
|
||||||
Artemis:Transmit("player", Artemis:GetPlayerDetails())
|
Artemis:Transmit("player", Artemis:GetPlayerDetails())
|
||||||
end
|
end
|
||||||
|
|||||||
Binary file not shown.
Reference in new issue
Block a user