mirror of
https://github.com/brues-code/ClassicAPI.git
synced 2026-11-16 16:10:36 +00:00
GetTaxiNodesForMap(mapID) reads TaxiNodes.dbc: real flight masters on a continent, faction-tagged, discovered or not -- the static DB pfQuest's pfDB.meta.flight wants. Non-flight rows are filtered out: a node must have a flight mount (horde @+0x38 / alliance @+0x3C -- drops transports/ boats/zeppelins) AND be a TaxiPath.dbc endpoint (drops Northshire Abbey, spurious duplicate hub rows, standalone markers with no connecting path), plus a guard for Blizzard's lone "Generic, World target" placeholder. Returns retail nodeID/name/faction/position (continent 0-1) + ext mapID/x/y/z and derived areaID/mapX/mapY (zone-relative). GetAllTaxiNodes([uiMapID]) wraps the open flight master's live node list (VAR_TAXI_NODE_ARRAY stride 0x20: slot+0 = TaxiNodes record ptr, +0x04/+0x08 = flight-map x/y; count VAR_TAXI_NODE_COUNT; type via FUN_004dc4e0): slotIndex (TakeTaxiNode), name, nodeID, state (Enum.FlightPathState). Empty when no taxi map is open. Registers Enum.FlightPathFaction / Enum.FlightPathState (retail values). Extracts the zone-percent projection into shared Map::Area::ZonePercent + adds ContinentPercent; refactors AreaTriggers onto ZonePercent. Verified: EK 48 real masters (Northshire/EPL/transports gone), Stormwind Alliance / Undercity Horde, continent position matches projection; live 24 nodes with Stormwind state=Current.