mirror of
https://github.com/brues-code/ClassicAPI.git
synced 2026-11-16 16:10:36 +00:00
A map's background is the tile set Interface\WorldMap\<dir>\<dir>1..12, where <dir> is the WorldMapArea row's own name -- the path the world map frame builds its tiles from. So "does this map have art" and "give me its tiles" are both answerable by probing that set, even though the modern atlas art model has no counterpart here. MapHasArt is independent of whether a map has coordinates: the whole-world map has art but a zero rect, and instance rows can have a rect but ship no art. GetMapArtLayerTextures returns texture PATHS rather than the numeric file ids of the modern call. A texture is named by its path on this client and SetTexture takes that path, so ids would be both unavailable and unusable; GetMapOverlays already makes the same substitution for its fileDataIDs. There is one art layer, so layerIndex 1 returns the background and any other index an empty table. Path convention and the 12-tile count taken from the client's own FrameXML rather than assumed.