Skip to content

Commit

Permalink
11.0.2 (56421)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ketho committed Sep 1, 2024
1 parent 13959be commit b894fa1
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Annotations/Data/Wiki.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5488,8 +5488,10 @@ function GetInventorySlotInfo(invSlotName) end
---@return number itemLevel
function GetInviteConfirmationInfo(guid) end

---#nopage
---[Documentation](https://warcraft.wiki.gg/wiki/API_GetItemLevelColor)
---@return number r
---@return number g
---@return number b
function GetItemLevelColor() end

---#nopage
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
---@meta _
C_Traits = {}

---Returns whether the player can make changes to the specified talent config.
---
---[Documentation](https://warcraft.wiki.gg/wiki/API_C_Traits.CanEditConfig)
---@param configID number
---@return boolean canEdit
---@return string errorMessage
function C_Traits.CanEditConfig(configID) end

---[Documentation](https://warcraft.wiki.gg/wiki/API_C_Traits.CanPurchaseRank)
---@param configID number
---@param nodeID number
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,22 @@ local SharedTraits =

Functions =
{
{
Name = "CanEditConfig",
Type = "Function",
Documentation = { "Returns whether the player can make changes to the specified talent config." },

Arguments =
{
{ Name = "configID", Type = "number", Nilable = false },
},

Returns =
{
{ Name = "canEdit", Type = "bool", Nilable = false },
{ Name = "errorMessage", Type = "cstring", Nilable = false, Documentation = { "If canEdit is false, this will be filled out with text explaining why the player can not make changes." } },
},
},
{
Name = "CanPurchaseRank",
Type = "Function",
Expand Down

0 comments on commit b894fa1

Please sign in to comment.