You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

38 lines
1007 B

-- ----------------------------------------------------------------------------
-- Lua globals
-- ----------------------------------------------------------------------------
local rawset = _G.rawset
local setmetatable = _G.setmetatable
-- ----------------------------------------------------------------------------
-- AddOn namespace
-- ----------------------------------------------------------------------------
local AddOnFolderName, private = ...
-- ----------------------------------------------------------------------------
-- Constants
-- ----------------------------------------------------------------------------
local addTableMeta = {
__index = function(t, mapID)
if mapID < 0 then
return
end
local new = {}
rawset(t, mapID, new)
return new
end
}
private.Data = {
Continents = {},
Maps = setmetatable({}, addTableMeta),
NPCs = {},
Scanner = {
continentID = nil,
mapID = nil,
NPCCount = 0,
NPCs = {},
}
}