/
------------------------------------------------------------------------ |
r143 | Odica | 2012-08-07 14:04:09 +0000 (Tue, 07 Aug 2012) | 2 lines |
Changed paths: |
M /trunk/LibTourist-3.0.lua |
- function zoneIter: Complexes are no longer included |
- function IsZone: No longer returns True for Complexes |
------------------------------------------------------------------------ |
r142 | Odica | 2012-06-13 20:23:49 +0000 (Wed, 13 Jun 2012) | 1 line |
Changed paths: |
M /trunk/LibTourist-3.0.lua |
Added Twilight Highlands return portals to Orgrimmar and Stormwind City. |
------------------------------------------------------------------------ |
--[[ |
Name: LibTourist-3.0 |
Revision: $Rev: 142 $ |
Revision: $Rev: 143 $ |
Author(s): ckknight (ckknight@gmail.com), Arrowmaster, Odica (maintainer) |
Website: http://ckknight.wowinterface.com/ |
Documentation: http://www.wowace.com/addons/libtourist-3-0/ |
]] |
local MAJOR_VERSION = "LibTourist-3.0" |
local MINOR_VERSION = 90000 + tonumber(("$Revision: 142 $"):match("(%d+)")) |
local MINOR_VERSION = 90000 + tonumber(("$Revision: 143 $"):match("(%d+)")) |
if not LibStub then error(MAJOR_VERSION .. " requires LibStub") end |
if not LibStub("LibBabble-Zone-3.0") then error(MAJOR_VERSION .. " requires LibBabble-Zone-3.0.") end |
local function zoneIter(_, position) |
local k = next(zonesInstances, position) |
while k ~= nil and (types[k] == "Instance" or types[k] == "Battleground" or types[k] == "Arena") do |
while k ~= nil and (types[k] == "Instance" or types[k] == "Battleground" or types[k] == "Arena" or types[k] == "Complex") do |
k = next(zonesInstances, k) |
end |
return k |
function Tourist:IsZone(zone) |
local t = types[zone] |
return t and t ~= "Instance" and t ~= "Battleground" and t ~= "Transport" and t ~= "Arena" |
return t and t ~= "Instance" and t ~= "Battleground" and t ~= "Transport" and t ~= "Arena" and t ~= "Complex" |
end |
function Tourist:GetComplex(zone) |
## Dependencies: LibBabble-Zone-3.0 |
## X-License: MIT |
## X-Credits: Abydos |
## X-Curse-Packaged-Version: r142 |
## X-Curse-Packaged-Version: r143 |
## X-Curse-Project-Name: LibTourist-3.0 |
## X-Curse-Project-ID: libtourist-3-0 |
## X-Curse-Repository-ID: wow/libtourist-3-0/mainline |
## Interface: 40200 |
## Interface: 50001 |
## Title: Lib: LibStub |
## Notes: Universal Library Stub |
## Credits: Kaelten, Cladhaire, ckknight, Mikk, Ammo, Nevcairiel |
## X-Website: http://www.wowace.com/addons/libstub/ |
## X-Category: Library |
## X-License: Public Domain |
## X-Curse-Packaged-Version: 1.0.2-40200 |
## X-Curse-Packaged-Version: 1.0.3-50001 |
## X-Curse-Project-Name: LibStub |
## X-Curse-Project-ID: libstub |
## X-Curse-Repository-ID: wow/libstub/mainline |