@wartoshika/wow-declarations
Advanced tools
Comparing version 0.0.4 to 0.0.5
@@ -146,5 +146,5 @@ /// <reference path="global.d.ts" /> | ||
* @param index The index of the item in the list to retrieve info from (normally 1-50, inclusive) | ||
* @see https://wow.gamepedia.com/API_GetAuctionItemLink | ||
* @see https://wow.gamepedia.com/API_GetAuctionWowItemLink | ||
*/ | ||
declare function GetAuctionItemLink(type: AUCTION_TYPE, index: number): AuctionLink; | ||
declare function GetAuctionWowItemLink(type: AUCTION_TYPE, index: number): AuctionLink; | ||
@@ -151,0 +151,0 @@ /** |
@@ -7,3 +7,3 @@ /** | ||
*/ | ||
declare function BankButtonIDToInvSlotID(buttodId: number, isBag: WowFlag): INVENTORY_SLOT_ID; | ||
declare function BankButtonIDToInvSlotID(buttodId: number, isBag: WowFlag): WOW_INVENTORY_SLOT_ID; | ||
@@ -10,0 +10,0 @@ /** |
@@ -18,3 +18,3 @@ interface C_BlackMarket { | ||
*/ | ||
GetItemInfoByID(marketId: number): [string, WowTexturePath, number, string, number, string, string, number, number, number, boolean, number, number, ItemLink, number]; | ||
GetItemInfoByID(marketId: number): [string, WowTexturePath, number, string, number, string, string, number, number, number, boolean, number, number, WowItemLink, number]; | ||
@@ -27,3 +27,3 @@ /** | ||
*/ | ||
GetHotItem(): [string, WowTexturePath, number, string, number, string, string, number, number, number, boolean, number, number, ItemLink, number]; | ||
GetHotItem(): [string, WowTexturePath, number, string, number, string, string, number, number, number, boolean, number, number, WowItemLink, number]; | ||
@@ -37,3 +37,3 @@ /** | ||
*/ | ||
GetItemInfoByIndex(index: number): [string, WowTexturePath, number, string, number, string, string, number, number, number, boolean, number, number, ItemLink, number]; | ||
GetItemInfoByIndex(index: number): [string, WowTexturePath, number, string, number, string, string, number, number, number, boolean, number, number, WowItemLink, number]; | ||
@@ -40,0 +40,0 @@ /** |
declare type WowAddonMessageType = "PARTY" | "RAID" | "GUILD" | "BATTLEGROUND" | "WHISPER" | "CHANNEL"; | ||
declare type WowChatFlag = "AFK" | "DND" | "GM"; | ||
declare type WowChatJoinLeftType = "YOU_JOINED" | "YOU_LEFT" | "THROTTLED"; | ||
declare type WowChatUserNoticeType = "ANNOUNCEMENTS_OFF" | "ANNOUNCEMENTS_ON" | "BANNED" | | ||
"OWNER_CHANGED" | "INVALID_NAME" | "INVITE" | "MODERATION_OFF" | "MODERATION_ON" | | ||
"MUTED" | "NOT_MEMBER" | "NOT_MODERATED" | "SET_MODERATOR" | "UNSET_MODERATOR"; | ||
@@ -3,0 +8,0 @@ interface C_ChatInfo { |
@@ -6,23 +6,23 @@ /// <reference path="global.d.ts" /> | ||
declare type CONTAINER_ID_BACKPACK = 0; | ||
declare type CONTAINER_ID_BAG_1 = 1; | ||
declare type CONTAINER_ID_BAG_2 = 2; | ||
declare type CONTAINER_ID_BAG_3 = 3; | ||
declare type CONTAINER_ID_BAG_4 = 4; | ||
declare type CONTAINER_ID_BANK_GLOBAL = -1; | ||
declare type CONTAINER_ID_BANK_BAG_1 = 5; | ||
declare type CONTAINER_ID_BANK_BAG_2 = 6; | ||
declare type CONTAINER_ID_BANK_BAG_3 = 7; | ||
declare type CONTAINER_ID_BANK_BAG_4 = 8; | ||
declare type CONTAINER_ID_BANK_BAG_5 = 9; | ||
declare type CONTAINER_ID_BANK_BAG_6 = 10; | ||
declare type CONTAINER_ID_BANK_BAG_7 = 11; | ||
declare type CONTAINER_ID_REAGENTBANK = -3; | ||
declare type CONTAINER_ID_BANK_BAG_WRAPPER = -4; | ||
declare type WOW_CONTAINER_ID_BACKPACK = 0; | ||
declare type WOW_CONTAINER_ID_BAG_1 = 1; | ||
declare type WOW_CONTAINER_ID_BAG_2 = 2; | ||
declare type WOW_CONTAINER_ID_BAG_3 = 3; | ||
declare type WOW_CONTAINER_ID_BAG_4 = 4; | ||
declare type WOW_CONTAINER_ID_BANK_GLOBAL = -1; | ||
declare type WOW_CONTAINER_ID_BANK_BAG_1 = 5; | ||
declare type WOW_CONTAINER_ID_BANK_BAG_2 = 6; | ||
declare type WOW_CONTAINER_ID_BANK_BAG_3 = 7; | ||
declare type WOW_CONTAINER_ID_BANK_BAG_4 = 8; | ||
declare type WOW_CONTAINER_ID_BANK_BAG_5 = 9; | ||
declare type WOW_CONTAINER_ID_BANK_BAG_6 = 10; | ||
declare type WOW_CONTAINER_ID_BANK_BAG_7 = 11; | ||
declare type WOW_CONTAINER_ID_REAGENTBANK = -3; | ||
declare type WOW_CONTAINER_ID_BANK_BAG_WRAPPER = -4; | ||
declare type CONTAINER_ID_BANK = CONTAINER_ID_BANK_GLOBAL | CONTAINER_ID_BANK_BAG_1 | CONTAINER_ID_BANK_BAG_2 | CONTAINER_ID_BANK_BAG_3 | | ||
CONTAINER_ID_BANK_BAG_4 | CONTAINER_ID_BANK_BAG_5 | CONTAINER_ID_BANK_BAG_6 | CONTAINER_ID_BANK_BAG_7 | CONTAINER_ID_REAGENTBANK | | ||
CONTAINER_ID_BANK_BAG_WRAPPER; | ||
declare type CONTAINER_ID_BAG = CONTAINER_ID_BACKPACK | CONTAINER_ID_BAG_1 | CONTAINER_ID_BAG_2 | CONTAINER_ID_BAG_3 | CONTAINER_ID_BAG_4; | ||
declare type CONTAINER_ID = CONTAINER_ID_BAG | CONTAINER_ID_BANK; | ||
declare type WOW_CONTAINER_ID_BANK = WOW_CONTAINER_ID_BANK_GLOBAL | WOW_CONTAINER_ID_BANK_BAG_1 | WOW_CONTAINER_ID_BANK_BAG_2 | WOW_CONTAINER_ID_BANK_BAG_3 | | ||
WOW_CONTAINER_ID_BANK_BAG_4 | WOW_CONTAINER_ID_BANK_BAG_5 | WOW_CONTAINER_ID_BANK_BAG_6 | WOW_CONTAINER_ID_BANK_BAG_7 | WOW_CONTAINER_ID_REAGENTBANK | | ||
WOW_CONTAINER_ID_BANK_BAG_WRAPPER; | ||
declare type WOW_CONTAINER_ID_BAG = WOW_CONTAINER_ID_BACKPACK | WOW_CONTAINER_ID_BAG_1 | WOW_CONTAINER_ID_BAG_2 | WOW_CONTAINER_ID_BAG_3 | WOW_CONTAINER_ID_BAG_4; | ||
declare type WOW_CONTAINER_ID = WOW_CONTAINER_ID_BAG | WOW_CONTAINER_ID_BANK; | ||
@@ -44,12 +44,12 @@ declare type BAG_TYPE_UNSPECIFIED = 0; | ||
declare type INVENTORY_SLOT_CONTAINER_1 = 20; | ||
declare type INVENTORY_SLOT_CONTAINER_2 = 21; | ||
declare type INVENTORY_SLOT_CONTAINER_3 = 22; | ||
declare type INVENTORY_SLOT_CONTAINER_4 = 23; | ||
declare type WOW_INVENTORY_SLOT_WOW_CONTAINER_1 = 20; | ||
declare type WOW_INVENTORY_SLOT_WOW_CONTAINER_2 = 21; | ||
declare type WOW_INVENTORY_SLOT_WOW_CONTAINER_3 = 22; | ||
declare type WOW_INVENTORY_SLOT_WOW_CONTAINER_4 = 23; | ||
declare type INVENTORY_SLOT_ID_CONTAINERS = INVENTORY_SLOT_CONTAINER_1 | INVENTORY_SLOT_CONTAINER_2 | INVENTORY_SLOT_CONTAINER_3 | INVENTORY_SLOT_CONTAINER_4; | ||
declare type INVENTORY_SLOT_ID = INVSLOT_AMMO | INVSLOT_HEAD | INVSLOT_NECK | INVSLOT_SHOULDER | INVSLOT_BODY | INVSLOT_CHEST | | ||
declare type WOW_INVENTORY_SLOT_ID_CONTAINERS = WOW_INVENTORY_SLOT_WOW_CONTAINER_1 | WOW_INVENTORY_SLOT_WOW_CONTAINER_2 | WOW_INVENTORY_SLOT_WOW_CONTAINER_3 | WOW_INVENTORY_SLOT_WOW_CONTAINER_4; | ||
declare type WOW_INVENTORY_SLOT_ID = INVSLOT_AMMO | INVSLOT_HEAD | INVSLOT_NECK | INVSLOT_SHOULDER | INVSLOT_BODY | INVSLOT_CHEST | | ||
INVSLOT_WAIST | INVSLOT_LEGS | INVSLOT_FEET | INVSLOT_WRIST | INVSLOT_HAND | INVSLOT_FINGER1 | INVSLOT_FINGER2 | | ||
INVSLOT_TRINKET1 | INVSLOT_TRINKET2 | INVSLOT_BACK | INVSLOT_MAINHAND | INVSLOT_OFFHAND | INVSLOT_RANGED | INVSLOT_TABARD | | ||
INVENTORY_SLOT_ID_CONTAINERS; | ||
WOW_INVENTORY_SLOT_ID_CONTAINERS; | ||
@@ -67,6 +67,6 @@ /** | ||
* @param bagId number of the bag ( between 1 and NUM_BAG_SLOTS + NUM_BANKBAGSLOTS ) to get the inventoryID for | ||
* @returns the bag's inventory ID used in functions like PutItemInBag(inventoryId) and GetInventoryItemLink("player",inventoryId) | ||
* @returns the bag's inventory ID used in functions like PutItemInBag(inventoryId) and GetInventoryWowItemLink("player",inventoryId) | ||
* @see https://wow.gamepedia.com/API_ContainerIDToInventoryID | ||
*/ | ||
declare function ContainerIDToInventoryID(bagId: CONTAINER_ID): number; | ||
declare function ContainerIDToInventoryID(bagId: WOW_CONTAINER_ID): number; | ||
@@ -80,3 +80,3 @@ /** | ||
*/ | ||
declare function GetBagName(bagId: CONTAINER_ID): string; | ||
declare function GetBagName(bagId: WOW_CONTAINER_ID): string; | ||
@@ -91,3 +91,3 @@ /** | ||
*/ | ||
declare function GetContainerItemCooldown(bagId: CONTAINER_ID, slot: number): [number, number, WowFlag]; | ||
declare function GetContainerItemCooldown(bagId: WOW_CONTAINER_ID, slot: number): [number, number, WowFlag]; | ||
@@ -102,3 +102,3 @@ /** | ||
*/ | ||
declare function GetContainerItemDurability(bagId: CONTAINER_ID, slot: number): [number, number]; | ||
declare function GetContainerItemDurability(bagId: WOW_CONTAINER_ID, slot: number): [number, number]; | ||
@@ -113,3 +113,3 @@ /** | ||
*/ | ||
declare function GetContainerItemID(bagId: CONTAINER_ID, slot: number): number | null; | ||
declare function GetContainerItemID(bagId: WOW_CONTAINER_ID, slot: number): number | null; | ||
@@ -124,3 +124,3 @@ /** | ||
*/ | ||
declare function GetContainerItemInfo(bagId: CONTAINER_ID, slot: number): [WowTexturePath, number, boolean, ITEM_QUALITY, boolean, boolean, ItemLink, boolean, boolean, number]; | ||
declare function GetContainerItemInfo(bagId: WOW_CONTAINER_ID, slot: number): [WowTexturePath, number, boolean, ITEM_QUALITY, boolean, boolean, WowItemLink, boolean, boolean, number]; | ||
@@ -132,6 +132,6 @@ /** | ||
* @param slot Slot index within the specified bag, ascending from 1. Slot 1 is typically the leftmost topmost slot | ||
* @returns a chat link for the object in the specified bag slot; nil if there is no such object. This is typically, but not always an ItemLink. | ||
* @see https://wow.gamepedia.com/API_GetContainerItemLink | ||
* @returns a chat link for the object in the specified bag slot; nil if there is no such object. This is typically, but not always an WowItemLink. | ||
* @see https://wow.gamepedia.com/API_GetContainerWowItemLink | ||
*/ | ||
declare function GetContainerItemLink(bagId: CONTAINER_ID, slot: number): ItemLink; | ||
declare function GetContainerWowItemLink(bagId: WOW_CONTAINER_ID, slot: number): WowItemLink; | ||
@@ -145,3 +145,3 @@ /** | ||
*/ | ||
declare function GetContainerNumSlots(bagId: CONTAINER_ID): number; | ||
declare function GetContainerNumSlots(bagId: WOW_CONTAINER_ID): number; | ||
@@ -156,3 +156,3 @@ /** | ||
*/ | ||
declare function GetContainerItemQuestInfo(bagId: CONTAINER_ID, slot: number): [WowFlag, number | null, WowFlag]; | ||
declare function GetContainerItemQuestInfo(bagId: WOW_CONTAINER_ID, slot: number): [WowFlag, number | null, WowFlag]; | ||
@@ -166,3 +166,3 @@ /** | ||
*/ | ||
declare function GetContainerNumFreeSlots(bagId: CONTAINER_ID): [number, BAG_TYPE]; | ||
declare function GetContainerNumFreeSlots(bagId: WOW_CONTAINER_ID): [number, BAG_TYPE]; | ||
@@ -190,3 +190,3 @@ /** | ||
*/ | ||
declare function PickupBagFromSlot(inventorySlotId: INVENTORY_SLOT_ID_CONTAINERS): void; | ||
declare function PickupBagFromSlot(inventorySlotId: WOW_INVENTORY_SLOT_ID_CONTAINERS): void; | ||
@@ -204,3 +204,3 @@ /** | ||
*/ | ||
declare function PickupContainerItem(bagId: CONTAINER_ID, slot: number): void; | ||
declare function PickupContainerItem(bagId: WOW_CONTAINER_ID, slot: number): void; | ||
@@ -220,3 +220,3 @@ /** | ||
*/ | ||
declare function PutItemInBag(inventorySlotId: INVENTORY_SLOT_ID_CONTAINERS): void; | ||
declare function PutItemInBag(inventorySlotId: WOW_INVENTORY_SLOT_ID_CONTAINERS): void; | ||
@@ -231,3 +231,3 @@ /** | ||
*/ | ||
declare function SplitContainerItem(bagId: CONTAINER_ID, slot: number, count: number): void; | ||
declare function SplitContainerItem(bagId: WOW_CONTAINER_ID, slot: number, count: number): void; | ||
@@ -246,3 +246,3 @@ /** | ||
*/ | ||
declare function ToggleBag(bagId: CONTAINER_ID): void; | ||
declare function ToggleBag(bagId: WOW_CONTAINER_ID): void; | ||
@@ -259,2 +259,2 @@ /** | ||
*/ | ||
declare function UseContainerItem(bagId: CONTAINER_ID, slot: number, target?: WowUnitId, reagentBankAccessible?: boolean): void; | ||
declare function UseContainerItem(bagId: WOW_CONTAINER_ID, slot: number, target?: WowUnitId, reagentBankAccessible?: boolean): void; |
@@ -46,2 +46,30 @@ declare type EXPANSION_CLASSIC = 0; | ||
*/ | ||
declare type WowHyperlink = string; | ||
declare type WowHyperlink = string; | ||
/** | ||
* TYPES THAT SHOULD BE STORED SEPERATLY!!!! | ||
*/ | ||
declare type WowCombatTextType = "DAMAGE" | "SPELL_DAMAGE" | "DAMAGE_CRIT" | "HEAL" | "PERIODIC_HEAL" | "HEAL_CRIT" | "MISS" | | ||
"DODGE" | "PARRY" | "BLOCK" | "RESIST" | "SPELL_RESISTED" | "ABSORB" | "SPELL_ABSORBED" | "MANA" | "ENERGY" | "RAGE" | "FOCUS" | | ||
"SPELL_ACTIVE" | "COMBO_POINTS" | "AURA_START" | "AURA_END" | "AURA_START_HARMFUL" | "AURA_END_HARMFUL" | "HONOR_GAINED" | "FACTION"; | ||
declare type WowCombatCriticalIndicator = "CRITICAL" | "CRUSHING" | "GLANCING"; | ||
declare type WowCombatDamageType = 1 | 2 | 4 | 8 | 16 | 32 | 64; | ||
declare type WowDisenchantRollType = 1 | 2 | 3; | ||
declare type WowDifficulty = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | ||
| 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34; | ||
declare type WowStreamingState = 0 | 1 | 2 | 3; | ||
declare type WowVehicleType = "Natural" | "Mechanical" | "VehicleMount" | "VehicleMount_Organic" | ""; | ||
declare type WowUnitPowerType = "MANA" | "RAGE" | "ENERGY" | "FOCUS" | "HAPPINESS" | "RUNIC_POWER" | "HOLY_POWER"; |
@@ -22,2 +22,3 @@ import "./constants"; | ||
import "./debug"; | ||
import "./event"; | ||
import "./security"; | ||
@@ -24,0 +25,0 @@ import "./system"; |
@@ -20,2 +20,2 @@ declare type ITEM_QUALITY_GENERIC = -1; | ||
*/ | ||
declare type ItemLink = WowHyperlink; | ||
declare type WowItemLink = WowHyperlink; |
@@ -50,10 +50,3 @@ /// <reference path="global.d.ts" /> | ||
declare type TypedWowEvents = { | ||
PLAYER_TARGET_CHANGED: null, | ||
PLAYER_EQUIPMENT_CHANGED: [WowInventoryId, boolean], | ||
UNIT_HEALTH: [WowUnitId] | ||
}; | ||
// ----- | ||
declare type WowEvent = keyof TypedWowEvents; | ||
@@ -60,0 +53,0 @@ declare type WowEventOnAny = WowEventOnEvent | WowEventOnLoad | WowEventOnUpdate | WowEventOnClick | WowEventOnEnter | |
@@ -20,3 +20,3 @@ { | ||
"types": "declarations/index.d.ts", | ||
"version": "0.0.4" | ||
"version": "0.0.5" | ||
} |
349103
34
8903