How to get the type of a location?
I'm making an addon that adds pins for certain town services to the compass. These are "Locations" in the API.
Currently I'm figuring out what type each location is by taking the icon filename using GetMapLocationIcon(n), then parsing it to get the filename, then comparing that with the icons for the location types I'm interested in (e.g. if filename == "servicepin_stable.dds")
Is there a better way to get the Location type?
|