Skip to content

Commit

Permalink
11.0.2 (56071)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ketho committed Aug 15, 2024
1 parent edd659d commit 59817d8
Show file tree
Hide file tree
Showing 19 changed files with 126 additions and 37 deletions.
5 changes: 4 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,9 @@
"WEEKDAY_THURSDAY",
"WEEKDAY_TUESDAY",
"WEEKDAY_WEDNESDAY",
"WORLD_PVP"
"WORLD_PVP",
"MAX_SUMMONABLE_HUNTER_PETS",
"MAX_SUMMONABLE_PETS",
"NUM_PET_SLOTS_HUNTER"
],
}
1 change: 1 addition & 0 deletions Annotations/Data/Event.lua
Original file line number Diff line number Diff line change
Expand Up @@ -809,6 +809,7 @@
---|"OPEN_TABARD_FRAME"
---|"OWNED_AUCTIONS_UPDATED"
---|"OWNED_AUCTION_BIDDER_INFO_RECEIVED" # `auctionID, bidderName`
---|"PARTY_ELIGIBILITY_FOR_DELVE_TIERS_CHANGED" # `playerName, maxEligibleLevel`
---|"PARTY_INVITE_CANCEL"
---|"PARTY_INVITE_REQUEST" # `name, isTank, isHealer, isDamage, isNativeRealm, allowMultipleRoles, inviterGUID, questSessionActive`
---|"PARTY_LEADER_CHANGED"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,7 @@ function C_CurrencyInfo.SetCurrencyUnused(index, unused) end
---@class CharacterCurrencyData
---@field characterGUID WOWGUID
---@field characterName string
---@field fullCharacterName string
---@field currencyID number
---@field quantity number

Expand Down Expand Up @@ -239,8 +240,10 @@ function C_CurrencyInfo.SetCurrencyUnused(index, unused) end
---@class CurrencyTransferTransaction
---@field sourceCharacterGUID WOWGUID
---@field sourceCharacterName string? Default =
---@field fullSourceCharacterName string? Default =
---@field destinationCharacterGUID WOWGUID
---@field destinationCharacterName string? Default =
---@field fullDestinationCharacterName string? Default =
---@field currencyType number
---@field quantityTransferred number
---@field totalQuantityConsumed number
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,12 @@ function C_DelvesUI.HasActiveDelve(mapID) end
---@return boolean result
function C_DelvesUI.IsEligibleForActiveDelveRewards(unit) end

