Implement the basic structure for macroer

This commit is contained in:
2025-01-02 10:23:27 +01:00
parent 55ce001705
commit 6ef7e74402
5 changed files with 48 additions and 1 deletions

View File

@@ -35,6 +35,7 @@ local function init()
---@field AgentTracker InitTable
---@field Emoter InitTable
---@field Echoer InitTable
---@field Macroer InitTable
--- Config ---
---@class HeimdallConfig
@@ -114,6 +115,7 @@ local function init()
---@class HeimdallMacroerConfig
---@field enabled boolean
---@field priority string[]
--- Data ---
---@class HeimdallMessengerData
@@ -224,6 +226,7 @@ local function init()
},
macroer = {
enabled = shared.GetOrDefault(Heimdall_Data, { "config", "macroer", "enabled" }, false),
priority = shared.GetOrDefault(Heimdall_Data, { "config", "macroer", "priority" }, {}),
},
agents = shared.GetOrDefault(Heimdall_Data, { "config", "agents" }, {}),
}
@@ -318,6 +321,7 @@ local function init()
shared.Dueler.Init()
shared.Bully.Init()
shared.AgentTracker.Init()
shared.Macroer.Init()
print("Heimdall loaded!")
end