Compare commits

...

61 Commits

Author SHA1 Message Date
bfc09c1720 Add a bunch of globals relating to chat frames 2025-06-11 14:19:09 +02:00
0e86aad811 Update return type in UnitIsPVP documentation from nil to boolean 2025-05-25 14:27:14 +02:00
eee043a846 Update documentation for WHO_LIST_UPDATE aliases for clarity 2025-05-20 20:20:55 +02:00
e0b57e39fc Refactor API functions to standardize parameter aliases and improve documentation clarity 2025-05-18 15:16:22 +02:00
b5cba11bd3 Refactor API functions to improve parameter aliasing and enhance documentation clarity 2025-05-18 15:12:37 +02:00
cbed6108ef Refactor API functions to improve parameter aliasing and enhance documentation clarity 2025-05-18 15:03:21 +02:00
b595bc5573 Refactor API functions to enhance parameter aliasing and improve documentation clarity 2025-05-18 14:16:07 +02:00
bbb138c938 Increase max line length in luacheck configuration from 150 to 500 2025-05-18 12:44:04 +02:00
e045572f60 Enhance C_Timer documentation by adding optional repetitions parameter to NewTimer function 2025-05-18 10:18:39 +02:00
ff89e99749 Refactor calendar event functions to enhance parameter aliasing and improve documentation clarity 2025-05-18 01:07:24 +02:00
11f27b18de Enhance documentation for calendar event functions by refining return types and parameter aliases 2025-05-18 00:57:12 +02:00
e01a681d66 Refactor calendar context functions to improve documentation clarity and parameter usage 2025-05-18 00:53:16 +02:00
377b3b7aa7 Format documentation comments for C_LootHistory and C_ToyBox for consistency 2025-05-18 00:50:47 +02:00
9ee4bb792c Refactor calendar context functions to use parameter aliases for improved clarity 2025-05-18 00:50:42 +02:00
5f352cbfbe Refactor CalculateAuctionDeposit to use alias for runTime parameter 2025-05-18 00:43:51 +02:00
d7a79283fb Remove deprecated namespace apis that are now in their own separate files 2025-05-18 00:41:48 +02:00
e1b1adacd4 Add C_Trophy module with functions for managing trophy operations 2025-05-18 00:41:13 +02:00
1de7c06df3 Add C_ToyBox module with functions for managing toy box operations 2025-05-18 00:39:25 +02:00
20a499894b Add C_Timer module with functions for scheduling timers and tickers 2025-05-18 00:32:09 +02:00
7930649436 Add C_TaskQuest module with functions for managing task quest operations 2025-05-18 00:27:28 +02:00
7e79612962 Add C_Scenario module with functions for managing the Recruit-a-Friend system 2025-05-18 00:26:08 +02:00
4c1d175fa8 Add C_RecruitAFriend module with functions for managing the Recruit-a-Friend system 2025-05-17 21:47:46 +02:00
99997898a1 Add C_Questline module with functions for managing quest line operations 2025-05-17 21:39:16 +02:00
a154f60475 Add C_PetJournal module with functions for managing pet journal operations 2025-05-17 21:36:24 +02:00
06f0726dc4 Add C_NewItems module with functions for managing new item flags in inventory 2025-05-17 20:14:29 +02:00
b1cc8ed86c Add C_LossOfControl module with functions for managing loss-of-control effects 2025-05-17 19:51:14 +02:00
57ae516a30 Add C_LootHistory module with functions for managing loot history and encounter information 2025-05-17 19:48:14 +02:00
58f6886c19 Add C_Garrison module with functions for garrison management and building operations 2025-05-17 19:46:38 +02:00
600b06964f Add C_BlackMarket module with functions for auction management and item retrieval 2025-05-17 19:40:27 +02:00
80f16398e1 Add C_PetBattles module with comprehensive pet battle functions and methods 2025-05-17 19:19:34 +02:00
6cb045f3d9 Update parameter naming in BNGetFOFInfo documentation for consistency 2025-05-17 18:59:58 +02:00
19177fc324 Enhance documentation for SelectGossipOption with detailed parameter descriptions 2025-05-17 18:59:53 +02:00
fcd7cb5916 Update parameter type in RepairAllItems documentation to boolean 2025-05-17 18:58:47 +02:00
c524a1ef1e Update documentation for date function to include overload for no parameters 2025-05-17 18:52:58 +02:00
f656bf4795 Enhance documentation for UseContainerItem function with detailed parameter descriptions and usage conditions 2025-05-17 18:52:53 +02:00
5dd5258429 Fix missing newline at end of C_MountJournal.lua 2025-05-17 18:49:15 +02:00
bd2a342dc4 Add C_Map module for world map and navigation functions 2025-05-17 18:48:54 +02:00
5ccd8965c5 Add C_Item module for item-related functions 2025-05-17 18:48:50 +02:00
881b7badea Add C_CurrencyInfo module for currency-related functions 2025-05-17 18:45:15 +02:00
eda649d18c Add C_Container module for bag and container related functions 2025-05-17 18:45:15 +02:00
4be020445e Add C_ChatInfo module for chat system functions 2025-05-17 18:44:37 +02:00
218ef70900 Add C_Calendar module for in-game calendar functions 2025-05-17 18:44:31 +02:00
6bedb7ce35 Add C_AuctionHouse module for auction house related functions 2025-05-17 18:44:26 +02:00
a841fb40cc Add C_ActionBar module for action bar related functions 2025-05-17 18:44:22 +02:00
a9d5e32083 Add C_LFGList module for Looking for Group functions 2025-05-17 18:32:47 +02:00
35487ec611 Refactor UnitBuff function parameters to make rank and filter optional 2025-05-17 18:19:52 +02:00
4450597653 Enhance UnitBuff documentation with detailed parameter and return type annotations 2025-05-17 18:18:43 +02:00
037fb46cea Add C_MountJournal module for mount-related functions 2025-05-17 18:12:20 +02:00
72956add4a Add C_NamePlate and WeakAuras modules
- Introduced C_NamePlate for nameplate-related functions, including GetNamePlateForUnit and GetNamePlates.
- Added WeakAuras module with various utility functions and methods for managing aura conditions and tooltips.
2025-05-17 17:11:53 +02:00
0954354d7a Aura_env global 2025-05-15 21:19:28 +02:00
7178116742 Update 2025-05-09 22:00:24 +02:00
9aae83307e Update 2025-05-08 14:54:44 +02:00
48fc2ed99c Update 2025-05-07 21:39:58 +02:00
51a48175fa Update 2025-05-06 22:43:25 +02:00
90f71c5c56 Make all sync hardlinks
They don't work as links idk why
I'll look into it one day
2025-05-06 22:01:09 +02:00
6ab88bd8dc Update 2025-05-05 00:02:40 +02:00
d1c7f1ee31 Update 2025-05-04 23:56:53 +02:00
3f65afd97a Ignore unused variables 2025-05-04 23:39:22 +02:00
23fcef2458 Update 2025-05-04 23:33:05 +02:00
d896008318 Fix region 2025-05-04 23:30:38 +02:00
ba1f7e14bf Update
Update

Update

Update

Update

Update

Update

Update

Update

Update
2025-05-04 23:23:42 +02:00
551 changed files with 7562 additions and 2826 deletions

View File

@@ -1,5 +1,5 @@
globals = { "CykaPersistentData", "CreateFrame", "GetItemInfo" } globals = { "CykaPersistentData", "CreateFrame", "GetItemInfo", "aura_env" }
unused_args = false unused_args = false
max_line_length = 150 max_line_length = 500
exclude_files = { "Meta/" } exclude_files = { "Meta/" }
global = false global = false

View File

@@ -3,5 +3,12 @@
"library": [ "library": [
"./Meta" "./Meta"
] ]
} },
"diagnostics.disable": [
"unused-local",
"unused-vararg"
],
"diagnostics.globals": [
"aura_env"
]
} }

161
C_ActionBar.lua Normal file
View File

@@ -0,0 +1,161 @@
---@meta
---
--- C_ActionBar is a namespace for functions related to the action bar system.
---
--- @class C_ActionBar
C_ActionBar = {
--- @param actionID number
--- @return boolean
--- Returns whether the action can be used.
CanUseAction = function(actionID) end,
--- @param actionID number
--- @return boolean
--- Returns whether the action is currently being used.
IsCurrentAction = function(actionID) end,
--- @param actionID number
--- @return boolean
--- Returns whether the action is enabled.
IsEnabled = function(actionID) end,
--- @param actionID number
--- @return boolean
--- Returns whether the action is equipped.
IsEquippedAction = function(actionID) end,
--- @param actionID number
--- @return boolean
--- Returns whether the action is harmful.
IsHarmfulAction = function(actionID) end,
--- @param actionID number
--- @return boolean
--- Returns whether the action is helpful.
IsHelpfulAction = function(actionID) end,
--- @param actionID number
--- @return boolean
--- Returns whether the action is in range.
IsInRange = function(actionID) end,
--- @param actionID number
--- @return boolean
--- Returns whether the action is on cooldown.
IsOnCooldown = function(actionID) end,
--- @param actionID number
--- @return boolean
--- Returns whether the action is usable.
IsUsableAction = function(actionID) end,
--- @param actionID number
--- @return nil
--- Uses the specified action.
UseAction = function(actionID) end,
--- @param actionID number
--- @return number
--- Returns the cooldown information for the action.
GetActionCooldown = function(actionID) end,
--- @param actionID number
--- @return string
--- Returns the texture for the action.
GetActionTexture = function(actionID) end,
--- @param actionID number
--- @return string
--- Returns the tooltip text for the action.
GetActionText = function(actionID) end,
--- @param actionID number
--- @return number
--- Returns the type of the action.
GetActionType = function(actionID) end,
--- @param actionID number
--- @return number
--- Returns the count of items for the action.
GetActionCount = function(actionID) end,
--- @param actionID number
--- @return number
--- Returns the charges for the action.
GetActionCharges = function(actionID) end,
--- @param actionID number
--- @return number
--- Returns the maximum charges for the action.
GetActionMaxCharges = function(actionID) end,
--- @param actionID number
--- @return number
--- Returns the start time of the action cooldown.
GetActionStartTime = function(actionID) end,
--- @param actionID number
--- @return number
--- Returns the duration of the action cooldown.
GetActionDuration = function(actionID) end,
--- @param actionID number
--- @return boolean
--- Returns whether the action is currently active.
IsActionActive = function(actionID) end,
--- @param actionID number
--- @return boolean
--- Returns whether the action is currently being cast.
IsActionBeingCast = function(actionID) end,
--- @param actionID number
--- @return boolean
--- Returns whether the action is currently being channeled.
IsActionBeingChanneled = function(actionID) end,
--- @param actionID number
--- @return boolean
--- Returns whether the action is currently being used.
IsActionBeingUsed = function(actionID) end,
--- @param actionID number
--- @return boolean
--- Returns whether the action is currently being queued.
IsActionQueued = function(actionID) end,
--- @param actionID number
--- @return boolean
--- Returns whether the action is currently being queued for auto-cast.
IsActionQueuedForAutoCast = function(actionID) end,
--- @param actionID number
--- @return boolean
--- Returns whether the action is currently being queued for auto-cast on all targets.
IsActionQueuedForAutoCastOnAllTargets = function(actionID) end,
--- @param actionID number
--- @return boolean
--- Returns whether the action is currently being queued for auto-cast on the current target.
IsActionQueuedForAutoCastOnCurrentTarget = function(actionID) end,
--- @param actionID number
--- @return boolean
--- Returns whether the action is currently being queued for auto-cast on the focus target.
IsActionQueuedForAutoCastOnFocusTarget = function(actionID) end,
--- @param actionID number
--- @return boolean
--- Returns whether the action is currently being queued for auto-cast on the mouseover target.
IsActionQueuedForAutoCastOnMouseoverTarget = function(actionID) end,
--- @param actionID number
--- @return boolean
--- Returns whether the action is currently being queued for auto-cast on the player.
IsActionQueuedForAutoCastOnPlayer = function(actionID) end,
--- @param actionID number
--- @return boolean
--- Returns whether the action is currently being queued for auto-cast on the target.
IsActionQueuedForAutoCastOnTarget = function(actionID) end,
}

96
C_AuctionHouse.lua Normal file
View File

@@ -0,0 +1,96 @@
---@meta
---
--- C_AuctionHouse is a namespace for functions related to the auction house system.
---
--- @class C_AuctionHouse
C_AuctionHouse = {
--- @param itemKey table
--- @return boolean
--- Returns whether the item can be posted to the auction house.
CanPostItem = function(itemKey) end,
--- @param itemKey table
--- @return boolean
--- Returns whether the item can be searched in the auction house.
CanSearchForItem = function(itemKey) end,
--- @param itemLocation table
--- @return boolean
--- Returns whether the item can be sold in the auction house.
CanSellItem = function(itemLocation) end,
--- @param itemID number
--- @return table
--- Returns the commodity status of an item.
GetCommodityStatus = function(itemID) end,
--- @param itemKey table
--- @return table
--- Returns the item key info.
GetItemKeyInfo = function(itemKey) end,
--- @param itemKey table
--- @return table
--- Returns the item search results.
GetItemSearchResults = function(itemKey) end,
--- @return number
--- Returns the number of owned auctions.
GetNumOwnedAuctions = function() end,
--- @param ownedAuctionIndex number
--- @return table
--- Returns information about an owned auction.
GetOwnedAuctionInfo = function(ownedAuctionIndex) end,
--- @param itemID number
--- @return table
--- Returns the price ranges for a commodity.
GetCommodityPriceRanges = function(itemID) end,
--- @param itemID number
--- @return number
--- Returns the deposit cost for posting a commodity.
GetCommodityDepositCost = function(itemID) end,
--- @param auctionID number
--- @return boolean
--- Places a bid on an auction.
PlaceBid = function(auctionID) end,
--- @param itemID number
--- @param quantity number
--- @param unitPrice number
--- @return boolean
--- Posts a commodity for sale.
PostCommodity = function(itemID, quantity, unitPrice) end,
--- @param itemLocation table
--- @param duration number
--- @param quantity number
--- @param bid number
--- @param buyout number
--- @return boolean
--- Posts an item for sale.
PostItem = function(itemLocation, duration, quantity, bid, buyout) end,
--- @param auctionID number
--- @return boolean
--- Cancels an auction.
CancelAuction = function(auctionID) end,
--- @param itemID number
--- @param quantity number
--- @param itemPrice number
--- @return boolean
--- Purchases a commodity.
PurchaseCommodity = function(itemID, quantity, itemPrice) end,
--- @return boolean
--- Returns whether the auction house is enabled.
IsEnabled = function() end,
--- @return boolean
--- Returns whether the auction house is open.
IsOpen = function() end,
}

102
C_BlackMarket.lua Normal file
View File

