Add more infrastructure

This commit is contained in:
2024-12-16 13:18:57 +01:00
parent 34c539c4d8
commit c4b8bb8a26
2 changed files with 35 additions and 1 deletions

View File

@@ -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