World of Warcraft Forever API · C_InvasionInfo.md, for your AI
C_InvasionInfo
4 functions, 1 tables, as Blizzard documents them for Forever 1.60.1 (70959).
Making an addon with an AI? Tell it: Read https://wowaddons.gg/agents.md, then make me a World of Warcraft Forever addon that …, try it with me in the game, and publish it. It checks every call against this API before you try it in the game, then publishes it here. How it works.
Functions
C_InvasionInfo.AreInvasionsAvailable
areInvasionsAvailable = C_InvasionInfo.AreInvasionsAvailable()
Returns true if invasions are active in the same physical area as the player.
Returns
areInvasionsAvailable | bool |
|---|
C_InvasionInfo.GetInvasionForUiMapID
invasionID = C_InvasionInfo.GetInvasionForUiMapID(uiMapID)
Arguments
uiMapID | number |
|---|
Returns
invasionID | number may be nil |
|---|
C_InvasionInfo.GetInvasionInfo
invasionInfo = C_InvasionInfo.GetInvasionInfo(invasionID)
May return nothing.
Arguments
invasionID | number |
|---|
Returns
invasionInfo | InvasionMapInfo |
|---|
C_InvasionInfo.GetInvasionTimeLeft
timeLeftMinutes = C_InvasionInfo.GetInvasionTimeLeft(invasionID)
Arguments
invasionID | number |
|---|
Returns
timeLeftMinutes | number may be nil |
|---|
Tables
InvasionMapInfo structure
invasionID | number | |
|---|---|---|
name | string | |
position | vector2 | |
atlasName | textureAtlas | |
rewardQuestID | number may be nil |