@@ -0,0 +1,102 @@
---@diagnostic disable: missing-return, lowercase-global
---@meta
---@class C_BlackMarket
C_BlackMarket = {
--- Closes the Black Market window.
--- Triggers events
--- - BLACK_MARKET_CLOSE
--- Details
--- - While the black market UI is considered open, the server may notify the client about black market auction updates.
--- - This function is called by FrameXML when the player manually closes the Black Market window.
Close = function() end,
---@alias itemType
---| "Quest"
---| "Mail"
---| "Companion Pet"
--- Returns information about the current "hot item" at the Black Market Auction House.
--- @return string name item name; nil if no such auction exists
--- @return string texture icon texture path
--- @return number quantity amount of the item included in the auction
--- @return itemType itemType
--- @return boolean usable
--- @return number level item level requirement
--- @return string levelType
--- @return string sellerName localized name of the NPC "selling" the item
--- @return number minBid minimum amount of copper you can bid for this item
--- @return number minIncrement minimum amount of copper you can increase your bid by
--- @return number currBid the maximum current bid in copper
--- @return boolean youHaveHighBid true if your bid on this item is currently the highest bid, false otherwise
--- @return number numBids number of bids on this item
--- @return number timeLeft token indicating remaining auction duration, 0 for completed auctions, larger values indicate larger remaining durations, for a localized text version use _G["AUCTION_TIME_LEFT" .. timeLeft]
--- @return string link chat link of the item being auctioned
--- @return number marketID black market auction ID of this auction
--- @return number quality
GetHotItem = function() end,
--- Returns info for a Black Market auction.
--- You can use `GetHotItem` to retrieve information about a "Hot Item!" auction picked by the server,
--- `GetItemInfoByIndex` to iterate through all auctions, and `GetItemInfoByID` to retrieve information
--- about specific auctions. These three functions have identical return values.
--- @param marketID number - black market auction ID.
--- @return string name - item name; nil if no such auction exists.
--- @return string texture - icon texture path.
--- @return number quantity - amount of the item included in the auction.
--- @return itemType itemType - item type, e.g. "Quest", "Mail", or "Companion Pet".
--- @return boolean usable
--- @return number level - item level requirement.
--- @return string levelType - e.g. "REQ_LEVEL_ABBR".
--- @return string sellerName - localized name of the NPC "selling" the item.
--- @return number minBid - minimum amount of copper you can bid for this item.
--- @return number minIncrement - minimum amount of copper you must increase the current bid by.
--- @return number currBid - the maximum current bid in copper.
--- @return boolean youHaveHighBid - true if your bid on this item is currently the highest bid, false otherwise.
--- @return number numBids - number of bids made on this item.
--- @return number timeLeft - token indicating remaining auction duration, 0 for completed auctions, larger values indicate larger remaining durations. For a localized text version, use _G["AUCTION_TIME_LEFT" .. timeLeft].
--- @return string link - chat link of the item being auctioned.
--- @return number marketID - black market auction ID of this auction.
--- @return number quality
GetItemInfoByID = function(marketID) end,
--- Returns info for a Black Market auction.
--- You can use `GetHotItem` to retrieve information about a "Hot Item!" auction picked by the server,
--- `GetItemInfoByIndex` to iterate through all auctions, and `GetItemInfoByID` to retrieve information
--- about specific auctions. These three functions have identical return values.
--- @param index number - black market auction index, ascending from 1 to C_BlackMarket.GetNumItems()
--- @return string name - item name; nil if no such auction exists.
--- @return string texture - icon texture path.
--- @return number quantity - amount of the item included in the auction.
--- @return itemType itemType - item type, e.g. "Quest", "Mail", or "Companion Pet".
--- @return boolean usable
--- @return number level - item level requirement.
--- @return string levelType - e.g. "REQ_LEVEL_ABBR".
--- @return string sellerName - localized name of the NPC "selling" the item.
--- @return number minBid - minimum amount of copper you can bid for this item.
--- @return number minIncrement - minimum amount of copper you must increase the current bid by.
--- @return number currBid - the maximum current bid in copper.
--- @return boolean youHaveHighBid - true if your bid on this item is currently the highest bid, false otherwise.
--- @return number numBids - number of bids made on this item.
--- @return number timeLeft - token indicating remaining auction duration, 0 for completed auctions, larger values indicate larger remaining durations. For a localized text version, use _G["AUCTION_TIME_LEFT" .. timeLeft].
--- @return string link - chat link of the item being auctioned.
--- @return number marketID - black market auction ID of this auction.
--- @return number quality
GetItemInfoByIndex = function(index) end,
--- Returns the number of auctions on the Black Market Auction House.
--- @return number numItems
GetNumItems = function() end,
--- Returns if the view is read-only.
--- @return boolean viewOnly
IsViewOnly = function() end,
--- Places a bid on a black market auction.
--- @param marketID number - black market auction ID (not line index!) to bid on
--- @param bid number - bid amount, in copper
ItemPlaceBid = function(marketID, bid) end,
--- Requests updated black market auction information from the server.
RequestItems = function() end,
}

114
C_Calendar.lua Normal file
View File

@@ -0,0 +1,114 @@
---@meta
---
--- C_Calendar is a namespace for functions related to the in-game calendar system.
---
--- @class C_Calendar
C_Calendar = {
--- @return boolean
--- Returns whether the calendar is open.
IsOpen = function() end,
--- @param year number
--- @param month number
--- @param day number
--- @return table
--- Returns the events for a specific day.
GetDayEvent = function(year, month, day) end,
--- @param year number
--- @param month number
--- @return table
--- Returns the number of events in a month.
GetNumDayEvents = function(year, month) end,
--- @param eventIndex number
--- @return table
--- Returns information about a specific event.
GetEventInfo = function(eventIndex) end,
--- @param eventID number
--- @return table
--- Returns the invite status for an event.
GetEventInviteStatus = function(eventID) end,
--- @param eventID number
--- @return table
--- Returns the invite list for an event.
GetEventInvites = function(eventID) end,
--- @param eventID number
--- @param inviteIndex number
--- @return table
--- Returns information about a specific invite.
GetInviteInfo = function(eventID, inviteIndex) end,
--- @param year number
--- @param month number
--- @param day number
--- @param title string
--- @param description string
--- @param eventType string
--- @param repeating boolean
--- @param maxSize number
--- @param textureIndex number
--- @return boolean
--- Creates a new event.
CreateEvent = function(year, month, day, title, description, eventType, repeating, maxSize, textureIndex) end,
--- @param eventID number
--- @return boolean
--- Removes an event.
RemoveEvent = function(eventID) end,
--- @param eventID number
--- @param status string
--- @return boolean
--- Updates the status of an event invite.
UpdateEventInviteStatus = function(eventID, status) end,
--- @param eventID number
--- @param inviteIndex number
--- @param name string
--- @return boolean
--- Invites a player to an event.
InviteToEvent = function(eventID, inviteIndex, name) end,
--- @param eventID number
--- @param inviteIndex number
--- @return boolean
--- Removes an invite from an event.
RemoveInvite = function(eventID, inviteIndex) end,
--- @return table
--- Returns the current calendar time.
GetCalendarTime = function() end,
--- @param year number
--- @param month number
--- @param day number
--- @return boolean
--- Sets the selected date.
SetSelectedDate = function(year, month, day) end,
--- @return table
--- Returns the selected date.
GetSelectedDate = function() end,
--- @param eventID number
--- @return boolean
--- Opens the event in the calendar UI.
OpenEvent = function(eventID) end,
--- @param eventID number
--- @return boolean
--- Closes the event in the calendar UI.
CloseEvent = function(eventID) end,
--- @return table
--- Returns the guild event types available.
GetGuildEventTypes = function() end,
--- @return table
--- Returns the available event textures.
GetEventTextures = function() end,
}

121
C_ChatInfo.lua Normal file
View File

@@ -0,0 +1,121 @@
---@meta
---
--- C_ChatInfo is a namespace for functions related to the chat system.
---
--- @class C_ChatInfo
C_ChatInfo = {
--- @param channelID number
--- @return boolean
--- Returns whether a channel is active.
IsChannelActive = function(channelID) end,
--- @param channelID number
--- @return string
--- Returns the name of a channel.
GetChannelName = function(channelID) end,
--- @param channelID number
--- @return table
--- Returns information about a channel.
GetChannelInfo = function(channelID) end,
--- @param channelID number
--- @return table
--- Returns the list of players in a channel.
GetChannelList = function(channelID) end,
--- @param channelID number
--- @return table
--- Returns the rules for a channel.
GetChannelRules = function(channelID) end,
--- @param channelID number
--- @param message string
--- @return boolean
--- Sends a message to a channel.
SendChannelMessage = function(channelID, message) end,
--- @param channelName string
--- @return boolean
--- Joins a channel.
JoinChannel = function(channelName) end,
--- @param channelName string
--- @return boolean
--- Leaves a channel.
LeaveChannel = function(channelName) end,
--- @param channelID number
--- @param playerName string
--- @return boolean
--- Invites a player to a channel.
InviteToChannel = function(channelID, playerName) end,
--- @param channelID number
--- @param playerName string
--- @return boolean
--- Kicks a player from a channel.
KickFromChannel = function(channelID, playerName) end,
--- @param channelID number
--- @param playerName string
--- @return boolean
--- Bans a player from a channel.
BanFromChannel = function(channelID, playerName) end,
--- @param channelID number
--- @param playerName string
--- @return boolean
--- Unbans a player from a channel.
UnbanFromChannel = function(channelID, playerName) end,
--- @param channelID number
--- @param playerName string
--- @return boolean
--- Sets a player as moderator in a channel.
SetChannelModerator = function(channelID, playerName) end,
--- @param channelID number
--- @param playerName string
--- @return boolean
--- Removes a player as moderator from a channel.
RemoveChannelModerator = function(channelID, playerName) end,
--- @param channelID number
--- @param password string
--- @return boolean
--- Sets the password for a channel.
SetChannelPassword = function(channelID, password) end,
--- @param channelID number
--- @return boolean
--- Clears the password for a channel.
ClearChannelPassword = function(channelID) end,
--- @param channelID number
--- @return table
--- Returns the banned players in a channel.
GetChannelBans = function(channelID) end,
--- @param channelID number
--- @return table
--- Returns the moderators in a channel.
GetChannelModerators = function(channelID) end,
--- @return table
--- Returns the list of registered addon prefixes.
GetRegisteredAddonPrefixes = function() end,
--- @param prefix string
--- @return boolean
--- Registers an addon prefix for addon communication.
RegisterAddonPrefix = function(prefix) end,
--- @param prefix string
--- @param message string
--- @param distribution string
--- @param target string
--- @return boolean
--- Sends an addon message.
SendAddonMessage = function(prefix, message, distribution, target) end,
}

136
C_Container.lua Normal file
View File

@@ -0,0 +1,136 @@
---@meta
---
--- C_Container is a namespace for functions related to bags and containers.
---
--- @class C_Container
C_Container = {
--- @param bagID number
--- @return boolean
--- Returns whether a bag exists.
IsBagOpen = function(bagID) end,
--- @param bagID number
--- @return number
--- Returns the number of slots in a bag.
GetContainerNumSlots = function(bagID) end,
--- @param bagID number
--- @param slotIndex number
--- @return table
--- Returns information about an item in a container slot.
GetContainerItemInfo = function(bagID, slotIndex) end,
--- @param bagID number
--- @param slotIndex number
--- @return string
--- Returns the item link for an item in a container slot.
GetContainerItemLink = function(bagID, slotIndex) end,
--- @param bagID number
--- @param slotIndex number
--- @return number
--- Returns the cooldown information for an item in a container slot.
GetContainerItemCooldown = function(bagID, slotIndex) end,
--- @param bagID number
--- @param slotIndex number
--- @return number
--- Returns the durability of an item in a container slot.
GetContainerItemDurability = function(bagID, slotIndex) end,
--- @param bagID number
--- @return number
--- Returns the number of free slots in a bag.
GetContainerNumFreeSlots = function(bagID) end,
--- @param bagID number
--- @return table
--- Returns the family of items that can be stored in a bag.
GetBagFamily = function(bagID) end,
--- @param bagID number
--- @param slotIndex number
--- @return boolean
--- Returns whether an item in a container slot is locked.
IsContainerItemLocked = function(bagID, slotIndex) end,
--- @param bagID number
--- @param slotIndex number
--- @return boolean
--- Returns whether an item in a container slot can be used.
IsContainerItemUsable = function(bagID, slotIndex) end,
--- @param bagID number
--- @param slotIndex number
--- @return boolean
--- Returns whether an item in a container slot is readable.
IsContainerItemReadable = function(bagID, slotIndex) end,
--- @param bagID number
--- @param slotIndex number
--- @return boolean
--- Returns whether an item in a container slot is a quest item.
IsContainerItemQuestItem = function(bagID, slotIndex) end,
--- @param bagID number
--- @param slotIndex number
--- @return boolean
--- Returns whether an item in a container slot is new.
IsContainerItemNew = function(bagID, slotIndex) end,
--- @param bagID number
--- @param slotIndex number
--- @return boolean
--- Returns whether an item in a container slot is a profession container.
IsProfessionBag = function(bagID, slotIndex) end,
--- @param bagID number
--- @param slotIndex number
--- @return boolean
--- Returns whether an item in a container slot can be deposited in the bank.
CanContainerItemBeBanked = function(bagID, slotIndex) end,
--- @param bagID number
--- @param slotIndex number
--- @return boolean
--- Returns whether an item in a container slot can be sold.
CanContainerItemBeSold = function(bagID, slotIndex) end,
--- @param bagID number
--- @param slotIndex number
--- @return boolean
--- Returns whether an item in a container slot can be traded.
CanContainerItemBeTraded = function(bagID, slotIndex) end,
--- @param bagID number
--- @param slotIndex number
--- @return boolean
--- Returns whether an item in a container slot can be mailed.
CanContainerItemBeMailed = function(bagID, slotIndex) end,
--- @param bagID number
--- @param slotIndex number
--- @param destBagID number
--- @param destSlotIndex number
--- @return boolean
--- Splits a stack of items in a container.
SplitContainerItem = function(bagID, slotIndex, destBagID, destSlotIndex) end,
--- @param bagID number
--- @param slotIndex number
--- @return boolean
--- Picks up an item from a container slot.
PickupContainerItem = function(bagID, slotIndex) end,
--- @param bagID number
--- @param slotIndex number
--- @return boolean
--- Uses an item in a container slot.
UseContainerItem = function(bagID, slotIndex) end,
--- @param bagID number
--- @param slotIndex number
--- @return boolean
--- Deletes an item in a container slot.
DeleteContainerItem = function(bagID, slotIndex) end,
}

99
C_CurrencyInfo.lua Normal file
View File

@@ -0,0 +1,99 @@
---@meta
---
--- C_CurrencyInfo is a namespace for functions related to currency information.
---
--- @class C_CurrencyInfo
C_CurrencyInfo = {
--- @param currencyType number
--- @return table
--- Returns information about a currency type.
GetCurrencyInfo = function(currencyType) end,
--- @param currencyID number
--- @return table
--- Returns information about a currency link.
GetCurrencyLink = function(currencyID) end,
--- @param currencyID number
--- @return table
--- Returns listing information about a currency.
GetCurrencyListInfo = function(currencyID) end,
--- @param currencyID number
--- @return table
--- Returns the categories for a currency.
GetCurrencyListCategories = function(currencyID) end,
--- @return number
--- Returns the number of currencies.
GetCurrencyListSize = function() end,
--- @param currencyID number
--- @return boolean
--- Returns whether a currency is unspent.
IsCurrencyUnspent = function(currencyID) end,
--- @param currencyID number
--- @return boolean
--- Returns whether a currency is capped.
IsCurrencyCapped = function(currencyID) end,
--- @param currencyID number
--- @return boolean
--- Returns whether a currency is tradeable.
IsCurrencyTradeable = function(currencyID) end,
--- @param currencyID number
--- @return number
--- Returns the maximum quantity of a currency.
GetCurrencyMaxQuantity = function(currencyID) end,
--- @param currencyID number
--- @return number
--- Returns the quantity of a currency.
GetCurrencyQuantity = function(currencyID) end,
--- @param currencyID number
--- @return number
--- Returns the quality of a currency.
GetCurrencyQuality = function(currencyID) end,
--- @param currencyID number
--- @return string
--- Returns the name of a currency.
GetCurrencyName = function(currencyID) end,
--- @param currencyID number
--- @return string
--- Returns the description of a currency.
GetCurrencyDescription = function(currencyID) end,
--- @param currencyID number
--- @return string
--- Returns the icon of a currency.
GetCurrencyIcon = function(currencyID) end,
--- @param currencyID number
--- @return boolean
--- Returns whether a currency is tracked.
IsCurrencyTracked = function(currencyID) end,
--- @param currencyID number
--- @param track boolean
--- @return nil
--- Sets whether a currency is tracked.
SetCurrencyTracked = function(currencyID, track) end,
--- @param currencyID number
--- @param backpack boolean
--- @param bank boolean
--- @param reagentBank boolean
--- @return number
--- Returns the total quantity of a currency.
GetTotalCurrencyQuantity = function(currencyID, backpack, bank, reagentBank) end,
--- @param currencyID number
--- @return boolean
--- Returns whether a currency is discovered.
IsCurrencyDiscovered = function(currencyID) end,
}

