Add C_Questline module with functions for managing quest line operations

This commit is contained in:
2025-05-17 21:39:16 +02:00
parent a154f60475
commit 99997898a1

44
C_Questline.lua Normal file
View File

@@ -0,0 +1,44 @@
---@meta
---
--- C_Questline is a namespace for functions related to the quest line system.
---
--- @class C_Questline
C_Questline = {
--- Returns an array of available quest lines for the specified map
--- @param uiMapID number The map ID to get quest lines for
--- @return table questLines Array of available quest lines
GetAvailableQuestLines = function(uiMapID) end,
--- Returns an array of force visible quests for the specified map
--- @param uiMapID number The map ID to get quests for
--- @return table questIDs Array of quest IDs
GetForceVisibleQuests = function(uiMapID) end,
--- Returns information about a specific quest line
--- @param questID number The quest ID to get information for
--- @param uiMapID? number Optional map ID
--- @param displayableOnly? boolean Optional flag for displayable quests only
--- @return table questLineInfo Information about the quest line
GetQuestLineInfo = function(questID, uiMapID, displayableOnly) end,
--- Returns an array of quests in a quest line
--- @param questLineID number The quest line ID to get quests for
--- @return table questIDs Array of quest IDs in the quest line
GetQuestLineQuests = function(questLineID) end,
--- Returns whether a quest line is complete
--- @param questLineID number The quest line ID to check
--- @return boolean isComplete Whether the quest line is complete
IsComplete = function(questLineID) end,
--- Returns whether a quest line ignores account completed filtering
--- @param uiMapID number The map ID to check
--- @param questLineID number The quest line ID to check
--- @return boolean questLineIgnoresAccountCompletedFiltering Whether the quest line ignores account completed filtering
QuestLineIgnoresAccountCompletedFiltering = function(uiMapID, questLineID) end,
--- Requests quest lines for a specific map
--- @param uiMapID number The map ID to request quest lines for
--- @return nil
RequestQuestLinesForMap = function(uiMapID) end,
}