Add more infrastructure
This commit is contained in:
11
Autoloot.lua
11
Autoloot.lua
@@ -5,12 +5,21 @@ local addonname, shared = ...
|
||||
---@class Autoloot
|
||||
---@field Init fun()
|
||||
|
||||
shared.Autoloot = {}
|
||||
shared.Autoloot = { Init = function() end }
|
||||
function shared.Autoloot.Init()
|
||||
if not shared.config.autoloot.enabled then
|
||||
print("Cyka - Autoloot disabled")
|
||||
return
|
||||
end
|
||||
|
||||
local lootReadyFrame = CreateFrame("Frame")
|
||||
lootReadyFrame:RegisterEvent("LOOT_READY")
|
||||
lootReadyFrame:SetScript("OnEvent", function()
|
||||
local lootInfo = GetLootInfo()
|
||||
shared.DumpTable(lootInfo, 0)
|
||||
--aura_env.FilterService.Run(lootInfo)
|
||||
--CloseLoot()
|
||||
end)
|
||||
|
||||
print("Cyka - Autoloot loaded")
|
||||
end
|
||||
|
Reference in New Issue
Block a user