120
C_EquipmentSet.lua Normal file
View File

@@ -0,0 +1,120 @@
---@meta
---
--- C_EquipmentSet is a namespace for functions related to equipment sets.
---
--- @class C_EquipmentSet
C_EquipmentSet = {
--- @param setID number
--- @param specID number
--- Assigns a specialization to an equipment set
AssignSpecToEquipmentSet = function(setID, specID) end,
--- @return boolean
--- Returns whether the player can use equipment sets
CanUseEquipmentSets = function() end,
--- Clears the list of equipment slots to be ignored when saving sets
ClearIgnoredSlotsForSave = function() end,
--- @param name string
--- @param icon number
--- @return number setID
--- Creates a new equipment set
CreateEquipmentSet = function(name, icon) end,
--- @param name string
--- Deletes an equipment set
DeleteEquipmentSet = function(name) end,
--- @param name string
--- @return boolean isLocked
--- Returns whether an equipment set contains locked items
EquipmentSetContainsLockedItems = function(name) end,
--- @param setID number
--- @return number specID
--- Returns the assigned specialization for an equipment set
GetEquipmentSetAssignedSpec = function(setID) end,
--- @param specID number
--- @return number setID
--- Returns the equipment set associated with a specialization
GetEquipmentSetForSpec = function(specID) end,
--- @param name string
--- @return number setID
--- Returns the ID of an equipment set by name
GetEquipmentSetID = function(name) end,
--- @return table setIDs
--- Returns a table of equipment set IDs
GetEquipmentSetIDs = function() end,
--- @param index number
--- @return string name
--- @return string icon
--- @return number setID
--- @return boolean isEquipped
--- @return number numItems
--- @return number numEquipped
--- @return number numInventory
--- @return number numMissing
--- @return number numIgnored
--- Returns information about an equipment set (specified by index)
GetEquipmentSetInfo = function(index) end,
--- @return table ignoredSlots
--- Returns a table of slots that are ignored when saving sets
GetIgnoredSlots = function() end,
--- @param name string
--- @return table itemIDs
--- Returns a table listing the item IDs in an equipment set
GetItemIDs = function(name) end,
--- @param name string
--- @return table itemLocations
--- Returns a table listing the locations of the items in an equipment set
GetItemLocations = function(name) end,
--- @return number numSets
--- Returns the number of saved equipment sets
GetNumEquipmentSets = function() end,
--- @param slot number
--- Ignores a slot when saving equipment sets
IgnoreSlotForSave = function(slot) end,
--- @param slot number
--- @return boolean isIgnored
--- Returns whether a slot is ignored when saving sets
IsSlotIgnoredForSave = function(slot) end,
--- @param oldSetName string
--- @param newSetName string
--- @param icon number
--- Modifies the name and icon of an existing equipment set
ModifyEquipmentSet = function(oldSetName, newSetName, icon) end,
--- @param index number
--- Puts an equipment set (specified by index) on the cursor
PickupEquipmentSet = function(index) end,
--- @param name string
--- @param icon number
--- Saves or creates an equipment set with the player's currently equipped items
SaveEquipmentSet = function(name, icon) end,
--- @param setID number
--- Unassigns the specialization from an equipment set
UnassignEquipmentSetSpec = function(setID) end,
--- @param slot number
--- Unignores a slot when saving equipment sets
UnignoreSlotForSave = function(slot) end,
--- @param name string
--- @return boolean equipped
--- Equips the items in an equipment set
UseEquipmentSet = function(name) end,
}

428
C_Garrison.lua Normal file
View File

@@ -0,0 +1,428 @@
---@meta
--- C_Garrison is a namespace for functions related to the garrison system.
---
--- @class C_Garrison
C_Garrison = {
--- @param plotInstanceID number
--- @return boolean
--- Cancels the construction of a building.
CancelConstruction = function(plotInstanceID) end,
--- @return boolean
--- Checks if the garrison can be upgraded.
CanUpgradeGarrison = function() end,
--- @param garrisonType number
--- @return boolean
--- Clears the complete talent for the specified garrison type.
ClearCompleteTalent = function(garrisonType) end,
--- @return boolean
--- Closes the architect UI.
CloseArchitect = function() end,
--- @return boolean
--- Closes the garrison tradeskill NPC UI.
CloseGarrisonTradeskillNPC = function() end,
--- @return boolean
--- Closes the talent NPC UI.
CloseTalentNPC = function() end,
--- @return boolean
--- Closes the tradeskill crafter UI.
CloseTradeskillCrafter = function() end,
--- @return table
--- Returns all bonus ability effects.
GetAllBonusAbilityEffects = function() end,
--- @param buildingID number
--- @return number id
--- @return string name
--- @return string textureKit
--- @return string icon
--- @return string description
--- @return number rank
--- @return number currencyID
--- @return number currencyQty
--- @return number goldQty
--- @return number buildTime
--- @return boolean needsPlan
--- @return boolean isPrebuilt
--- @return table possSpecs
--- @return number[] upgrades
--- @return boolean canUpgrade
--- @return boolean isMaxLevel
--- @return boolean hasFollowerSlot
--- Returns information about a building.
GetBuildingInfo = function(buildingID) end,
--- @return table
--- Returns the building lock information.
GetBuildingLockInfo = function() end,
--- @param garrisonType number
--- @return table
--- Returns a list of buildings for the specified garrison type.
GetBuildings = function(garrisonType) end,
--- @param plotInstanceID number
--- @return table
--- Returns buildings for a specific plot instance.
GetBuildingsForPlot = function(plotInstanceID) end,
--- @param garrisonType number
--- @param uiCategoryID number
--- @return table
--- Returns buildings for a specific size and garrison type.
GetBuildingsForSize = function(garrisonType, uiCategoryID) end,
--- @return table
--- Returns the sizes of buildings.
GetBuildingSizes = function() end,
--- @return table
--- Returns information about building specifications.
GetBuildingSpecInfo = function() end,
--- @param plotInstanceID number
--- @return number
--- Returns the time remaining for a building.
GetBuildingTimeRemaining = function(plotInstanceID) end,
--- @param buildingID number
--- @return string
--- Returns the tooltip for a building.
GetBuildingTooltip = function(buildingID) end,
--- @param buildingID number
--- @return table
--- Returns upgrade information for a building.
GetBuildingUpgradeInfo = function(buildingID) end,
--- @param garrisonType number
--- @return table
--- Returns the complete talent for the specified garrison type.
GetCompleteTalent = function(garrisonType) end,
--- @param garrType number
--- @return table
--- Returns the currency types for the specified garrison type.
GetCurrencyTypes = function(garrType) end,
--- @return number
--- Returns the current cypher equipment level.
GetCurrentCypherEquipmentLevel = function() end,
--- @return number
--- Returns the current garrison talent tree friendship faction ID.
GetCurrentGarrTalentTreeFriendshipFactionID = function() end,
--- @return number
--- Returns the current garrison talent tree ID.
GetCurrentGarrTalentTreeID = function() end,
--- @return number
--- Returns the cyphers needed to reach the next equipment level.
GetCyphersToNextEquipmentLevel = function() end,
--- @param garrisonType number
--- @return table
--- Returns information about the garrison.
GetGarrisonInfo = function(garrisonType) end,
--- @param uiMapID number
--- @return table
--- Returns garrison plot instances for the specified map.
GetGarrisonPlotsInstancesForMap = function(uiMapID) end,
--- @param garrTalentTreeID number
--- @return table
--- Returns the currency types for the specified garrison talent tree.
GetGarrisonTalentTreeCurrencyTypes = function(garrTalentTreeID) end,
--- @param garrTalentTreeID number
--- @return string
--- Returns the type of the specified garrison talent tree.
GetGarrisonTalentTreeType = function(garrTalentTreeID) end,
--- @param followerType number
--- @return number
--- Returns the cost to upgrade the garrison.
GetGarrisonUpgradeCost = function(followerType) end,
--- @return number
--- Returns the landing page garrison type.
GetLandingPageGarrisonType = function() end,
--- @param garrTypeID number
--- @param noSort boolean
--- @return table
--- Returns items for the landing page.
GetLandingPageItems = function(garrTypeID, noSort) end,
--- @return number
--- Returns the count of shipments on the landing page.
GetLandingPageShipmentCount = function() end,
--- @param buildingID number
--- @return table
--- Returns shipment information for a building on the landing page.
GetLandingPageShipmentInfo = function(buildingID) end,
--- @param containerID number
--- @return table
--- Returns shipment information by container ID.
GetLandingPageShipmentInfoByContainerID = function(containerID) end,
--- @param garrisonType number
--- @return table
--- Returns loose shipments for the specified garrison type.
GetLooseShipments = function(garrisonType) end,
--- @return number
--- Returns the maximum cypher equipment level.
GetMaxCypherEquipmentLevel = function() end,
--- @return number
--- Returns the number of pending shipments.
GetNumPendingShipments = function() end,
--- @return number
--- Returns the number of shipment currencies.
GetNumShipmentCurrencies = function() end,
--- @return number
--- Returns the number of shipment reagents.
GetNumShipmentReagents = function() end,
--- @param plotInstanceID number
--- @return table
--- Returns information about owned buildings.
GetOwnedBuildingInfo = function(plotInstanceID) end,
--- @param plotID number
--- @return number, string, string, string, number, boolean, number, number, boolean, boolean
--- Returns abbreviated information about owned buildings.
GetOwnedBuildingInfoAbbrev = function(plotID) end,
--- @param index number
--- @return table
--- Returns pending shipment information.
GetPendingShipmentInfo = function(index) end,
--- @param followerType number
--- @return table
--- Returns plots for the specified follower type.
GetPlots = function(followerType) end,
--- @param buildingID number
--- @return table
--- Returns plots for a specific building.
GetPlotsForBuilding = function(buildingID) end,
--- @return table
--- Returns information about ship death animations.
GetShipDeathAnimInfo = function() end,
--- @return table
--- Returns information about shipment containers.
GetShipmentContainerInfo = function() end,
--- @return table
--- Returns information about shipment items.
GetShipmentItemInfo = function() end,
--- @param currencyIndex number
--- @return table
--- Returns information about shipment reagent currency.
GetShipmentReagentCurrencyInfo = function(currencyIndex) end,
--- @param reagentIndex number
--- @return table
--- Returns information about shipment reagents.
GetShipmentReagentInfo = function(reagentIndex) end,
--- @param reagentIndex number
--- @return string
--- Returns the item link for a shipment reagent.
GetShipmentReagentItemLink = function(reagentIndex) end,
--- @return number
--- Returns the cost to change specifications.
GetSpecChangeCost = function() end,
--- @param plotInstanceID number
--- @return number
--- Returns the tab for a specific plot.
GetTabForPlot = function(plotInstanceID) end,
--- @param talentID number
--- @return table
--- Returns information about a specific talent.
GetTalentInfo = function(talentID) end,
--- @param garrTalentTreeID number
--- @return number
--- Returns the number of talent points spent in a talent tree.
GetTalentPointsSpentInTalentTree = function(garrTalentTreeID) end,
--- @param garrType number
--- @param classID number
--- @return table
--- Returns talent tree IDs by class ID.
GetTalentTreeIDsByClassID = function(garrType, classID) end,
--- @param treeID number
--- @return table
--- Returns information about a specific talent tree.
GetTalentTreeInfo = function(treeID) end,
--- @param garrTalentTreeID number
--- @return number, table
--- Returns reset information for a talent tree.
GetTalentTreeResetInfo = function(garrTalentTreeID) end,
--- @param garrTalentID number
--- @param researchRank number
--- @param garrTalentTreeID number
--- @param talentPointIndex number
--- @param isRespec boolean
--- @return number, table
--- Returns research information for a talent tree talent.
GetTalentTreeTalentPointResearchInfo = function(
garrTalentID,
researchRank,
garrTalentTreeID,
talentPointIndex,
isRespec
)
return 0, {}
end,
--- @param talentID number
--- @return number
--- Returns the world quest ID for a talent unlock.
GetTalentUnlockWorldQuest = function(talentID) end,
--- @return boolean
--- Checks if there are adventures available.
HasAdventures = function() end,
--- @param garrisonType number
--- @return boolean
--- Checks if the player has a garrison of the specified type.
HasGarrison = function(garrisonType) end,
--- @return boolean
--- Checks if the player has a shipyard.
HasShipyard = function() end,
--- @param followerID number
--- @return boolean
--- Checks if a follower is on a completed mission.
IsFollowerOnCompletedMission = function(followerID) end,
--- @return boolean
--- Checks if an invasion is available.
IsInvasionAvailable = function() end,
--- @return boolean
--- Checks if the landing page minimap button is visible.
IsLandingPageMinimapButtonVisible = function(garrType) end,
--- @return boolean
--- Checks if the player is on the garrison map.
IsOnGarrisonMap = function() end,
--- @return boolean
--- Checks if the player is on a shipment quest for an NPC.
IsOnShipmentQuestForNPC = function() end,
--- @return boolean
--- Checks if the player is on the shipyard map.
IsOnShipyardMap = function() end,
--- @param garrType number
--- @return boolean
--- Checks if the player is in a garrison of the specified type.
IsPlayerInGarrison = function(garrType) end,
--- @param talentID number
--- @return boolean, string
--- Checks if a talent condition is met.
IsTalentConditionMet = function(talentID) end,
--- @return boolean
--- Checks if the player is using a party garrison.
IsUsingPartyGarrison = function() end,
--- @return boolean
--- Checks if visiting the garrison is available.
IsVisitGarrisonAvailable = function() end,
--- @param plotInstanceID number
--- @param buildingID number
--- @return boolean
--- Places a building at the specified plot instance.
PlaceBuilding = function(plotInstanceID, buildingID) end,
--- @param followerType number
--- @return boolean
--- Requests to upgrade the garrison.
RequestGarrisonUpgradeable = function(followerType) end,
--- @return boolean
--- Requests information for the landing page shipment.
RequestLandingPageShipmentInfo = function() end,
--- @return boolean
--- Requests the creation of a shipment.
RequestShipmentCreation = function() end,
--- @return boolean
--- Requests information about shipments.
RequestShipmentInfo = function() end,
--- @param garrTalentID number
--- @return boolean
--- Researches a talent.
ResearchTalent = function(garrTalentID) end,
--- @param plotInstanceID number
--- @return boolean
--- Sets a building as active.
SetBuildingActive = function(plotInstanceID) end,
--- @return boolean
--- Sets the building specialization.
SetBuildingSpecialization = function() end,
--- @param enabled boolean
--- @return boolean
--- Sets whether to use a party garrison.
SetUsingPartyGarrison = function(enabled) end,
--- @param garrType number
--- @return boolean
--- Checks if the map tab should be shown for the specified garrison type.
ShouldShowMapTab = function(garrType) end,
--- @param plotInstanceID1 number
--- @param plotInstanceID2 number
--- @return boolean
--- Swaps two buildings.
SwapBuildings = function(plotInstanceID1, plotInstanceID2) end,
--- @param plotInstanceID number
--- @return boolean
--- Upgrades a building at the specified plot instance.
UpgradeBuilding = function(plotInstanceID) end,
--- @param followerType number
--- @return boolean
--- Upgrades the garrison for the specified follower type.
UpgradeGarrison = function(followerType) end,
}

