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