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.

33 lines
974 B

-------------------------------------------------------------------------------
---------------------------------- NAMESPACE ----------------------------------
-------------------------------------------------------------------------------
local ADDON_NAME, ns = ...
local Class = ns.Class
-------------------------------------------------------------------------------
------------------------------------- MAP -------------------------------------
-------------------------------------------------------------------------------
local Map = Class('Map')
Map.id = 0
function Map:init ()
self.nodes = {}
end
function Map:prepare () end
function Map:enabled (node, coord, minimap)
local db = ns.addon.db
-- Check if we've been hidden by the user
if db.char[self.id..'_coord_'..coord] then return false end
return node:enabled(self, coord, minimap)
end
-------------------------------------------------------------------------------
ns.Map = Map