146
C_Item.lua Normal file
View File

@@ -0,0 +1,146 @@
---@meta
---
--- C_Item is a namespace for functions related to items.
---
--- @class C_Item
C_Item = {
--- @param itemLocation table
--- @return boolean
--- Returns whether an item exists at the specified location.
DoesItemExist = function(itemLocation) end,
--- @param itemLocation table
--- @return number
--- Returns the item ID at the specified location.
GetItemID = function(itemLocation) end,
--- @param itemLocation table
--- @return string
--- Returns the item name at the specified location.
GetItemName = function(itemLocation) end,
--- @param itemLocation table
--- @return string
--- Returns the item link at the specified location.
GetItemLink = function(itemLocation) end,
--- @param itemLocation table
--- @return number
--- Returns the item quality at the specified location.
GetItemQuality = function(itemLocation) end,
--- @param itemLocation table
--- @return number
--- Returns the item level at the specified location.
GetItemLevel = function(itemLocation) end,
--- @param itemLocation table
--- @return number
--- Returns the current durability of an item.
GetCurrentDurability = function(itemLocation) end,
--- @param itemLocation table
--- @return number
--- Returns the maximum durability of an item.
GetMaxDurability = function(itemLocation) end,
--- @param itemLocation table
--- @return boolean
--- Returns whether an item is currently locked.
IsLocked = function(itemLocation) end,
--- @param itemLocation table
--- @return boolean
--- Returns whether an item is a conjured item.
IsConjuredItem = function(itemLocation) end,
--- @param itemLocation table
--- @return boolean
--- Returns whether an item is bound.
IsBound = function(itemLocation) end,
--- @param itemLocation table
--- @return boolean
--- Returns whether an item is in the player's bags.
IsInBags = function(itemLocation) end,
--- @param itemLocation table
--- @return boolean
--- Returns whether an item is in the player's bank.
IsInBank = function(itemLocation) end,
--- @param itemLocation table
--- @return boolean
--- Returns whether an item is in the player's equipment.
IsInEquipment = function(itemLocation) end,
--- @param itemLocation table
--- @return boolean
--- Returns whether an item is in the player's inventory.
IsInInventory = function(itemLocation) end,
--- @param itemLocation table
--- @return boolean
--- Returns whether an item is in the player's void storage.
IsInVoidStorage = function(itemLocation) end,
--- @param itemLocation table
--- @return boolean
--- Returns whether an item is soulbound.
IsSoulbound = function(itemLocation) end,
--- @param itemLocation table
--- @return boolean
--- Returns whether an item is account bound.
IsAccountBound = function(itemLocation) end,
--- @param itemLocation table
--- @return boolean
--- Returns whether an item is a battle pet.
IsBattlePet = function(itemLocation) end,
--- @param itemLocation table
--- @return boolean
--- Returns whether an item is corrupted.
IsCorrupted = function(itemLocation) end,
--- @param itemLocation table
--- @return boolean
--- Returns whether an item is a cosmetic item.
IsCosmetic = function(itemLocation) end,
--- @param itemLocation table
--- @return boolean
--- Returns whether an item is an artifact relic.
IsArtifactRelic = function(itemLocation) end,
--- @param itemLocation table
--- @return boolean
--- Returns whether an item is an artifact.
IsArtifact = function(itemLocation) end,
--- @param itemLocation table
--- @return boolean
--- Returns whether an item is a legendary item.
IsLegendary = function(itemLocation) end,
--- @param itemLocation table
--- @return table
--- Returns the item location type.
GetItemLocation = function(itemLocation) end,
--- @param itemLocation table
--- @return table
--- Returns the inventory type of an item.
GetInventoryType = function(itemLocation) end,
--- @param itemLocation table
--- @return table
--- Returns the class ID of an item.
GetClassID = function(itemLocation) end,
--- @param itemLocation table
--- @return table
--- Returns the subclass ID of an item.
GetSubclassID = function(itemLocation) end,
}

416
C_LFGList.lua Normal file
View File

@@ -0,0 +1,416 @@
---@meta
---
--- C_LFGList is a namespace for functions related to the Looking for Group system.
---
--- @class C_LFGList
C_LFGList = {
--- @param resultID number
--- @return nil
--- Accepts an invite to a group.
AcceptInvite = function(resultID) end,
--- @param resultID number
--- @param tankOK boolean
--- @param healerOK boolean
--- @param damageOK boolean
--- @return nil
--- Applies to a group with specified role preferences.
ApplyToGroup = function(resultID, tankOK, healerOK, damageOK) end,
--- @return boolean
--- Returns if the active entry can use auto-accept.
CanActiveEntryUseAutoAccept = function() end,
--- @param resultID number
--- @return nil
--- Cancels the application for a group.
CancelApplication = function(resultID) end,
--- @param questID number
--- @return boolean
--- Returns if a quest group can be created.
CanCreateQuestGroup = function(questID) end,
--- @param scenarioID number
--- @return boolean
--- Returns if a scenario group can be created.
CanCreateScenarioGroup = function(scenarioID) end,
--- @return nil
--- Clears the application text fields.
ClearApplicationTextFields = function() end,
--- @return nil
--- Clears the creation text fields.
ClearCreationTextFields = function() end,
--- @return nil
--- Clears the search results.
ClearSearchResults = function() end,
--- @return nil
--- Clears the search text fields.
ClearSearchTextFields = function() end,
--- @return nil
--- Copies active entry info to creation fields.
CopyActiveEntryInfoToCreationFields = function() end,
--- @param createData table
--- @return boolean
--- Creates a group finder listing.
CreateListing = function(createData) end,
--- @param activityID number
--- @param itemLevel number
--- @param autoAccept boolean
--- @param privateGroup boolean
--- @param scenarioID number
--- @return boolean
--- Creates a scenario listing.
CreateScenarioListing = function(activityID, itemLevel, autoAccept, privateGroup, scenarioID) end,
--- @param applicantID number
--- @return nil
--- Declines an applicant for the group.
DeclineApplicant = function(applicantID) end,
--- @param searchResultID number
--- @return nil
--- Declines an invite to a group.
DeclineInvite = function(searchResultID) end,
--- @param activityID number
--- @param groupID number
--- @param playstyle string
--- @return boolean
--- Checks if the entry title matches a prebuilt title.
DoesEntryTitleMatchPrebuiltTitle = function(activityID, groupID, playstyle) end,
--- @return table
--- Returns information about the currently listed group.
GetActiveEntryInfo = function() end,
--- @param activityID number
--- @param questID number
--- @param showWarmode boolean
--- @return string
--- Returns the full name of the activity.
GetActivityFullName = function(activityID, questID, showWarmode) end,
--- @param groupID number
--- @return table
--- Returns info for an activity group.
GetActivityGroupInfo = function(groupID) end,
--- @param questID number
--- @return number
--- Returns the activity ID for a quest ID.
GetActivityIDForQuestID = function(questID) end,
--- @param activityID number
--- @return table
--- Returns expensive activity info.
GetActivityInfoExpensive = function(activityID) end,
--- @param activityID number
--- @param questID number
--- @param showWarmode boolean
--- @return table
--- Returns the activity info table.
GetActivityInfoTable = function(activityID, questID, showWarmode) end,
--- @return table
--- Returns advanced filter options.
GetAdvancedFilter = function() end,
--- @param localID number
--- @param applicantIndex number
--- @return number
--- Returns the best dungeon score for an applicant.
GetApplicantBestDungeonScore = function(localID, applicantIndex) end,
--- @param localID number
--- @param applicantIndex number
--- @param activityID number
--- @return number
--- Returns the dungeon score for an applicant.
GetApplicantDungeonScoreForListing = function(localID, applicantIndex, activityID) end,
--- @param applicantID number
--- @return table
--- Returns applicant info.
GetApplicantInfo = function(applicantID) end,
--- @param applicantID number
--- @param memberIndex number
--- @return table
--- Returns member info for an applicant.
GetApplicantMemberInfo = function(applicantID, memberIndex) end,
--- @param applicantID number
--- @param memberIndex number
--- @return table
--- Returns stats for an applicant.
GetApplicantMemberStats = function(applicantID, memberIndex) end,
--- @param localID number
--- @param applicantIndex number
--- @param activityID number
--- @return table
--- Returns PvP rating info for an applicant.
GetApplicantPvpRatingInfoForListing = function(localID, applicantIndex, activityID) end,
--- @return table
--- Returns the list of applicants to your group.
GetApplicants = function() end,
--- @param searchResultID number
--- @return table
--- Returns application info for a search result.
GetApplicationInfo = function(searchResultID) end,
--- @return table
--- Returns the list of applications.
GetApplications = function() end,
--- @param categoryID number
--- @param groupID number
--- @param filter string
--- @return table
--- Returns available activities.
GetAvailableActivities = function(categoryID, groupID, filter) end,
--- @param categoryID number
--- @param filter string
--- @return table
--- Returns available activity groups.
GetAvailableActivityGroups = function(categoryID, filter) end,
--- @param filter string
--- @return table
--- Returns available categories.
GetAvailableCategories = function(filter) end,
--- @return table
--- Returns available language search filter.
GetAvailableLanguageSearchFilter = function() end,
--- @return table
--- Returns available roles.
GetAvailableRoles = function() end,
--- @return table
--- Returns default language search filter.
GetDefaultLanguageSearchFilter = function() end,
--- @return table
--- Returns filtered search results.
GetFilteredSearchResults = function() end,
--- @param activityID number
--- @return number
--- Returns the keystone for an activity.
GetKeystoneForActivity = function(activityID) end,
--- @return table
--- Returns the language search filter.
GetLanguageSearchFilter = function() end,
--- @param categoryID number
--- @return table
--- Returns category info.
GetLfgCategoryInfo = function(categoryID) end,
--- @return number
--- Returns the number of applicants.
GetNumApplicants = function() end,
--- @return number
--- Returns the number of applications.
GetNumApplications = function() end,
--- @return number
--- Returns the number of invited applicant members.
GetNumInvitedApplicantMembers = function() end,
--- @return number
--- Returns the number of pending applicant members.
GetNumPendingApplicantMembers = function() end,
--- @return table
--- Returns owned keystone activity and group and level.
GetOwnedKeystoneActivityAndGroupAndLevel = function() end,
--- @param playstyle string
--- @param activityInfo table
--- @return string
--- Returns playstyle string.
GetPlaystyleString = function(playstyle, activityInfo) end,
--- @return string
--- Returns the premade group finder style.
GetPremadeGroupFinderStyle = function() end,
--- @return table
--- Returns role check info.
GetRoleCheckInfo = function() end,
--- @param searchResultID number
--- @return table
--- Returns encounter info for a search result.
GetSearchResultEncounterInfo = function(searchResultID) end,
--- @param searchResultID number
--- @return table
--- Returns friends info for a search result.
GetSearchResultFriends = function(searchResultID) end,
--- @param searchResultID number
--- @return table
--- Returns info for a search result.
GetSearchResultInfo = function(searchResultID) end,
--- @param searchResultID number
--- @return table
--- Returns leader info for a search result.
GetSearchResultLeaderInfo = function(searchResultID) end,
--- @param searchResultID number
--- @return table
--- Returns member counts for a search result.
GetSearchResultMemberCounts = function(searchResultID) end,
--- @param searchResultID number
--- @param memberIndex number
--- @return table
--- Returns player info for a search result.
GetSearchResultPlayerInfo = function(searchResultID, memberIndex) end,
--- @return table
--- Returns search results.
GetSearchResults = function() end,
--- @return boolean
--- Returns if there is active entry info.
HasActiveEntryInfo = function() end,
--- @return boolean
--- Returns if there is an activity list.
HasActivityList = function() end,
--- @param searchResultID number
--- @return boolean
--- Returns if there is search result info.
HasSearchResultInfo = function(searchResultID) end,
--- @param applicantID number
--- @return nil
--- Invites an applicant to the group.
InviteApplicant = function(applicantID) end,
--- @return boolean
--- Returns if currently applying.
IsCurrentlyApplying = function() end,
--- @param activityCategoryID number
--- @return boolean
--- Returns if the player is authenticated for LFG.
IsPlayerAuthenticatedForLFG = function(activityCategoryID) end,
--- @return nil
--- Refreshes the list of applicants.
RefreshApplicants = function() end,
--- @param applicantID number
--- @return nil
--- Removes an applicant from the group.
RemoveApplicant = function(applicantID) end,
--- @return nil
--- Removes the listing for the group.
RemoveListing = function() end,
--- @return nil
--- Requests available activities.
RequestAvailableActivities = function() end,
--- @param options table
--- @return nil
--- Saves the advanced filter options.
SaveAdvancedFilter = function(options) end,
--- @param enabled boolean
--- @return nil
--- Saves the language search filter.
SaveLanguageSearchFilter = function(enabled) end,
--- @param categoryID number
--- @param filter string
--- @param preferredFilters table
--- @param languageFilter string
--- @param searchCrossFactionListings boolean
--- @param advancedFilter table
--- @param activityIDsFilter table
--- @return nil
--- Searches for groups.
Search = function(
categoryID,
filter,
preferredFilters,
languageFilter,
searchCrossFactionListings,
advancedFilter,
activityIDsFilter
)
end,
--- @param applicantID number
--- @param memberIndex number
--- @param role string
--- @return nil
--- Sets the role for an applicant member.
SetApplicantMemberRole = function(applicantID, memberIndex, role) end,
--- @param activityID number
--- @param groupID number
--- @param playstyle string
--- @return nil
--- Sets the entry title for the group.
SetEntryTitle = function(activityID, groupID, playstyle) end,
--- @param activityID number
--- @return nil
--- Sets the search to an activity.
SetSearchToActivity = function(activityID) end,
--- @param questID number
--- @return nil
--- Sets the search to a quest ID.
SetSearchToQuestID = function(questID) end,
--- @param scenarioID number
--- @return nil
--- Sets the search to a scenario ID.
SetSearchToScenarioID = function(scenarioID) end,
--- @param createData table
--- @return boolean
--- Updates the group listing.
UpdateListing = function(createData) end,
--- @param dungeonScore number
--- @return boolean
--- Validates the required dungeon score.
ValidateRequiredDungeonScore = function(dungeonScore) end,
--- @param activityID number
--- @param rating number
--- @return boolean
--- Validates the required PvP rating for an activity.
ValidateRequiredPvpRatingForActivity = function(activityID, rating) end,
--- @return boolean
--- Returns if the premade group finder is enabled.
IsPremadeGroupFinderEnabled = function() end,
}

30
C_LootHistory.lua Normal file
View File

@@ -0,0 +1,30 @@
---@meta
---
--- C_LootHistory is a namespace for functions related to loot history.
---
--- @class C_LootHistory
C_LootHistory = {
--- @return table
--- Returns all encounter information.
GetAllEncounterInfos = function() end,
--- @param encounterID number
--- @return table
--- Returns information for a specific encounter.
GetInfoForEncounter = function(encounterID) end,
--- @return number
--- Returns the loot history time.
GetLootHistoryTime = function() end,
--- @param encounterID number
--- @return table
--- Returns sorted drops for a specific encounter.
GetSortedDropsForEncounter = function(encounterID) end,
--- @param encounterID number
--- @param lootListID number
--- @return table
--- Returns sorted information for a specific drop.
GetSortedInfoForDrop = function(encounterID, lootListID) end,
}

49
C_LossOfControl.lua Normal file
View File

