21 lines
815 B
Lua
21 lines
815 B
Lua
local ADDON_NAME = ...
|
|
|
|
local frame = CreateFrame("Frame")
|
|
frame:RegisterEvent("ADDON_LOADED")
|
|
frame:SetScript("OnEvent", function(self, event, addon)
|
|
if addon ~= ADDON_NAME then return end
|
|
|
|
---@class ActionBarSaverDaved
|
|
---@field spellAliases table<number, number[]>
|
|
---@field sets table<string, table<number, {type: string, id: number|string}>>
|
|
ActionBarSaverDaved = ActionBarSaverDaved or {}
|
|
ActionBarSaverDaved.spellAliases = ActionBarSaverDaved.spellAliases or {}
|
|
ActionBarSaverDaved.sets = ActionBarSaverDaved.sets or {}
|
|
|
|
---@class KeybindSaverDaved
|
|
---@field sets table<string, table<string, {key1: string, key2: string?}>>
|
|
KeybindSaverDaved = KeybindSaverDaved or {}
|
|
KeybindSaverDaved.sets = KeybindSaverDaved.sets or {}
|
|
end)
|
|
|
|
-- TODO: Fix equipment sets (saving reloading exporting importing...) |