---Queries private party members to see what level they have unlocked for the Delve. Ineligible members are added to the tooltip of dropdown entries.
---
---[Documentation](https://warcraft.wiki.gg/wiki/API_C_DelvesUI.RequestPartyEligibilityForDelveTiers)
---@param gossipOption number
function C_DelvesUI.RequestPartyEligibilityForDelveTiers(gossipOption) end

---[Documentation](https://warcraft.wiki.gg/wiki/API_C_DelvesUI.SaveSeenCuriosBySlotType)
---@param slotType Enum.CompanionConfigSlotTypes
---@param ownedCurioNodeIDs number[]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -409,6 +409,8 @@ function C_Item.IsArtifactPowerItem(itemInfo) end
---@return boolean isBound
function C_Item.IsBound(itemLocation) end

---You can use IsItemBindToAccountUntilEquip instead if the item is not in your inventory
---
---[Documentation](https://warcraft.wiki.gg/wiki/API_C_Item.IsBoundToAccountUntilEquip)
---@param itemLocation ItemLocation
---@return boolean isBoundToAccountUntilEquip
Expand Down Expand Up @@ -471,6 +473,13 @@ function C_Item.IsHarmfulItem(itemInfo) end
---@return boolean result
function C_Item.IsHelpfulItem(itemInfo) end

---You can use IsBoundToAccountUntilEquip instead if the item exists in your inventory
---
---[Documentation](https://warcraft.wiki.gg/wiki/API_C_Item.IsItemBindToAccountUntilEquip)
---@param itemInfo ItemInfo
---@return boolean isItemBindToAccountUntilEquip
function C_Item.IsItemBindToAccountUntilEquip(itemInfo) end

---[Documentation](https://warcraft.wiki.gg/wiki/API_C_Item.IsItemConduit)
---@param itemLoc ItemLocation
---@return boolean isConduit
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ function C_QuestLog.CanAbandonQuest(questID) end

---[Documentation](https://warcraft.wiki.gg/wiki/API_C_QuestLog.DoesQuestAwardReputationWithFaction)
---@param questID number
---@param factionID number
---@param targetFactionID number
---@return boolean awardsReputation
function C_QuestLog.DoesQuestAwardReputationWithFaction(questID, factionID) end
function C_QuestLog.DoesQuestAwardReputationWithFaction(questID, targetFactionID) end

---[Documentation](https://warcraft.wiki.gg/wiki/API_C_QuestLog.GetAbandonQuest)
---@return number questID
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,7 @@ function C_Traits.TalentTestUnlearnSpells() end
---@field type Enum.TraitNodeEntryType
---@field maxRanks number
---@field isAvailable boolean
---@field isDisplayError boolean
---@field conditionIDs number[]

---@class TraitEntryRankInfo
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ function C_VoiceChat.ActivateChannelTranscription(channelID) end
---@param listenToLocalUser boolean
function C_VoiceChat.BeginLocalCapture(listenToLocalUser) end

---[Documentation](https://warcraft.wiki.gg/wiki/API_C_VoiceChat.CanAccessSettings)
---@return boolean canAccess
function C_VoiceChat.CanAccessSettings() end

---[Documentation](https://warcraft.wiki.gg/wiki/API_C_VoiceChat.CanPlayerUseVoiceChat)
---@return boolean canUseVoiceChat
function C_VoiceChat.CanPlayerUseVoiceChat() end
Expand Down Expand Up @@ -167,10 +171,6 @@ function C_VoiceChat.IsDeafened() end
---@return boolean isEnabled
function C_VoiceChat.IsEnabled() end

---[Documentation](https://warcraft.wiki.gg/wiki/API_C_VoiceChat.IsInitialized)
---@return boolean isInitialized
function C_VoiceChat.IsInitialized() end

---[Documentation](https://warcraft.wiki.gg/wiki/API_C_VoiceChat.IsLoggedIn)
---@return boolean isLoggedIn
function C_VoiceChat.IsLoggedIn() end
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Change Log

## [0.17.0] - 2024-08-15
- Updated for release patch 11.0.2 (56071)

## [0.16.9] - 2024-08-15
- Fixed and cleaned up globals being marked as defined for most API functions

Expand Down Expand Up @@ -142,6 +145,7 @@ To avoid loading for Lua projects not related to World of Warcraft, all settings
- PR [#123](https://github.com/Ketho/vscode-wow-api/pull/123) Make childGroups optional in AceConfig.OptionsTable
- PR [#120](https://github.com/Ketho/vscode-wow-api/pull/120) Add definition for tostringall()

[0.17.0]: https://github.com/Ketho/vscode-wow-api/releases/tag/0.17.0
[0.16.9]: https://github.com/Ketho/vscode-wow-api/releases/tag/0.16.9
[0.16.8]: https://github.com/Ketho/vscode-wow-api/releases/tag/0.16.8
[0.16.7]: https://github.com/Ketho/vscode-wow-api/releases/tag/0.16.7
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -534,6 +534,7 @@ local CurrencyInfo =
{
{ Name = "characterGUID", Type = "WOWGUID", Nilable = false },
{ Name = "characterName", Type = "string", Nilable = false },
{ Name = "fullCharacterName", Type = "string", Nilable = false },
{ Name = "currencyID", Type = "number", Nilable = false },
{ Name = "quantity", Type = "number", Nilable = false },
},
Expand Down Expand Up @@ -590,8 +591,10 @@ local CurrencyInfo =
{
{ Name = "sourceCharacterGUID", Type = "WOWGUID", Nilable = false },
{ Name = "sourceCharacterName", Type = "string", Nilable = false, Default = "" },
{ Name = "fullSourceCharacterName", Type = "string", Nilable = false, Default = "" },
{ Name = "destinationCharacterGUID", Type = "WOWGUID", Nilable = false },
{ Name = "destinationCharacterName", Type = "string", Nilable = false, Default = "" },
{ Name = "fullDestinationCharacterName", Type = "string", Nilable = false, Default = "" },
{ Name = "currencyType", Type = "number", Nilable = false },
{ Name = "quantityTransferred", Type = "number", Nilable = false },
{ Name = "totalQuantityConsumed", Type = "number", Nilable = false },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,16 @@ local DelvesUI =
{ Name = "result", Type = "bool", Nilable = false },
},
},
{
Name = "RequestPartyEligibilityForDelveTiers",
Type = "Function",
Documentation = { "Queries private party members to see what level they have unlocked for the Delve. Ineligible members are added to the tooltip of dropdown entries." },

Arguments =
{
{ Name = "gossipOption", Type = "number", Nilable = false },
},
},
{
Name = "SaveSeenCuriosBySlotType",
Type = "Function",
Expand All @@ -226,6 +236,17 @@ local DelvesUI =
LiteralName = "DELVES_ACCOUNT_DATA_ELEMENT_CHANGED",
Documentation = { "Signaled when player account data element(s) have changed. This drives curio ranks, and the UI should update when this is sent." },
},
{
Name = "PartyEligibilityForDelveTiersChanged",
Type = "Event",
LiteralName = "PARTY_ELIGIBILITY_FOR_DELVE_TIERS_CHANGED",
Documentation = { "Signaled when responses come in from RequestPartyEligibilityForDelveTiers." },
Payload =
{
{ Name = "playerName", Type = "string", Nilable = false },
{ Name = "maxEligibleLevel", Type = "number", Nilable = false },
},
},
{
Name = "ShowDelvesCompanionConfigurationUI",
Type = "Event",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1018,6 +1018,7 @@ local Item =
{
Name = "IsBoundToAccountUntilEquip",
Type = "Function",
Documentation = { "You can use IsItemBindToAccountUntilEquip instead if the item is not in your inventory" },

Arguments =
{
Expand Down Expand Up @@ -1184,6 +1185,21 @@ local Item =
{ Name = "result", Type = "bool", Nilable = false },
},
},
{
Name = "IsItemBindToAccountUntilEquip",
Type = "Function",
Documentation = { "You can use IsBoundToAccountUntilEquip instead if the item exists in your inventory" },

Arguments =
{
{ Name = "itemInfo", Type = "ItemInfo", Nilable = false },
},

Returns =
{
{ Name = "isItemBindToAccountUntilEquip", Type = "bool", Nilable = false },
},
},
{
Name = "IsItemConduit",
Type = "Function",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ local MapConstants =
{
Name = "UIMapFlag",
Type = "Enumeration",
NumValues = 21,
NumValues = 22,
MinValue = 1,
MaxValue = 1048576,
MaxValue = 2097152,
Fields =
{
{ Name = "NoHighlight", Type = "UIMapFlag", EnumValue = 1 },
Expand All @@ -46,6 +46,7 @@ local MapConstants =
{ Name = "ForceAllowMapLinks", Type = "UIMapFlag", EnumValue = 262144 },
{ Name = "DoNotShowOnNavbar", Type = "UIMapFlag", EnumValue = 524288 },
{ Name = "IsCityMap", Type = "UIMapFlag", EnumValue = 1048576 },
{ Name = "IgnoreInTranslationsToParent", Type = "UIMapFlag", EnumValue = 2097152 },
},
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,41 +7,53 @@ local PetConstants =
Type = "Constants",
Values =
{
{ Name = "MAX_STABLE_SLOTS", Type = "number", Value = 200 },
{ Name = "MAX_SUMMONABLE_PETS", Type = "number", Value = 25 },
{ Name = "MAX_SUMMONABLE_HUNTER_PETS", Type = "number", Value = 5 },
{ Name = "NUM_PET_SLOTS_THAT_NEED_LEARNED_SPELL", Type = "number", Value = 5 },
{ Name = "NUM_PET_SLOTS", Type = "number", Value = Constants.PetConsts.MAX_STABLE_SLOTS + Constants.PetConsts.NUM_PET_SLOTS_THAT_NEED_LEARNED_SPELL },
{ Name = "EXTRA_PET_STABLE_SLOT", Type = "number", Value = 5 },
{ Name = "STABLED_PETS_FIRST_SLOT_INDEX", Type = "number", Value = Constants.PetConsts.EXTRA_PET_STABLE_SLOT + 1 },
{ Name = "MAX_SUMMONABLE_PETS", Type = "number", Value = 25 },
{ Name = "MAX_SUMMONABLE_HUNTER_PETS", Type = "number", Value = NUM_PET_SLOTS_THAT_NEED_LEARNED_SPELL },
{ Name = "MAX_STABLE_SLOTS", Type = "number", Value = 200 },
{ Name = "EXTRA_PET_STABLE_SLOT", Type = "number", Value = MAX_SUMMONABLE_HUNTER_PETS },
{ Name = "STABLED_PETS_FIRST_SLOT_INDEX", Type = "number", Value = Constants.PetConsts.EXTRA_PET_STABLE_SLOT },
{ Name = "NUM_PET_SLOTS_HUNTER", Type = "number", Value = Constants.PetConsts.MAX_STABLE_SLOTS + Constants.PetConsts.NUM_PET_SLOTS_THAT_NEED_LEARNED_SPELL },
{ Name = "NUM_PET_SLOTS_DEATHKNIGHT", Type = "number", Value = 1 },
{ Name = "NUM_PET_SLOTS_MAGE", Type = "number", Value = 1 },
{ Name = "NUM_PET_SLOTS_WARLOCK", Type = "number", Value = MAX_SUMMONABLE_PETS },
{ Name = "MAX_NUM_PET_SLOTS", Type = "number", Value = NUM_PET_SLOTS_HUNTER },
},
},
{
Name = "PetConsts_PreWrath",
Type = "Constants",
Values =
{
{ Name = "MAX_STABLE_SLOTS", Type = "number", Value = 2 },
{ Name = "MAX_SUMMONABLE_PETS", Type = "number", Value = 25 },
{ Name = "MAX_SUMMONABLE_HUNTER_PETS", Type = "number", Value = 1 },
{ Name = "NUM_PET_SLOTS_THAT_NEED_LEARNED_SPELL", Type = "number", Value = 1 },
{ Name = "NUM_PET_SLOTS", Type = "number", Value = MAX_STABLE_SLOTS + NUM_PET_SLOTS_THAT_NEED_LEARNED_SPELL },
{ Name = "MAX_SUMMONABLE_PETS", Type = "number", Value = 25 },
{ Name = "MAX_SUMMONABLE_HUNTER_PETS", Type = "number", Value = NUM_PET_SLOTS_THAT_NEED_LEARNED_SPELL },
{ Name = "MAX_STABLE_SLOTS", Type = "number", Value = 2 },
{ Name = "EXTRA_PET_STABLE_SLOT", Type = "number", Value = 0 },
{ Name = "STABLED_PETS_FIRST_SLOT_INDEX", Type = "number", Value = EXTRA_PET_STABLE_SLOT + 1 },
{ Name = "STABLED_PETS_FIRST_SLOT_INDEX", Type = "number", Value = MAX_SUMMONABLE_HUNTER_PETS },
{ Name = "NUM_PET_SLOTS_HUNTER", Type = "number", Value = MAX_STABLE_SLOTS + NUM_PET_SLOTS_THAT_NEED_LEARNED_SPELL },
{ Name = "NUM_PET_SLOTS_DEATHKNIGHT", Type = "number", Value = 0 },
{ Name = "NUM_PET_SLOTS_MAGE", Type = "number", Value = 1 },
{ Name = "NUM_PET_SLOTS_WARLOCK", Type = "number", Value = MAX_SUMMONABLE_PETS },
{ Name = "MAX_NUM_PET_SLOTS", Type = "number", Value = MAX_SUMMONABLE_PETS },
},
},
{
Name = "PetConsts_Wrath",
Type = "Constants",
Values =
{
{ Name = "MAX_STABLE_SLOTS", Type = "number", Value = 4 },
{ Name = "MAX_SUMMONABLE_PETS", Type = "number", Value = 25 },
{ Name = "MAX_SUMMONABLE_HUNTER_PETS", Type = "number", Value = 1 },
{ Name = "NUM_PET_SLOTS_THAT_NEED_LEARNED_SPELL", Type = "number", Value = 1 },
{ Name = "NUM_PET_SLOTS", Type = "number", Value = MAX_STABLE_SLOTS + NUM_PET_SLOTS_THAT_NEED_LEARNED_SPELL },
{ Name = "MAX_SUMMONABLE_PETS", Type = "number", Value = 25 },
{ Name = "MAX_SUMMONABLE_HUNTER_PETS", Type = "number", Value = NUM_PET_SLOTS_THAT_NEED_LEARNED_SPELL },
{ Name = "MAX_STABLE_SLOTS", Type = "number", Value = 4 },
{ Name = "EXTRA_PET_STABLE_SLOT", Type = "number", Value = 0 },
{ Name = "STABLED_PETS_FIRST_SLOT_INDEX", Type = "number", Value = EXTRA_PET_STABLE_SLOT + 1 },
{ Name = "STABLED_PETS_FIRST_SLOT_INDEX", Type = "number", Value = MAX_SUMMONABLE_HUNTER_PETS },
{ Name = "NUM_PET_SLOTS_HUNTER", Type = "number", Value = MAX_STABLE_SLOTS + NUM_PET_SLOTS_THAT_NEED_LEARNED_SPELL },
{ Name = "NUM_PET_SLOTS_DEATHKNIGHT", Type = "number", Value = 1 },
{ Name = "NUM_PET_SLOTS_MAGE", Type = "number", Value = 1 },
{ Name = "NUM_PET_SLOTS_WARLOCK", Type = "number", Value = MAX_SUMMONABLE_PETS },
{ Name = "MAX_NUM_PET_SLOTS", Type = "number", Value = MAX_SUMMONABLE_PETS },
},
},
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ local QuestLog =
Arguments =
{
{ Name = "questID", Type = "number", Nilable = false },
{ Name = "factionID", Type = "number", Nilable = false },
{ Name = "targetFactionID", Type = "number", Nilable = false },
},

Returns =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -779,6 +779,7 @@ local SharedTraits =
{ Name = "type", Type = "TraitNodeEntryType", Nilable = false },
{ Name = "maxRanks", Type = "number", Nilable = false },
{ Name = "isAvailable", Type = "bool", Nilable = false },
{ Name = "isDisplayError", Type = "bool", Nilable = false, Documentation = { "True if this entry fails the TRAIT_CONDITION_TYPE_DISPLAY_ERROR condition check. Used to communicate a problem with the node to the player (e.g. A prerequisite node has not been purchased.) but will not prevent the player from spending points on the node." } },
{ Name = "conditionIDs", Type = "table", InnerType = "number", Nilable = false },
},
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ local TooltipInfoShared =
{
Name = "TooltipDataItemBinding",
Type = "Enumeration",
NumValues = 9,
NumValues = 10,
MinValue = 0,
MaxValue = 8,
MaxValue = 9,
Fields =
{
{ Name = "Quest", Type = "TooltipDataItemBinding", EnumValue = 0 },
Expand All @@ -19,6 +19,7 @@ local TooltipInfoShared =
{ Name = "BindOnPickup", Type = "TooltipDataItemBinding", EnumValue = 6 },
{ Name = "BindOnEquip", Type = "TooltipDataItemBinding", EnumValue = 7 },
{ Name = "BindOnUse", Type = "TooltipDataItemBinding", EnumValue = 8 },
{ Name = "AccountUntilEquipped", Type = "TooltipDataItemBinding", EnumValue = 9 },
},
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,15 @@ local VoiceChat =
{ Name = "listenToLocalUser", Type = "bool", Nilable = false },
},
},
{
Name = "CanAccessSettings",
Type = "Function",

Returns =
{
{ Name = "canAccess", Type = "bool", Nilable = false },
},
},
{
Name = "CanPlayerUseVoiceChat",
Type = "Function",
Expand Down Expand Up @@ -401,15 +410,6 @@ local VoiceChat =
{ Name = "isEnabled", Type = "bool", Nilable = false },
},
},
{
Name = "IsInitialized",
Type = "Function",

Returns =
{
{ Name = "isInitialized", Type = "bool", Nilable = false },
},
},
{
Name = "IsLoggedIn",
Type = "Function",
Expand Down
7 changes: 7 additions & 0 deletions src/data/event.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4060,6 +4060,13 @@ export const data: EventInterface = {
{Name: "bidderName", Type: "string"},
],
},
PARTY_ELIGIBILITY_FOR_DELVE_TIERS_CHANGED: {
Documentation: "Signaled when responses come in from RequestPartyEligibilityForDelveTiers.",
Payload: [
{Name: "playerName", Type: "string"},
{Name: "maxEligibleLevel", Type: "number"},
],
},
PARTY_INVITE_CANCEL: {},
PARTY_INVITE_REQUEST: {
Payload: [
Expand Down

0 comments on commit 59817d8

Please sign in to comment.