Files
wow-wotlk-declarations/declarations/inventory.d.ts

28 lines
944 B
TypeScript

/** @noSelfInFile */
/**
* Get cooldown information for an inventory item.
*
* @see https://wow.gamepedia.com/API_GetInventoryItemCooldown
* @returns start, duration, isEnabled
* @tupleReturn
*/
declare function GetInventoryItemCooldown(unit: WoWAPI.UnitId, slotId: number): LuaMultiReturn<[number, number, WoWAPI.Flag]>;
/**
* Return the texture for an inventory item.
*
* @see https://wow.gamepedia.com/API_GetInventoryItemTexture
* @returns The texture path for the item in the specified slot, or nil if the slot is empty.
*/
declare function GetInventoryItemTexture(unit: WoWAPI.UnitId, slotId: number): WoWAPI.TexturePath;
/**
* Return information about a specific inventory slot
*
* @see https://wow.gamepedia.com/API_GetInventorySlotInfo
* @returns slotId, textureName
* @tupleReturn
*/
declare function GetInventorySlotInfo(slotName: string): LuaMultiReturn<[number, WoWAPI.TexturePath]>;