After thinking about it some more, I'm modifying my request =P
Example:
One of my guildmates is in a zone which has zoneid 1234
If I can't access (fast travel to) that zone for whatever reason, I want to filter this guildmate from my list of possible fast travel destinations.
A function like:
isZoneUnlocked(zoneid)
or something similar which returns a boolean would do everything I need.
The TLDR:
Currently I make a list of major accessible zones and filter what my addon displays based on that list.
But creating the list is problematic without hardcoding. If I had a function such as the one above, I wouldn't need to make a list at all. Well technically I guess it's a dictionary. But you get the point.
In case someone did need to create a list of zones, (and assuming there aren't gaps in zoneids), then at least a function like
getMaxZoneId()
would be helpful.
|