mirror of
https://github.com/brues-code/ClassicAPI.git
synced 2026-11-16 08:00:42 +00:00
Add GetMapInfo, GetMapChildrenInfo, GetMapInfoAtPosition and GetFallbackWorldMapID, giving the World -> Continent -> Zone tree. Continents carry no AreaTable id (their WorldMapArea rows have areaID 0), so they are named by a negative -(WorldMapArea row) -- mirroring the engine's own zoneOrSort idiom, where positive is an AreaTable zone and negative a QuestSort row. Names and mapType for those come from Map.dbc. Move the row math into Map::Area (RowForUiMapID, ContinentRowForMapID, RowRect, PercentInRow, WorldFromRow) and put the Tier 1 coordinate functions on it, so they accept continent ids too and GetMapRectOnMap honors topUiMapID.