diff --git a/C_Item.lua b/C_Item.lua new file mode 100644 index 0000000..02bf563 --- /dev/null +++ b/C_Item.lua @@ -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, +}