@@ -0,0 +1,49 @@
---@diagnostic disable: missing-return, lowercase-global
---@meta
---
--- C_LossOfControl is a namespace for functions related to loss-of-control effects.
---
--- @class C_LossOfControl
C_LossOfControl = {
---@class LossOfControlEvent
---@field locType string Effect type, e.g. "SCHOOL_INTERRUPT"
---@field spellID number Spell ID causing the effect
---@field displayText string Name of the effect, e.g. "Interrupted"
---@field iconTexture number FileID
---@field startTime number? Time at which this effect began, as per GetTime()
---@field timeRemaining number? Number of seconds remaining.
---@field duration number? Duration of the effect, in seconds.
---@field lockoutSchool number Locked out spell school identifier; can be fed into GetSchoolString() to retrieve school name.
---@field priority number
---@field displayType number An integer specifying how this event should be displayed to the player, per the Interface-configured options:
--- 0: the effect should not be displayed.
--- 1: the effect should be displayed as a brief alert when it occurs.
--- 2: the effect should be displayed for its full duration.
--- Returns info about an active loss-of-control effect.
--- @param index number
--- @return LossOfControlEvent
GetActiveLossOfControlData = function(index) end,
--- Returns info about an active loss-of-control effect for a specific unit.
--- @param unitToken string
--- @param index number
--- @return LossOfControlEvent
GetActiveLossOfControlDataByUnit = function(unitToken, index) end,
--- Returns the number of active loss-of-control effects.
--- @return number count
GetActiveLossOfControlDataCount = function() end,
--- Returns the number of active loss-of-control effects for a specific unit.
--- @param unitToken string
--- @return number count
GetActiveLossOfControlDataCountByUnit = function(unitToken) end,
--- Returns the start and duration of the loss-of-control cooldown for a specific action slot.
--- @param slot number
--- @return number start
--- @return number duration
GetActionLossOfControlCooldown = function(slot) end,
}

135
C_Map.lua Normal file
View File

@@ -0,0 +1,135 @@
---@meta
---
--- C_Map is a namespace for functions related to the world map and navigation.
---
--- @class C_Map
C_Map = {
--- @return number
--- Returns the best map for the player's current location.
GetBestMapForUnit = function() end,
--- @param uiMapID number
--- @return table
--- Returns information about a map.
GetMapInfo = function(uiMapID) end,
--- @param uiMapID number
--- @return table
--- Returns the map art ID for a map.
GetMapArtID = function(uiMapID) end,
--- @param uiMapID number
--- @return table
--- Returns the map art background ID for a map.
GetMapArtBackgroundID = function(uiMapID) end,
--- @param uiMapID number
--- @return table
--- Returns the map art layers for a map.
GetMapArtLayers = function(uiMapID) end,
--- @param uiMapID number
--- @return table
--- Returns the map art style for a map.
GetMapArtStyle = function(uiMapID) end,
--- @param uiMapID number
--- @return table
--- Returns the map art tiles for a map.
GetMapArtTiles = function(uiMapID) end,
--- @param uiMapID number
--- @return table
--- Returns the map children for a map.
GetMapChildrenInfo = function(uiMapID) end,
--- @param uiMapID number
--- @return table
--- Returns the map flags for a map.
GetMapFlags = function(uiMapID) end,
--- @param uiMapID number
--- @return table
--- Returns the map group ID for a map.
GetMapGroupID = function(uiMapID) end,
--- @param uiMapID number
--- @return table
--- Returns the map link info for a map.
GetMapLinkInfo = function(uiMapID) end,
--- @param uiMapID number
--- @return table
--- Returns the map parent info for a map.
GetMapParentInfo = function(uiMapID) end,
--- @param uiMapID number
--- @return table
--- Returns the map rect for a map.
GetMapRect = function(uiMapID) end,
--- @param uiMapID number
--- @return table
--- Returns the map type for a map.
GetMapType = function(uiMapID) end,
--- @param uiMapID number
--- @return table
--- Returns the map zones for a map.
GetMapZones = function(uiMapID) end,
--- @param uiMapID number
--- @return boolean
--- Returns whether a map is valid.
IsMapValidForNavigation = function(uiMapID) end,
--- @param uiMapID number
--- @return boolean
--- Returns whether a map is a dungeon map.
IsDungeonMap = function(uiMapID) end,
--- @param uiMapID number
--- @return boolean
--- Returns whether a map is a raid map.
IsRaidMap = function(uiMapID) end,
--- @param uiMapID number
--- @return boolean
--- Returns whether a map is a battleground map.
IsBattlegroundMap = function(uiMapID) end,
--- @param uiMapID number
--- @return boolean
--- Returns whether a map is an arena map.
IsArenaMap = function(uiMapID) end,
--- @param uiMapID number
--- @return boolean
--- Returns whether a map is a world map.
IsWorldMap = function(uiMapID) end,
--- @param uiMapID number
--- @return boolean
--- Returns whether a map is a continent map.
IsContinentMap = function(uiMapID) end,
--- @param uiMapID number
--- @return boolean
--- Returns whether a map is a zone map.
IsZoneMap = function(uiMapID) end,
--- @param uiMapID number
--- @return boolean
--- Returns whether a map is a micro dungeon map.
IsMicroDungeonMap = function(uiMapID) end,
--- @param uiMapID number
--- @return boolean
--- Returns whether a map is an orphan map.
IsOrphanMap = function(uiMapID) end,
--- @param uiMapID number
--- @return boolean
--- Returns whether a map is a cosmic map.
IsCosmicMap = function(uiMapID) end,
}

203
C_MountJournal.lua Normal file
View File

@@ -0,0 +1,203 @@
---@meta
---
--- C_MountJournal is a namespace for functions related to the mount journal.
---
--- @class C_MountJournal
C_MountJournal = {
--- @return number
--- Returns the number of mounts needing fanfare.
GetNumMountsNeedingFanfare = function() end,
--- @return number
--- Returns the number of mounts listed in the mount journal.
GetNumMounts = function() end,
--- @return number
--- Returns the number of (filtered) mounts shown in the mount journal.
GetNumDisplayedMounts = function() end,
--- @param mountID number
--- @return boolean
--- Returns true if fanfare is needed for the specified mount.
NeedsFanfare = function(mountID) end,
--- @param filterIndex number
--- @return boolean
--- Returns true if the source filter is valid.
IsSourceChecked = function(filterIndex) end,
--- @param filterIndex number
--- @return boolean
--- Returns true if the type filter is valid.
IsTypeChecked = function(filterIndex) end,
--- @return boolean
--- Returns true if default filters are being used.
IsUsingDefaultFilters = function() end,
--- @param filterIndex number
--- @return boolean
--- Returns true if the specified source filter is valid.
IsValidSourceFilter = function(filterIndex) end,
--- @param filterIndex number
--- @return boolean
--- Returns true if the specified type filter is valid.
IsValidTypeFilter = function(filterIndex) end,
--- @return boolean
--- Returns true if dragonriding is unlocked.
IsDragonridingUnlocked = function() end,
--- @param mountID number
--- @return nil
--- Clears the fanfare for the specified mount.
ClearFanfare = function(mountID) end,
--- @return nil
--- Clears recent fanfares.
ClearRecentFanfares = function() end,
--- @return nil
--- Dismisses the currently summoned mount.
Dismiss = function() end,
--- @param mountID number
--- @return table
--- Returns all creature display IDs for the given mount ID.
GetAllCreatureDisplayIDsForMountID = function(mountID) end,
--- @return table
--- Returns a list of collected dragonriding mounts.
GetCollectedDragonridingMounts = function() end,
--- @param filterIndex number
--- @return boolean
--- Indicates whether the specified mount journal filter is enabled.
GetCollectedFilterSetting = function(filterIndex) end,
--- @param displayIndex number
--- @return number
--- Returns the displayed mount ID for the given index.
GetDisplayedMountID = function(displayIndex) end,
--- @param displayIndex number
--- @return table
--- Returns information about the specified mount.
GetDisplayedMountInfo = function(displayIndex) end,
--- @param mountIndex number
--- @return table
--- Returns extra information about the specified mount.
GetDisplayedMountInfoExtra = function(mountIndex) end,
--- @return number
--- Returns the spell ID for the dynamic flight mode.
GetDynamicFlightModeSpellID = function() end,
--- @param mountIndex number
--- @return boolean
--- Indicates whether the specified mount is marked as a favorite.
GetIsFavorite = function(mountIndex) end,
--- @param mountID number
--- @return table
--- Returns all creature display info for the given mount ID.
GetMountAllCreatureDisplayInfoByID = function(mountID) end,
--- @param itemID number
--- @return number
--- Returns the mount associated with the given item.
GetMountFromItem = function(itemID) end,
--- @param spellID number
--- @return number
--- Returns the mount associated with the given spell.
GetMountFromSpell = function(spellID) end,
--- @return table
--- Returns a list of all mount IDs.
GetMountIDs = function() end,
--- @param mountID number
--- @return table
--- Returns information about the mount by ID.
GetMountInfoByID = function(mountID) end,
--- @param mountID number
--- @return table
--- Returns extra information about the mount by ID.
GetMountInfoExtraByID = function(mountID) end,
--- @param spellID number
--- @return string
--- Returns the mount link for the given spell ID.
GetMountLink = function(spellID) end,
--- @param mountID number
--- @param checkIndoors boolean
--- @return boolean
--- Returns if a mount is currently usable by the player.
GetMountUsabilityByID = function(mountID, checkIndoors) end,
--- @param displayIndex number
--- @return nil
--- Picks up the specified mount onto the cursor.
Pickup = function(displayIndex) end,
--- @return nil
--- Picks up the dynamic flight mode.
PickupDynamicFlightMode = function() end,
--- @param isChecked boolean
--- @return nil
--- Sets all source filters.
SetAllSourceFilters = function(isChecked) end,
--- @param isChecked boolean
--- @return nil
--- Sets all type filters.
SetAllTypeFilters = function(isChecked) end,
--- @param filterIndex number
--- @param isChecked boolean
--- @return nil
--- Enables or disables the specified mount journal filter.
SetCollectedFilterSetting = function(filterIndex, isChecked) end,
--- @return nil
--- Sets the default filters.
SetDefaultFilters = function() end,
--- @param mountIndex number
--- @param isFavorite boolean
--- @return nil
--- Marks or unmarks the specified mount as a favorite.
SetIsFavorite = function(mountIndex, isFavorite) end,
--- @param searchValue string
--- @return nil
--- Sets the search term for the mount journal.
SetSearch = function(searchValue) end,
--- @param filterIndex number
--- @param isChecked boolean
--- @return nil
--- Sets the source filter.
SetSourceFilter = function(filterIndex, isChecked) end,
--- @param filterIndex number
--- @param isChecked boolean
--- @return nil
--- Sets the type filter.
SetTypeFilter = function(filterIndex, isChecked) end,
--- @param mountID number
--- @return nil
--- Summons the specified mount.
SummonByID = function(mountID) end,
--- @return nil
--- Swaps the dynamic flight mode.
SwapDynamicFlightMode = function() end,
}

15
C_NamePlate.lua Normal file
View File

@@ -0,0 +1,15 @@
---@meta
---
--- C_NamePlate is a namespace for functions related to nameplates.
---
--- @class C_NamePlate
C_NamePlate = {
--- @param unit string
--- @return Frame|nil
--- Returns the nameplate frame for a given unit.
GetNamePlateForUnit = function(unit) end,
--- @return table
--- Returns a table of all nameplates currently shown.
GetNamePlates = function() end,
}

22
C_NewItems.lua Normal file
View File

@@ -0,0 +1,22 @@
---@diagnostic disable: missing-return, lowercase-global
---@meta
---
--- C_NewItems is a namespace for functions related to new item flags in the player's inventory.
---
--- @class C_NewItems
C_NewItems = {
--- Clears the new item flag on all items in the player's inventory.
--- @return nil
ClearAll = function() end,
--- Returns true if the item in the inventory slot is flagged as new.
--- @param containerIndex number: The index of the container.
--- @param slotIndex number: The index of the slot.
--- @return boolean: isNew
IsNewItem = function(containerIndex, slotIndex) end,
--- Clears the "new item" flag.
--- @param containerIndex number: The index of the container.
--- @param slotIndex number: The index of the slot.
RemoveNewItem = function(containerIndex, slotIndex) end,
}

264
C_PetBattles.lua Normal file
View File

@@ -0,0 +1,264 @@
---@diagnostic disable: missing-return, lowercase-global
---@meta
---@class C_PetBattles
C_PetBattles = {
---@return nil
AcceptPVPDuel = function() end,
---@return nil
AcceptQueuedPVPMatch = function() end,
---@return boolean canAccept
CanAcceptQueuedPVPMatch = function() end,
---@return boolean usable
CanActivePetSwapOut = function() end,
---@param petIndex number
---@return nil
CanPetSwapIn = function(petIndex) end,
---@return nil
CancelPVPDuel = function() end,
---@param petIndex number
---@return nil
ChangePet = function(petIndex) end,
---@return nil
DeclineQueuedPVPMatch = function() end,
---@return nil
ForfeitGame = function() end,
---@param abilityID number
---@param turnIndex number
---@param effectIndex number
---@param effectName string
---@return number value
GetAbilityEffectInfo = function(abilityID, turnIndex, effectIndex, effectName) end,
---@param id number
---@return number id
---@return string name
---@return string icon
---@return number maxCooldown
---@return string unparsedDescription
---@return number numTurns
---@return number petType
---@return boolean noStrongWeakHints
GetAbilityInfoByID = function(id) end,
---@param petOwner ownerType
---@param petIndex number
---@param abilityIndex number
---@return number id
---@return string name
---@return string icon
---@return number maxCooldown
---@return string unparsedDescription
---@return number numTurns
---@return number petType
---@return boolean noStrongWeakHints
GetAbilityInfo = function(petOwner, petIndex, abilityIndex) end,
---@param abilityID number
---@param procType number
---@return number turnIndex
GetAbilityProcTurnIndex = function(abilityID, procType) end,
---@param abilityID number
---@param stateID number
---@return number abilityStateMod
GetAbilityStateModification = function(abilityID, stateID) end,
---@param petOwner ownerType
---@param petIndex number
---@param actionIndex number
---@return boolean isUsable
---@return number currentCooldown
---@return number currentLockdown
GetAbilityState = function(petOwner, petIndex, actionIndex) end,
---@param petOwner number
---@return number petIndex
GetActivePet = function(petOwner) end,
---@return table
GetAllEffectNames = function() end,
---@param stateEnv table
---@return number
GetAllStates = function(stateEnv) end,
---@param petType number
---@param enemyPetType number
---@return number modifier
GetAttackModifier = function(petType, enemyPetType) end,
---@param petOwner ownerType
---@param petIndex number
---@param auraIndex number
---@return number auraID
---@return number instanceID
---@return number turnsRemaining
---@return boolean isBuff
GetAuraInfo = function(petOwner, petIndex, auraIndex) end,
---@return number battleState
GetBattleState = function() end,
---@param petOwner ownerType
---@param slot number
---@return number quality
GetBreedQuality = function(petOwner, slot) end,
---@param petOwner ownerType
---@param petIndex number
---@return number displayID
GetDisplayID = function(petOwner, petIndex) end,
---@return number forfeitPenalty
GetForfeitPenalty = function() end,
---@param petOwner ownerType
---@param petIndex number
---@return number health
GetHealth = function(petOwner, petIndex) end,
---@param petOwner ownerType
---@param slot number
---@return number iconFileID
GetIcon = function(petOwner, slot) end,
---@param petOwner ownerType
---@param petIndex number
---@return number level
GetLevel = function(petOwner, petIndex) end,
---@param petOwner ownerType
---@param petIndex number
---@return number maxHealth
GetMaxHealth = function(petOwner, petIndex) end,
---@param petOwner ownerType
---@param slot number
---@return string customName
---@return string speciesName
GetName = function(petOwner, slot) end,
---@param petOwner ownerType
---@param petIndex number
---@return number numAuras
GetNumAuras = function(petOwner, petIndex) end,
---@alias ownerType
---| 1 The player
---| 2 The opponent
---@param petOwner ownerType
---@return number numPets
GetNumPets = function(petOwner) end,
---@return string queueState
---@return number estimatedTime
---@return number queuedTime
GetPVPMatchmakingInfo = function() end,
---@param petOwner number
---@param petIndex number
---@return number speciesID
GetPetSpeciesID = function(petOwner, petIndex) end,
---@param petOwner number
---@param petIndex number
---@return number petType
GetPetType = function(petOwner, petIndex) end,
---@return number trapAbilityID
GetPlayerTrapAbility = function() end,
---@param petOwner number
---@param petIndex number
---@return number power
GetPower = function(petOwner, petIndex) end,
---@alias selectedActionType
---| 2 Ability
---| 3 Switch Pet
---| 4 Trap
---| 5 Skip Turn
---@return selectedActionType selectedActionType
---@return number selectedActionIndex
GetSelectedAction = function() end,
---@param petOwner number
---@param petIndex number
---@return number speed
GetSpeed = function(petOwner, petIndex) end,
---@param petOwner number
---@param petIndex number
---@param stateID number
---@return number stateValue
GetStateValue = function(petOwner, petIndex, stateID) end,
---@return number timeRemaining
---@return number turnTime
GetTurnTimeInfo = function() end,
---@param petOwner number
---@param petIndex number
---@return number xp
---@return number maxXp
GetXP = function(petOwner, petIndex) end,
---@return boolean inBattle
IsInBattle = function() end,
---@param player string
---@return boolean isPlayerNPC
IsPlayerNPC = function(player) end,
---@return boolean usable
IsSkipAvailable = function() end,
---@return boolean usable
IsTrapAvailable = function() end,
---@return boolean isWaiting
IsWaitingOnOpponent = function() end,
---@return boolean isWildBattle
IsWildBattle = function() end,
---@param petIndex number
SetPendingReportBattlePetTarget = function(petIndex) end,
---@param unit string
SetPendingReportTargetFromUnit = function(unit) end,
---@return boolean shouldShow
ShouldShowPetSelect = function() end,
---@return nil
SkipTurn = function() end, -- #hwevent
---@return nil
StartPVPDuel = function() end,
---@return nil
StartPVPMatchmaking = function() end,
---@return nil
StopPVPMatchmaking = function() end,
---@param actionIndex number
---@return nil
UseAbility = function(actionIndex) end, -- #hwevent
---@return nil
UseTrap = function() end, -- #hwevent
}

