Remove vestigial code
This commit is contained in:
@@ -30,6 +30,8 @@ local function init()
|
||||
---@field Spotter InitTable
|
||||
---@field DeathReporter InitTable
|
||||
---@field Inviter InitTable
|
||||
---@field Dueler InitTable
|
||||
---@field Bully InitTable
|
||||
|
||||
--- Config ---
|
||||
---@class HeimdallConfig
|
||||
@@ -270,6 +272,8 @@ local function init()
|
||||
shared.Spotter.Init()
|
||||
shared.DeathReporter.Init()
|
||||
shared.Inviter.Init()
|
||||
shared.Dueler.Init()
|
||||
shared.Bully.Init()
|
||||
print("Heimdall loaded!")
|
||||
end
|
||||
|
||||
|
@@ -0,0 +1,9 @@
|
||||
local addonname, shared = ...
|
||||
---@cast shared HeimdallShared
|
||||
---@cast addonname string
|
||||
|
||||
---@diagnostic disable-next-line: missing-fields
|
||||
shared.Bully = {}
|
||||
function shared.Bully.Init()
|
||||
print("Heimdall - Bully loaded")
|
||||
end
|
||||
|
@@ -5,11 +5,6 @@ local addonname, shared = ...
|
||||
---@diagnostic disable-next-line: missing-fields
|
||||
shared.DeathReporter = {}
|
||||
function shared.DeathReporter.Init()
|
||||
-- if not Heimdall_Data.config.deathReporter.enabled then
|
||||
-- print("Heimdall - DeathReporter disabled")
|
||||
-- return
|
||||
-- end
|
||||
|
||||
---@type table<string, number>
|
||||
local recentDeaths = {}
|
||||
---@type table<string, number>
|
||||
|
@@ -0,0 +1,9 @@
|
||||
local addonname, shared = ...
|
||||
---@cast shared HeimdallShared
|
||||
---@cast addonname string
|
||||
|
||||
---@diagnostic disable-next-line: missing-fields
|
||||
shared.Dueler = {}
|
||||
function shared.Dueler.Init()
|
||||
print("Heimdall - Dueler loaded")
|
||||
end
|
||||
|
@@ -5,11 +5,6 @@ local addonname, shared = ...
|
||||
---@diagnostic disable-next-line: missing-fields
|
||||
shared.Inviter = {}
|
||||
function shared.Inviter.Init()
|
||||
-- if not Heimdall_Data.config.inviter.enabled then
|
||||
-- print("Heimdall - Inviter disabled")
|
||||
-- return
|
||||
-- end
|
||||
|
||||
---@type table<string, boolean>
|
||||
local channelRosterFrame = CreateFrame("Frame")
|
||||
channelRosterFrame:RegisterEvent("CHANNEL_ROSTER_UPDATE")
|
||||
|
@@ -5,11 +5,6 @@ local addonname, shared = ...
|
||||
---@diagnostic disable-next-line: missing-fields
|
||||
shared.Messenger = {}
|
||||
function shared.Messenger.Init()
|
||||
-- if not Heimdall_Data.config.messenger.enabled then
|
||||
-- print("Heimdall - Messenger disabled")
|
||||
-- return
|
||||
-- end
|
||||
|
||||
---@class Message
|
||||
---@field message string
|
||||
---@field channel string
|
||||
|
@@ -5,11 +5,6 @@ local addonname, shared = ...
|
||||
---@diagnostic disable-next-line: missing-fields
|
||||
shared.Spotter = {}
|
||||
function shared.Spotter.Init()
|
||||
-- if not Heimdall_Data.config.spotter.enabled then
|
||||
-- print("Heimdall - Spotter disabled")
|
||||
-- return
|
||||
-- end
|
||||
|
||||
local function FormatHP(hp)
|
||||
if hp > 1e9 then
|
||||
return string.format("%.1fB", hp / 1e9)
|
||||
|
@@ -5,11 +5,6 @@ local addonname, shared = ...
|
||||
---@diagnostic disable-next-line: missing-fields
|
||||
shared.Whoer = {}
|
||||
function shared.Whoer.Init()
|
||||
-- if not Heimdall_Data.config.who.enabled then
|
||||
-- print("Heimdall - Whoer disabled")
|
||||
-- return
|
||||
-- end
|
||||
|
||||
if not Heimdall_Data.who then Heimdall_Data.who = {} end
|
||||
if not Heimdall_Data.who.data then Heimdall_Data.who.data = {} end
|
||||
|
||||
|
Reference in New Issue
Block a user