With the new set item collections, is a GetNumSets() function possible now or do we need to "iterate" the setIds via GetNextItemSetCollectionId() until it returns 0/nil ?
Edit:
An answer from ZOs:
There is no index one could use to build that function but the following data will return the number of given "reconstructable" setIds and is build before addons are loaded:
Lua Code:
local numSetIds = NonContiguousCount(ITEM_SET_COLLECTIONS_DATA_MANAGER.itemSetCollections)
But this will only provide the number of "reconstructable" sets available (excluding craftable ones, and other sets), not the real "highest set number in the game"!
For a total set number and data you are currently able to use the library: LibSets