local DGV = DugisGuideViewer
local Guide = DugisGuideViewer:RegisterModule("DugisGuide_Pets")
function Guide:Initialize()
	function Guide:Load()
        if not DGV:IsModuleRegistered("PetDataModule") then return end
        for _, item in pairs(PetDataIds) do
            local objectData = DGV.NPCJournalFrame:GetPetDataById(item)
            local title = objectData.name
            
            local category
            
            if type(objectData.category) == "table" then
                category = objectData.category
            else
                category = "|cffffd200" .. objectData.category .. "|r " 
            end
            
            DugisGuideViewer:RegisterGuide(
            category
            , title  , "" , UnitFactionGroup("Player"), select(2, UnitClass("player")), "Pets", nil
            , function() return [[T |QID|0|]] end, {objectId = item})
        end
    end
    
    function Guide:Unload()
	end    
end