427
C_PetJournal.lua Normal file
View File

@@ -0,0 +1,427 @@
---@meta
---
--- C_PetJournal is a namespace for functions related to the pet journal system.
---
--- @class C_PetJournal
C_PetJournal = {
--- Puts the pet into a cage.
--- @param petID number The ID of the pet to cage
--- @return boolean success Whether the pet was successfully caged
CagePetByID = function(petID) end,
--- Clears the fanfare state for newly acquired pets
--- @return nil
ClearFanfare = function() end,
--- Clears the currently hovered battle pet
--- @return nil
ClearHoveredBattlePet = function() end,
--- Clears recent fanfare notifications
--- @return nil
ClearRecentFanfares = function() end,
--- Clears the search box in the pet journal.
--- @return nil
ClearSearchFilter = function() end,
--- Finds a pet by its name
--- @param petName string The name of the pet to find
--- @return number speciesId The species ID of the found pet
--- @return string petGUID The unique identifier of the found pet
FindPetIDByName = function(petName) end,
--- Returns a battle pet link.
--- @param petID number The ID of the pet
--- @return string link The chat link for the battle pet
GetBattlePetLink = function(petID) end,
--- Gets the display ID for a pet species at a specific index
--- @param speciesID number The species ID
--- @param index number The display index
--- @return number displayID The display ID for the pet
GetDisplayIDByIndex = function(speciesID, index) end,
--- Gets the probability of a specific display variation
--- @param speciesID number The species ID
--- @param index number The display index
--- @return number displayProbability The probability of this display variation
GetDisplayProbabilityByIndex = function(speciesID, index) end,
--- Gets collection information for a pet species
--- @param speciesId number The species ID
--- @return number numCollected Number of this species collected
--- @return number limit Maximum number that can be collected
GetNumCollectedInfo = function(speciesId) end,
--- Gets the number of display variations for a pet species
--- @param speciesID number The species ID
--- @return number numDisplays Number of display variations
GetNumDisplays = function(speciesID) end,
--- Returns information about the number of battle pets.
--- @return number numPets Total number of pets
--- @return number numOwned Number of owned pets
GetNumPets = function() end,
--- Gets the number of pets of a specific type in the journal
--- @param creatureID number The creature ID
--- @return number maxAllowed Maximum allowed
--- @return number numPets Number of pets owned
GetNumPetsInJournal = function(creatureID) end,
--- Gets the number of pets needing fanfare display
--- @return number count Number of pets needing fanfare
GetNumPetsNeedingFanfare = function() end,
--- Returns information about the number of pet sources.
--- @return number numSources Number of different pet sources
GetNumPetSources = function() end,
--- Returns information about the number of pet types.
--- @return number numTypes Number of different pet types
GetNumPetTypes = function() end,
--- Returns a formatted string how many of a battle pet species the player has collected.
--- @param speciesId number The species ID
--- @return string ownedString Formatted string showing collection status
GetOwnedBattlePetString = function(speciesId) end,
--- Gets a table of all owned pet IDs
--- @return table ownedPetIDs Table containing all owned pet IDs
GetOwnedPetIDs = function() end,
--- Gets information about a pet ability
--- @param abilityID number The ability ID
--- @return string name The name of the ability
--- @return string icon The icon texture path
--- @return string petType The type of pet this ability belongs to
GetPetAbilityInfo = function(abilityID) end,
--- Gets a list of pet abilities
--- @param speciesID number The species ID
--- @param idTable? table Optional table to store ability IDs
--- @param levelTable? table Optional table to store ability levels
--- @return table idTable Table of ability IDs
--- @return table levelTable Table of ability levels
GetPetAbilityList = function(speciesID, idTable, levelTable) end,
--- Gets a table of pet ability information
--- @param speciesID number The species ID
--- @return table info Table containing ability information
GetPetAbilityListTable = function(speciesID) end,
--- Gets cooldown information for a pet
--- @param GUID string The pet's GUID
--- @return number start Cooldown start time
--- @return number duration Cooldown duration
--- @return boolean isEnabled Whether the cooldown is enabled
GetPetCooldownByGUID = function(GUID) end,
--- Returns information about a battle pet.
--- @param index number The index of the pet
--- @return number petID The pet ID
--- @return number speciesID The species ID
--- @return boolean owned Whether the pet is owned
--- @return string customName Custom name if set
--- @return number level Pet level
--- @return boolean favorite Whether it's marked as favorite
--- @return boolean isRevoked Whether the pet is revoked
--- @return string speciesName Species name
--- @return string icon Icon texture path
--- @return number petType Pet type ID
--- @return number companionID Companion ID
--- @return string tooltip Tooltip text
--- @return string description Pet description
--- @return boolean isWild Whether it's a wild pet
--- @return boolean canBattle Whether it can battle
--- @return boolean isTradeable Whether it can be traded
--- @return boolean isUnique Whether it's unique
--- @return boolean obtainable Whether it can be obtained
GetPetInfoByIndex = function(index) end,
--- Gets information about a pet from its item ID
--- @param itemID number The item ID
--- @return string name Pet name
--- @return string icon Icon texture path
--- @return number petType Pet type ID
--- @return number creatureID Creature ID
--- @return string sourceText Source description
--- @return string description Pet description
--- @return boolean isWild Whether it's a wild pet
--- @return boolean canBattle Whether it can battle
--- @return boolean isTradeable Whether it can be traded
--- @return boolean isUnique Whether it's unique
--- @return boolean obtainable Whether it can be obtained
--- @return number displayID Display ID
--- @return number speciesID Species ID
GetPetInfoByItemID = function(itemID) end,
--- Returns information about a battle pet.
--- @param petID number The pet ID
--- @return number speciesID Species ID
--- @return string customName Custom name if set
--- @return number level Pet level
--- @return number xp Current experience
--- @return number maxXp Experience needed for next level
--- @return number displayID Display ID
--- @return boolean favorite Whether it's marked as favorite
--- @return string name Pet name
--- @return string icon Icon texture path
--- @return number petType Pet type ID
--- @return number creatureID Creature ID
--- @return string sourceText Source description
--- @return string description Pet description
--- @return boolean isWild Whether it's a wild pet
--- @return boolean canBattle Whether it can battle
--- @return boolean isTradeable Whether it can be traded
--- @return boolean isUnique Whether it's unique
--- @return boolean obtainable Whether it can be obtained
GetPetInfoByPetID = function(petID) end,
--- Returns information about a pet species.
--- @param speciesID number The species ID
--- @return string speciesName Species name
--- @return string speciesIcon Icon texture path
--- @return number petType Pet type ID
--- @return number companionID Companion ID
--- @return string tooltipSource Source tooltip
--- @return string tooltipDescription Description tooltip
--- @return boolean isWild Whether it's a wild pet
--- @return boolean canBattle Whether it can battle
--- @return boolean isTradeable Whether it can be traded
--- @return boolean isUnique Whether it's unique
--- @return boolean obtainable Whether it can be obtained
--- @return number creatureDisplayID Display ID
--- @return number desiredScale Desired display scale
GetPetInfoBySpeciesID = function(speciesID) end,
--- Gets a table containing pet information
--- @param petID number The pet ID
--- @return table info Table containing pet information
GetPetInfoTableByPetID = function(petID) end,
--- Gets information about a pet loadout slot
--- @param slot number The loadout slot index
--- @return number petID Pet ID in the slot
--- @return number ability1ID First ability ID
--- @return number ability2ID Second ability ID
--- @return number ability3ID Third ability ID
--- @return boolean locked Whether the slot is locked
GetPetLoadOutInfo = function(slot) end,
--- Gets model scene information for a pet species
--- @param speciesID number The species ID
GetPetModelSceneInfoBySpeciesID = function(speciesID) end,
--- Gets the current pet sort parameter
--- @return string sortParameter The current sort parameter
GetPetSortParameter = function() end,
--- Returns the stats of a collected battle pet.
--- @param petID number The pet ID
--- @return number health Current health
--- @return number maxHealth Maximum health
--- @return number power Attack power
--- @return number speed Speed stat
--- @return number rarity Pet rarity level
GetPetStats = function(petID) end,
--- Gets information about whether a pet can be summoned
--- @param battlePetGUID string The pet's GUID
--- @return boolean isSummonable Whether the pet can be summoned
--- @return string error Error code if not summonable
--- @return string errorText Error message if not summonable
GetPetSummonInfo = function(battlePetGUID) end,
--- Gets the average level of the current pet team
--- @return number avgLevel Average level of the pet team
GetPetTeamAverageLevel = function() end,
--- Gets the current search filter text
--- @return string filterText Current search filter text
GetSearchFilter = function() end,
--- Returns information about a battle pet.
--- @return number summonedPetGUID GUID of the currently summoned pet
GetSummonedPetGUID = function() end,
--- Gets the GUID of a random favorite pet for summoning
--- @return number petGUID GUID of a random favorite pet
GetSummonRandomFavoritePetGUID = function() end,
--- Checks if the player has any favorite pets
--- @return boolean hasFavorites Whether any pets are marked as favorites
HasFavoritePets = function() end,
--- Checks if a filter is currently active
--- @param filter string The filter to check
--- @return boolean isFiltered Whether the filter is active
IsFilterChecked = function(filter) end,
--- Checks if pet battles can be initiated
--- @return boolean isEnabled Whether pet battles are enabled
IsFindBattleEnabled = function() end,
--- Checks if the pet journal is in read-only mode
--- @return boolean isReadOnly Whether the journal is read-only
IsJournalReadOnly = function() end,
--- Checks if the pet journal is unlocked
--- @return boolean isUnlocked Whether the journal is unlocked
IsJournalUnlocked = function() end,
--- Checks if a pet source filter is active
--- @param index number The source index to check
--- @return boolean isChecked Whether the source is checked
IsPetSourceChecked = function(index) end,
--- Checks if a pet type filter is active
--- @param index number The pet type index to check
--- @return boolean isChecked Whether the type is checked
IsPetTypeChecked = function(index) end,
--- Checks if using default filter settings
--- @return boolean isUsingDefaultFilters Whether using default filters
IsUsingDefaultFilters = function() end,
--- Returns true if you can release the pet.
--- @param petID number The pet ID
--- @return boolean canRelease Whether the pet can be released
PetCanBeReleased = function(petID) end,
--- Checks if a pet can be captured
--- @param petID number The pet ID
--- @return boolean isCapturable Whether the pet can be captured
PetIsCapturable = function(petID) end,
--- Returns true if the collected battle pet is favorited.
--- @param petGUID string The pet's GUID
--- @return boolean isFavorite Whether the pet is marked as favorite
PetIsFavorite = function(petGUID) end,
--- Checks if a pet needs healing
--- @param petID number The pet ID
--- @return boolean isHurt Whether the pet is hurt
PetIsHurt = function(petID) end,
--- Checks if a pet is locked for conversion
--- @param petID number The pet ID
PetIsLockedForConvert = function(petID) end,
--- Checks if a pet is revoked
--- @param petID number The pet ID
--- @return boolean isRevoked Whether the pet is revoked
PetIsRevoked = function(petID) end,
--- Checks if a pet is in a battle loadout slot
--- @param petID number The pet ID
--- @return boolean isSlotted Whether the pet is in a loadout slot
PetIsSlotted = function(petID) end,
--- Returns true if you can summon this pet.
--- @param battlePetGUID string The pet's GUID
--- @return boolean isSummonable Whether the pet can be summoned
PetIsSummonable = function(battlePetGUID) end,
--- Returns whether or not a pet from the Pet Journal is tradable.
--- @param petID number The pet ID
--- @return boolean isTradable Whether the pet can be traded
PetIsTradable = function(petID) end,
--- Checks if a pet is usable
--- @param petID number The pet ID
--- @return boolean isUsable Whether the pet is usable
PetIsUsable = function(petID) end,
--- Checks if a pet needs fanfare display
--- @return boolean needsFanfare Whether the pet needs fanfare
PetNeedsFanfare = function() end,
--- Checks if a pet species uses random display variation
--- @param speciesID number The species ID
--- @return boolean usesRandomDisplay Whether the species uses random display
PetUsesRandomDisplay = function(speciesID) end,
--- Picks up a pet into the cursor
--- @param petID number The pet ID
PickupPet = function(petID) end,
--- Picks up a random pet for summoning
PickupSummonRandomPet = function() end,
--- Releases the pet.
--- @param petID number The pet ID to release
ReleasePetByID = function(petID) end,
--- Sets a pet ability in a loadout slot
--- @param slotIndex number The loadout slot index
--- @param spellIndex number The spell slot index
--- @param petSpellID number The pet ability spell ID
SetAbility = function(slotIndex, spellIndex, petSpellID) end,
--- Sets the checked state for all pet sources
--- @param value boolean Whether to check or uncheck all sources
SetAllPetSourcesChecked = function(value) end,
--- Sets the checked state for all pet types
--- @param value boolean Whether to check or uncheck all types
SetAllPetTypesChecked = function(value) end,
--- Sets a custom name for the pet.
--- @param petID number The pet ID
--- @param customName string The new custom name
SetCustomName = function(petID, customName) end,
--- Resets all filters to default values
SetDefaultFilters = function() end,
--- Sets (or clears) the pet as a favorite.
--- @param petID number The pet ID
--- @param value boolean Whether to set or clear favorite status
SetFavorite = function(petID, value) end,
--- Sets a filter's checked state
--- @param filter string The filter to set
--- @param value boolean The checked state to set
SetFilterChecked = function(filter, value) end,
--- Sets the currently hovered battle pet
--- @param battlePetGUID string The pet's GUID
SetHoveredBattlePet = function(battlePetGUID) end,
--- Sets a pet in a loadout slot
--- @param slotIndex number The loadout slot index
--- @param petID number The pet ID to set
SetPetLoadOutInfo = function(slotIndex, petID) end,
--- Sets the pet sort parameter
--- @param sortParameter string The sort parameter to set
SetPetSortParameter = function(sortParameter) end,
--- Sets a pet source filter's checked state
--- @param index number The source index
--- @param value boolean The checked state to set
SetPetSourceChecked = function(index, value) end,
--- Sets the pet type in the filter menu.
--- @param index number The pet type index
--- @param value boolean Whether to check or uncheck the type
SetPetTypeFilter = function(index, value) end,
--- Sets the search filter in the pet journal.
--- @param filterText string The search text to set
SetSearchFilter = function(filterText) end,
--- Targets a battle pet with a spell
--- @param battlePetGUID string The pet's GUID
SpellTargetBattlePet = function(battlePetGUID) end,
--- Summons (or dismisses) a pet.
--- @param petID number The pet ID to summon
SummonPetByGUID = function(petID) end,
--- Summons a random battle pet companion.
--- @param favoritePets boolean Whether to only summon from favorites
SummonRandomPet = function(favoritePets) end,
}

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,
}

