local ADDON_NAME, ns = ...

ns.WF = ns.WF or {}
local WF = ns.WF

WF.name = ADDON_NAME
WF.version = "0.1.0-beta"

WF.Core   = WF.Core   or {}
WF.DB     = WF.DB     or {}
WF.Util   = WF.Util   or {}
WF.Events = WF.Events or {}
WF.Price  = WF.Price  or {}
WF.Tracker= WF.Tracker or {}
WF.UI     = WF.UI     or {}
WF.Map    = WF.Map    or {}

function WF:Debug(msg)
  if not self.DB or not self.DB.GetSetting then
    return
  end
  if not self.DB:GetSetting("debug") then
    return
  end
  DEFAULT_CHAT_FRAME:AddMessage("|cff66c2ffWhatFarm:|r " .. tostring(msg))
end