local Private = select(2, ...)

-- Ensure Private.Waypoints is defined (ExpansionData.lua populates this)
if not Private.Waypoints or type(Private.Waypoints) ~= "table" then
    Private.Waypoints = {}
    --print("Warning: Private.Waypoints table is missing or not loaded. Using an empty table.")
end

-- Merge optional Waypoint parts, if the data file splits them into Part1/Part2
for _, part in ipairs({Private.Part1, Private.Part2}) do
    if part and type(part) == "table" then
        for _, achievement in ipairs(part) do
            table.insert(Private.Waypoints, achievement)
        end
    end
end

-- Debugging to confirm the data loaded
print("MetaTracker_FarewellToArms initialized with " .. #Private.Waypoints .. " achievements.")

local metaTracker = LibStub("MetaTracker")
metaTracker:RegisterExpansion(Private.Waypoints, "Farewell to Arms")