77
C_RecruitAFriend.lua Normal file
View File

@@ -0,0 +1,77 @@
---@meta
--- C_RecruitAFriend is a namespace for functions related to the Recruit-a-Friend system.
---
--- @class C_RecruitAFriend
C_RecruitAFriend = {
--- @param guid string
--- @return boolean result
--- Returns whether you can RaF summon a particular unit.
CanSummonFriend = function(guid) end,
--- @param activityID number
--- @param acceptanceID number
--- @return boolean success
--- Claims the activity reward.
ClaimActivityReward = function(activityID, acceptanceID) end,
--- @param rafVersion number
--- @return boolean success
--- Claims the next reward.
ClaimNextReward = function(rafVersion) end,
--- @return boolean success
--- Generates a recruitment link.
GenerateRecruitmentLink = function() end,
--- @return table info
--- Gets the RAF info.
GetRAFInfo = function() end,
--- @return table systemInfo
--- Gets the RAF system info.
GetRAFSystemInfo = function() end,
--- @param activityID number
--- @param acceptanceID number
--- @return string requirementsText
--- Gets the recruitment activity requirements text.
GetRecruitActivityRequirementsText = function(activityID, acceptanceID) end,
--- @return boolean active
--- @return string faction
--- Gets the recruitment info.
GetRecruitInfo = function() end,
--- @return number startTimeSeconds
--- @return number durationSeconds
--- @return boolean enableCooldownTimer
--- Returns the cooldown info of the RaF Summon Friend ability.
GetSummonFriendCooldown = function() end,
--- @return boolean enabled
--- Checks if the system is enabled.
IsEnabled = function() end,
--- @param guid string
--- @return boolean result
--- Checks if a player is linked to the Recruit-a-Friend system.
IsRecruitAFriendLinked = function(guid) end,
--- @return boolean enabled
--- Checks if recruiting is enabled.
IsRecruitingEnabled = function() end,
--- @param wowAccountGUID string
--- @return boolean success
--- Removes a RAF recruit.
RemoveRAFRecruit = function(wowAccountGUID) end,
--- @return boolean success
--- Requests updated recruitment info.
RequestUpdatedRecruitmentInfo = function() end,
--- @param target string
--- @param name string
--- Summons a player using the RaF system.
SummonFriend = function(target, name) end,
}

77
C_Scenario.lua Normal file
View File

@@ -0,0 +1,77 @@
---@meta
--- C_RecruitAFriend is a namespace for functions related to the Recruit-a-Friend system.
---
--- @class C_RecruitAFriend
C_RecruitAFriend = {
--- @param guid string
--- @return boolean result
--- Returns whether you can RaF summon a particular unit.
CanSummonFriend = function(guid) end,
--- @param activityID number
--- @param acceptanceID number
--- @return boolean success
--- Claims the activity reward.
ClaimActivityReward = function(activityID, acceptanceID) end,
--- @param rafVersion number
--- @return boolean success
--- Claims the next reward.
ClaimNextReward = function(rafVersion) end,
--- @return boolean success
--- Generates a recruitment link.
GenerateRecruitmentLink = function() end,
--- @return table info
--- Gets the RAF info.
GetRAFInfo = function() end,
--- @return table systemInfo
--- Gets the RAF system info.
GetRAFSystemInfo = function() end,
--- @param activityID number
--- @param acceptanceID number
--- @return string requirementsText
--- Gets the recruitment activity requirements text.
GetRecruitActivityRequirementsText = function(activityID, acceptanceID) end,
--- @return boolean active
--- @return string faction
--- Gets the recruitment info.
GetRecruitInfo = function() end,
--- @return number startTimeSeconds
--- @return number durationSeconds
--- @return boolean enableCooldownTimer
--- Returns the cooldown info of the RaF Summon Friend ability.
GetSummonFriendCooldown = function() end,
--- @return boolean enabled
--- Checks if the system is enabled.
IsEnabled = function() end,
--- @param guid string
--- @return boolean result
--- Checks if a player is linked to the Recruit-a-Friend system.
IsRecruitAFriendLinked = function(guid) end,
--- @return boolean enabled
--- Checks if recruiting is enabled.
IsRecruitingEnabled = function() end,
--- @param wowAccountGUID string
--- @return boolean success
--- Removes a RAF recruit.
RemoveRAFRecruit = function(wowAccountGUID) end,
--- @return boolean success
--- Requests updated recruitment info.
RequestUpdatedRecruitmentInfo = function() end,
--- @param target string
--- @param name string
--- Summons a player using the RaF system.
SummonFriend = function(target, name) end,
}

64
C_TaskQuest.lua Normal file
View File

@@ -0,0 +1,64 @@
---@diagnostic disable: missing-return, lowercase-global
---@meta
---
--- C_TaskQuest is a namespace for functions related to task quests.
---
--- @class C_TaskQuest
C_TaskQuest = {
--- @param uiMapID number
--- @return boolean showsTaskQuestObjectives
DoesMapShowTaskQuestObjectives = function(uiMapID) end,
--- @param questID number
--- @return table widgetSet
GetQuestIconUIWidgetSet = function(questID) end,
--- @param questID number
--- @return string questTitle
--- @return number factionID
--- @return boolean capped
--- @return boolean displayAsObjective
GetQuestInfoByQuestID = function(questID) end,
--- @param questID number
--- @param uiMapID number
--- @return number locationX
--- @return number locationY
GetQuestLocation = function(questID, uiMapID) end,
--- @param questID number
--- @return number progress
GetQuestProgressBarInfo = function(questID) end,
--- @param uiMapID number
--- @return table taskPOIs
GetQuestsOnMap = function(uiMapID) end,
--- @param questID number
--- @return number minutesLeft
GetQuestTimeLeftMinutes = function(questID) end,
--- @param questID number
--- @return number secondsLeft
GetQuestTimeLeftSeconds = function(questID) end,
--- @param questID number
--- @return table widgetSet
GetQuestTooltipUIWidgetSet = function(questID) end,
--- @param questID number
--- @return number uiMapID
GetQuestZoneID = function(questID) end,
--- @return table quests
GetThreatQuests = function() end,
--- @param questID number
--- @return boolean active
IsActive = function(questID) end,
--- @param questID number
--- @return nil
RequestPreloadRewardData = function(questID) end,
}

View File

@@ -5,14 +5,25 @@
---@class C_Timer ---@class C_Timer
C_Timer = { C_Timer = {
---Schedules a timer.
---@param seconds number ---@param seconds number
---@param callback function ---@param callback function
---@return Timer ---@return nil
---@overload fun(seconds: number, callback: function, iterations: number) After = function(seconds, callback) end,
NewTimer = function(seconds, callback) end,
---Schedules a timer that can be canceled.
---@param seconds number ---@param seconds number
---@param callback function ---@param callback function
---@param repetitions number?
---@return Timer ---@return Timer
---@overload fun(seconds: number, callback: function, iterations: number) NewTimer = function(seconds, callback, repetitions) end,
NewTicker = function(seconds, callback) end,
---Schedules a repeating timer that can be canceled.
---@param seconds number
---@param callback function
---@param iterations number
---@return Timer
NewTicker = function(seconds, callback, iterations) end,
} }
---@diagnostic disable: missing-return, lowercase-global
---@meta

135
C_ToyBox.lua Normal file
View File

@@ -0,0 +1,135 @@
---@meta
---
--- C_ToyBox is a namespace for functions related to the toy box system.
---
--- @class C_ToyBox
C_ToyBox = {
--- @return nil
--- Forces a refilter of toys.
ForceToyRefilter = function() end,
--- @return boolean
--- Returns whether collected toys are shown.
GetCollectedShown = function() end,
--- @param itemID number
--- @return boolean isFavorite
--- Returns whether a toy is marked as favorite.
GetIsFavorite = function(itemID) end,
--- @return number
--- Returns the number of filtered toys.
GetNumFilteredToys = function() end,
--- @return number
--- Returns the number of learned displayed toys.
GetNumLearnedDisplayedToys = function() end,
--- @return number
--- Returns the total number of displayed toys.
GetNumTotalDisplayedToys = function() end,
--- @return number numToys
--- Returns the total number of toys.
GetNumToys = function() end,
--- @param index number
--- @return number itemID
--- Returns the toy ID from the specified index.
GetToyFromIndex = function(index) end,
--- @param itemID number
--- @return number itemID
--- @return string toyName
--- @return string icon
--- @return boolean isFavorite
--- @return boolean hasFanfare
--- @return number itemQuality
--- Returns information about a toy.
GetToyInfo = function(itemID) end,
--- @param itemID number
--- @return string itemLink
--- Returns the item link for a toy.
GetToyLink = function(itemID) end,
--- @return boolean
--- Returns whether uncollected toys are shown.
GetUncollectedShown = function() end,
--- @return boolean
--- Returns whether unusable toys are shown.
GetUnusableShown = function() end,
--- @return boolean
--- Returns whether there are any favorites.
HasFavorites = function() end,
--- @param expansionIndex number
--- @return boolean
--- Returns whether the specified expansion type filter is checked.
IsExpansionTypeFilterChecked = function(expansionIndex) end,
--- @param sourceIndex number
--- @return boolean
--- Returns whether the specified source type filter is checked.
IsSourceTypeFilterChecked = function(sourceIndex) end,
--- @param itemID number
--- @return boolean
--- Returns whether a toy is usable.
IsToyUsable = function(itemID) end,
--- @param itemID number
--- @return nil
--- Picks up a toy box item.
PickupToyBoxItem = function(itemID) end,
--- @param checked boolean
--- @return nil
--- Sets all expansion type filters.
SetAllExpansionTypeFilters = function(checked) end,
--- @param checked boolean
--- @return nil
--- Sets all source type filters.
SetAllSourceTypeFilters = function(checked) end,
--- @param checked boolean
--- @return nil
--- Sets whether collected toys are shown.
SetCollectedShown = function(checked) end,
--- @param expansionIndex number
--- @param checked boolean
--- @return nil
--- Sets the specified expansion type filter.
SetExpansionTypeFilter = function(expansionIndex, checked) end,
--- @param searchString string
--- @return nil
SetFilterString = function(searchString) end,
--- Sets the filter string for searching toys.
--- @param itemID number
--- @param value boolean
--- @return nil
--- Sets a toy as favorite or not.
SetIsFavorite = function(itemID, value) end,
--- @param sourceIndex number
--- @param checked boolean
--- @return nil
--- Sets the specified source type filter.
SetSourceTypeFilter = function(sourceIndex, checked) end,
--- @param checked boolean
--- @return nil
--- Sets whether uncollected toys are shown.
SetUncollectedShown = function(checked) end,
--- @param checked boolean
--- @return nil
--- Sets whether unusable toys are shown.
SetUnusableShown = function(checked) end,
}

45
C_Trophy.lua Normal file
View File

@@ -0,0 +1,45 @@
---@diagnostic disable: missing-return, lowercase-global
---@meta
--- C_Trophy is a namespace for functions related to trophy management.
---
--- @class C_Trophy
C_Trophy = {
--- @param trophyID number
--- @return nil
--- Changes the appearance of a trophy to the specified trophy ID.
MonumentChangeAppearanceToTrophyID = function(trophyID) end,
--- @return nil
--- Closes the monument UI.
MonumentCloseMonumentUI = function() end,
--- @return number
--- Returns the count of trophies.
MonumentGetCount = function() end,
--- @return number
--- Returns the selected trophy ID.
MonumentGetSelectedTrophyID = function() end,
--- @param index number
--- @return table
--- Returns information about a trophy by its index.
MonumentGetTrophyInfoByIndex = function(index) end,
--- @return nil
--- Loads the list of trophies.
MonumentLoadList = function() end,
--- @return nil
--- Loads the selected trophy ID.
MonumentLoadSelectedTrophyID = function() end,
--- @return nil
--- Reverts the appearance of the trophy to the saved state.
MonumentRevertAppearanceToSaved = function() end,
--- @param trophyID number
--- @return nil
--- Saves the selection of a trophy.
MonumentSaveSelection = function(trophyID) end,
}

70
Globals.lua Normal file
View File

@@ -0,0 +1,70 @@
---@meta
---@type Frame
UIParent = {}
---@type table<string, fun(arg: string)>
SlashCmdList = {}
---@type Frame
BattlefieldMinimap = {}
---@type Frame
BattlefieldMinimapBackground = {}
---@type Button
BattlefieldMinimapCloseButton = {}
---@type Frame
BattlefieldMinimapCorner = {}
---@type number
NUM_CHAT_WINDOWS = 0
---@param frame Frame
---@return boolean
FCF_IsValidChatFrame = function(frame) end
---@param name string
---@return boolean
FCF_OpenNewWindow = function(name) end
---@param name string
---@return boolean
FCF_OpenToChatFrame = function(name) end
---@param frame Frame
---@param messageGroup string
---@return nil
ChatFrame_AddMessageGroup = function(frame, messageGroup) end
---@param frame Frame
---@param messageGroup string
---@return nil
ChatFrame_RemoveMessageGroup = function(frame, messageGroup) end
---@param frame Frame
---@return nil
ChatFrame_RemoveAllMessageGroups = function(frame) end
---@param frame Frame
---@param channel string
---@return nil
ChatFrame_AddChannel = function(frame, channel) end
---@param frame Frame
---@param channel string
---@return nil
ChatFrame_RemoveChannel = function(frame, channel) end
---@param frame Frame
---@return nil
ChatFrame_RemoveAllChannels = function(frame) end
-- Just simply chat frames, global variables
---@type Frame
ChatFrame1 = {}
---@type Frame
ChatFrame2 = {}
---@type Frame
ChatFrame3 = {}
---@type Frame
ChatFrame4 = {}
---@type Frame
ChatFrame5 = {}

65
WeakAuras.lua Normal file
View File

