World of Warcraft Forever API · C_TaxiMap.md, for your AI
C_TaxiMap
3 functions, 3 events, 4 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_TaxiMap.GetAllTaxiNodes
taxiNodes = C_TaxiMap.GetAllTaxiNodes(uiMapID)
Returns information on taxi nodes at the current flight master.
Arguments
uiMapID | number |
|---|
Returns
taxiNodes | TaxiNodeInfo[] |
|---|
C_TaxiMap.GetTaxiNodesForMap
mapTaxiNodes = C_TaxiMap.GetTaxiNodesForMap(uiMapID)
Returns information on taxi nodes for a given map, without considering the current flight master.
Arguments
uiMapID | number |
|---|
Returns
mapTaxiNodes | MapTaxiNodeInfo[] |
|---|
C_TaxiMap.ShouldMapShowTaxiNodes
shouldShowNodes = C_TaxiMap.ShouldMapShowTaxiNodes(uiMapID)
Arguments
uiMapID | number |
|---|
Returns
shouldShowNodes | bool |
|---|
Events
TAXI_NODE_STATUS_CHANGED
No payload.
TAXIMAP_CLOSED
No payload.
TAXIMAP_OPENED
system | number |
|---|
Tables
Enum.FlightPathFaction enumeration
Neutral | 0 |
|---|---|
Horde | 1 |
Alliance | 2 |
Enum.FlightPathState enumeration
Current | 0 |
|---|---|
Reachable | 1 |
Unreachable | 2 |
MapTaxiNodeInfo structure
nodeID | number | |
|---|---|---|
position | vector2 | |
name | cstring | |
atlasName | cstring | |
faction | FlightPathFaction | |
textureKit | textureKit | |
isUndiscovered | bool |
TaxiNodeInfo structure
nodeID | number | |
|---|---|---|
position | vector2 | |
name | cstring | |
state | FlightPathState | |
slotIndex | luaIndex | |
textureKit | textureKit | |
useSpecialIcon | bool | |
specialIconCostString | string may be nil | |
isMapLayerTransition | bool |