---@type string
local AddOnName = ...

---@class MapPinEnhanced : MPHCallbackHandler
local MapPinEnhanced = select(2, ...)

local version = C_AddOns.GetAddOnMetadata("MapPinEnhanced", "Version")
local numericVersion = tonumber((version:gsub("%.", ""))) or 0
---version number in the format of 100 for 1.0.0 or 302 for 3.0.2
MapPinEnhanced.version = numericVersion
MapPinEnhanced.addonName = AddOnName
MapPinEnhanced.nameVersionString = MapPinEnhanced.addonName .. " v" .. version

MapPinEnhanced.isRetail = WOW_PROJECT_ID == WOW_PROJECT_MAINLINE
MapPinEnhanced.isClassic = WOW_PROJECT_ID == WOW_PROJECT_CLASSIC -- Note: Classic is not supported yet

MapPinEnhanced.HBD = LibStub("HereBeDragons-2.0")
MapPinEnhanced.HBDP = LibStub("HereBeDragons-Pins-2.0")
MapPinEnhanced.LDBIcon = LibStub("LibDBIcon-1.0")
MapPinEnhanced.LibSerialize = LibStub("LibSerialize")
MapPinEnhanced.LibDeflate = LibStub("LibDeflate")


---@type MPHCallbackHandlerRegistry
MapPinEnhanced.CB = MapPinEnhanced.CB or LibStub("CallbackHandler-1.0"):New(MapPinEnhanced)