@@ -0,0 +1,65 @@
---@meta
--- @param unit string
--- @return string
function WA_ClassColorName(unit) end
-- Args: unit (string)
-- Returns: The name of the unit with class color formatting.
--- @param string string
--- @param numCharacters number
--- @return string
function WA_Utf8Sub(string, numCharacters) end
-- Args: string (string), numCharacters (number)
-- Returns: Shortened string, handling non-standard characters.
-- Variables
-- WeakAuras.GetActiveConditions(aura_env.id, aura_env.cloneId)
-- Returns a table containing booleans for each Condition your Aura contains.
-- WeakAuras.CurrentEncounter
-- A table that holds encounter information for a fight.
-- Access via: id (encounter_id), zone_id (ZoneMapID), boss_guids ({}).
-- Functions
---@class WeakAuras
WeakAuras = {
--- @param eventName string
--- @param ... any
ScanEvents = function(eventName, ...) end,
--- @return boolean
IsOptionsOpen = function() end,
--- @param setID number
--- @return number
GetNumSetItemsEquipped = function(setID) end,
--- @param unit string
--- @param index number
--- @param filter string
--- @return string, string, number
GetAuraTooltipInfo = function(unit, index, filter) end,
}
-- Custom Glows
local LCG = LibStub("LibCustomGlow-1.0")
--- @param frame any
--- @param color table
--- @param numberOfLines number
--- @param speed number
--- @param length number
--- @param thickness number
--- @param xOffset number
--- @param yOffset number
--- @param border boolean
--- @param key string
function LCG.PixelGlow_Start(frame, color, numberOfLines, speed, length, thickness, xOffset, yOffset, border, key) end
-- Args: frame (UI element), color (table), numberOfLines (number), speed (number), length (number), thickness (number), xOffset (number), yOffset (number), border (boolean), key (string)
-- Starts pixel glow on the specified frame.
--- @param frame any
--- @param key string
function LCG.PixelGlow_Stop(frame, key) end
-- Args: frame (UI element), key (string, optional)
-- Stops pixel glow on the specified frame.

View File

@@ -3,11 +3,11 @@
---@param presenceID number ---@param presenceID number
---@param mutual boolean ---@param mutual boolean
---@param non-mutual boolean ---@param nonMutual boolean
---@param index number ---@param index number
---@return number presenceID ---@return number presenceID
---@return string givenName ---@return string givenName
---@return string surname ---@return string surname
---@return boolean isFriend ---@return boolean isFriend
---Returns information about the specified friend of a RealID friend ---Returns information about the specified friend of a RealID friend
function BNGetFOFInfo(presenceID, mutual, non-mutual, index) end function BNGetFOFInfo(presenceID, mutual, nonMutual, index) end

View File

@@ -1,4 +0,0 @@
---@diagnostic disable: missing-return, lowercase-global
---@meta
function C_BlackMarket.Close() end

View File

@@ -1,4 +0,0 @@
---@diagnostic disable: missing-return, lowercase-global
---@meta
function C_BlackMarket.GetHotItem() end

View File

@@ -1,4 +0,0 @@
---@diagnostic disable: missing-return, lowercase-global
---@meta
function C_BlackMarket.GetItemInfoByID() end

View File

@@ -1,4 +0,0 @@
---@diagnostic disable: missing-return, lowercase-global
---@meta
function C_BlackMarket.GetItemInfoByIndex() end

View File

@@ -1,4 +0,0 @@
---@diagnostic disable: missing-return, lowercase-global
---@meta
function C_BlackMarket.GetNumItems() end

View File

@@ -1,4 +0,0 @@
---@diagnostic disable: missing-return, lowercase-global
---@meta
function C_BlackMarket.ItemPlaceBid() end

View File

@@ -1,5 +0,0 @@
---@diagnostic disable: missing-return, lowercase-global
---@meta
---Requests updated black market auction information from the server.. The black market UI must be open according to the server in order for this function to have any effect.
function C_BlackMarket.RequestItems() end

View File

@@ -1,4 +0,0 @@
---@diagnostic disable: missing-return, lowercase-global
---@meta
function C_Garrison.AddFollowerToMission() end

View File

@@ -1,4 +0,0 @@
---@diagnostic disable: missing-return, lowercase-global
---@meta
function C_Garrison.AssignFollowerToBuilding() end

View File

@@ -1,4 +0,0 @@
---@diagnostic disable: missing-return, lowercase-global
---@meta
function C_Garrison.CanGenerateRecruits() end

View File

@@ -1,4 +0,0 @@
---@diagnostic disable: missing-return, lowercase-global
---@meta
function C_Garrison.CanOpenMissionChest() end

View File

@@ -1,4 +0,0 @@
---@diagnostic disable: missing-return, lowercase-global
---@meta
function C_Garrison.CanSetRecruitmentPreference() end

View File

@@ -1,4 +0,0 @@
---@diagnostic disable: missing-return, lowercase-global
---@meta
function C_Garrison.CanUpgradeGarrison() end

View File

@@ -1,4 +0,0 @@
---@diagnostic disable: missing-return, lowercase-global
---@meta
function C_Garrison.CancelConstruction() end

View File

@@ -1,4 +0,0 @@
---@diagnostic disable: missing-return, lowercase-global
---@meta
function C_Garrison.CastSpellOnFollower() end

View File

@@ -1,4 +0,0 @@
---@diagnostic disable: missing-return, lowercase-global
---@meta
function C_Garrison.CloseArchitect() end

View File

@@ -1,4 +0,0 @@
---@diagnostic disable: missing-return, lowercase-global
---@meta
function C_Garrison.CloseGarrisonTradeskillNPC() end

View File

@@ -1,4 +0,0 @@
---@diagnostic disable: missing-return, lowercase-global
---@meta
function C_Garrison.CloseMissionNPC() end

View File

@@ -1,4 +0,0 @@
---@diagnostic disable: missing-return, lowercase-global
---@meta
function C_Garrison.CloseRecruitmentNPC() end

View File

@@ -1,4 +0,0 @@
---@diagnostic disable: missing-return, lowercase-global
---@meta
function C_Garrison.CloseTradeskillCrafter() end

View File

@@ -1,4 +0,0 @@
---@diagnostic disable: missing-return, lowercase-global
---@meta
function C_Garrison.GenerateRecruits() end

View File

@@ -1,5 +0,0 @@
---@diagnostic disable: missing-return, lowercase-global
---@meta
---Returns an array of available missions.. Returns an array of available missions each with the following structure: description: A short description of the mission cost: The cost in resources of the mission duration: The display duration of the mission (45 min) durationSeconds: The duration of the mission in seconds level: The mission level type: The display mission type (Combat) locPrefix: The mission location with prefix (GarrMissionLocation-FrostfireRidge) rewards: A table of the rewards indexed by the reward ID title: Type of reward (currency or xp) quantity: Amount for the reward (item or currency) icon: Display icon for reward (currency or xp) currencyID: ID of currency type (currency only) itemID: ID of item (items only) followerXP: amount of xp (follower xp only) tooltip: string for display in tooltip (xp only) name: display string for reward (xp only) numRewards: Number of rewards for the mission numFollowers: Number of followers the mission may have state: The state of the mission iLevel: The required iLevel for the mission name: The display name for the mission followers: Table of followers assigned to the mission location: The display location for the mission(Frostfire Ridge) isRare: Whether the mission is of rare quality typeAtlas: Prefixed mission type (GarrMission_MissionIcon-Combat) missionID: The ID of the mission that is used for other API calls.
function C_Garrison.GetAvailableMissions() end

View File

@@ -1,4 +0,0 @@
---@diagnostic disable: missing-return, lowercase-global
---@meta
function C_Garrison.GetAvailableRecruits() end

View File

@@ -1,4 +0,0 @@
---@diagnostic disable: missing-return, lowercase-global
---@meta
function C_Garrison.GetBasicMissionInfo() end

View File

@@ -1,4 +0,0 @@
---@diagnostic disable: missing-return, lowercase-global
---@meta
function C_Garrison.GetBuffedFollowersForMission() end

View File

@@ -1,23 +0,0 @@
---@diagnostic disable: missing-return, lowercase-global
---@meta
---@param buildingID number
---@return number buildingID
---@return string buildingName
---@return string texturePrefix
---@return string icon
---@return string description
---@return number rank
---@return number currencyID
---@return number currencyAmount
---@return number goldAmount
---@return string timeRequirement
---@return boolean needsPlan
---@return boolean isPreBuilt
---@return table possSpecs
---@return table upgrades
---@return boolean canUpgrade
---@return boolean isMaxLevel
---@return boolean hasFollowerSlot
---Returns information on a garrison building. For additional information on the character's buildings, check out C_Garrison.GetOwnedBuildingInfo()
function C_Garrison.GetBuildingInfo(buildingID) end

View File

@@ -1,4 +0,0 @@
---@diagnostic disable: missing-return, lowercase-global
---@meta
function C_Garrison.GetBuildingLockInfo() end

View File

@@ -1,4 +0,0 @@
---@diagnostic disable: missing-return, lowercase-global
---@meta
function C_Garrison.GetBuildingSizes() end

View File

@@ -1,4 +0,0 @@
---@diagnostic disable: missing-return, lowercase-global
---@meta
function C_Garrison.GetBuildingSpecInfo() end

View File

@@ -1,4 +0,0 @@
---@diagnostic disable: missing-return, lowercase-global
---@meta
function C_Garrison.GetBuildingTimeRemaining() end

View File

@@ -1,4 +0,0 @@
---@diagnostic disable: missing-return, lowercase-global
---@meta
function C_Garrison.GetBuildingTooltip() end

View File

@@ -1,4 +0,0 @@
---@diagnostic disable: missing-return, lowercase-global
---@meta
function C_Garrison.GetBuildingUpgradeInfo() end

View File

@@ -1,4 +0,0 @@
---@diagnostic disable: missing-return, lowercase-global
---@meta
function C_Garrison.GetBuildings() end

View File

@@ -1,4 +0,0 @@
---@diagnostic disable: missing-return, lowercase-global
---@meta
function C_Garrison.GetBuildingsForPlot() end

View File

@@ -1,4 +0,0 @@
---@diagnostic disable: missing-return, lowercase-global
---@meta
function C_Garrison.GetBuildingsForSize() end

View File

@@ -1,4 +0,0 @@
---@diagnostic disable: missing-return, lowercase-global
---@meta
function C_Garrison.GetCompleteMissions() end

View File

@@ -1,4 +0,0 @@
---@diagnostic disable: missing-return, lowercase-global
---@meta
function C_Garrison.GetFollowerAbilities() end

View File

@@ -1,4 +0,0 @@
---@diagnostic disable: missing-return, lowercase-global
---@meta
function C_Garrison.GetFollowerAbilityAtIndex() end

View File

@@ -1,4 +0,0 @@
---@diagnostic disable: missing-return, lowercase-global
---@meta
function C_Garrison.GetFollowerAbilityAtIndexByID() end

View File

@@ -1,4 +0,0 @@
---@diagnostic disable: missing-return, lowercase-global
---@meta
function C_Garrison.GetFollowerAbilityCounterMechanicInfo() end

View File

@@ -1,4 +0,0 @@
---@diagnostic disable: missing-return, lowercase-global
---@meta
function C_Garrison.GetFollowerAbilityDescription() end

View File

@@ -1,4 +0,0 @@
---@diagnostic disable: missing-return, lowercase-global
---@meta
function C_Garrison.GetFollowerAbilityIcon() end

View File

@@ -1,4 +0,0 @@
---@diagnostic disable: missing-return, lowercase-global
---@meta
function C_Garrison.GetFollowerAbilityIsTrait() end

View File

@@ -1,4 +0,0 @@
---@diagnostic disable: missing-return, lowercase-global
---@meta
function C_Garrison.GetFollowerAbilityLink() end

View File

@@ -1,4 +0,0 @@
---@diagnostic disable: missing-return, lowercase-global
---@meta
function C_Garrison.GetFollowerAbilityName() end

View File

@@ -1,4 +0,0 @@
---@diagnostic disable: missing-return, lowercase-global
---@meta
function C_Garrison.GetFollowerActivationCost() end

View File

@@ -1,4 +0,0 @@
---@diagnostic disable: missing-return, lowercase-global
---@meta
function C_Garrison.GetFollowerBiasForMission() end

View File

@@ -1,4 +0,0 @@
---@diagnostic disable: missing-return, lowercase-global
---@meta
function C_Garrison.GetFollowerClassSpec() end

View File

@@ -1,4 +0,0 @@
---@diagnostic disable: missing-return, lowercase-global
---@meta
function C_Garrison.GetFollowerClassSpecAtlas() end

View File

@@ -1,4 +0,0 @@
---@diagnostic disable: missing-return, lowercase-global
---@meta
function C_Garrison.GetFollowerClassSpecByID() end

View File

@@ -1,4 +0,0 @@
---@diagnostic disable: missing-return, lowercase-global
---@meta
function C_Garrison.GetFollowerClassSpecName() end

View File

@@ -1,4 +0,0 @@
---@diagnostic disable: missing-return, lowercase-global
---@meta
function C_Garrison.GetFollowerDisplayID() end

View File

@@ -1,4 +0,0 @@
---@diagnostic disable: missing-return, lowercase-global
---@meta
function C_Garrison.GetFollowerDisplayIDByID() end

View File

@@ -1,4 +0,0 @@
---@diagnostic disable: missing-return, lowercase-global
---@meta
function C_Garrison.GetFollowerInfo() end

View File

@@ -1,14 +0,0 @@
---@diagnostic disable: missing-return, lowercase-global
---@meta
---@param plotID number
---@return string name
---@return number level
---@return number quality
---@return number displayID
---@return number followerID
---@return string garrFollowerID
---@return number status
---@return number portraitIconID
---Returns info about a follower assigned to a building. This will return information about the follower (if any) assigned to the building on the specified plot. Note that this function takes a plot ID, not a building ID. To query for the follower at, say, the Enchanter's Study, one would have to first find the plot where the study is and then give that plot ID to this function.
function C_Garrison.GetFollowerInfoForBuilding(plotID) end

View File

@@ -1,4 +0,0 @@
---@diagnostic disable: missing-return, lowercase-global
---@meta
function C_Garrison.GetFollowerItemLevelAverage() end

View File

@@ -1,4 +0,0 @@
---@diagnostic disable: missing-return, lowercase-global
---@meta
function C_Garrison.GetFollowerItems() end

View File

@@ -1,4 +0,0 @@
---@diagnostic disable: missing-return, lowercase-global
---@meta
function C_Garrison.GetFollowerLevel() end

View File

@@ -1,4 +0,0 @@
---@diagnostic disable: missing-return, lowercase-global
---@meta
function C_Garrison.GetFollowerLevelXP() end

View File

@@ -1,4 +0,0 @@
---@diagnostic disable: missing-return, lowercase-global
---@meta
function C_Garrison.GetFollowerLink() end

View File

@@ -1,4 +0,0 @@
---@diagnostic disable: missing-return, lowercase-global
---@meta
function C_Garrison.GetFollowerLinkByID() end

View File

@@ -1,4 +0,0 @@
---@diagnostic disable: missing-return, lowercase-global
---@meta
function C_Garrison.GetFollowerMissionCompleteInfo() end

View File

@@ -1,4 +0,0 @@
---@diagnostic disable: missing-return, lowercase-global
---@meta
function C_Garrison.GetFollowerModelItems() end

View File

@@ -1,4 +0,0 @@
---@diagnostic disable: missing-return, lowercase-global
---@meta
function C_Garrison.GetFollowerName() end

View File

@@ -1,4 +0,0 @@
---@diagnostic disable: missing-return, lowercase-global
---@meta
function C_Garrison.GetFollowerNameByID() end

View File

@@ -1,4 +0,0 @@
---@diagnostic disable: missing-return, lowercase-global
---@meta
function C_Garrison.GetFollowerPortraitIconIDByID() end

View File

@@ -1,4 +0,0 @@
---@diagnostic disable: missing-return, lowercase-global
---@meta
function C_Garrison.GetFollowerQuality() end

View File

@@ -1,4 +0,0 @@
---@diagnostic disable: missing-return, lowercase-global
---@meta
function C_Garrison.GetFollowerQualityTable() end

View File

@@ -1,4 +0,0 @@
---@diagnostic disable: missing-return, lowercase-global
---@meta
function C_Garrison.GetFollowerSoftCap() end

Some files were not shown because too many files have changed in this diff Show More