PackdataManaging

public protocol PackdataManaging : AnyObject

The PackdataManaging is responsible for handling packdata operations, including loading map data from a zip file, downloading packdata, and checking for updates.

  • Loads map data from a local zip file.

    Declaration

    Swift

    func loadMapData(fromZip zip: URL) -> Single<MapData>

    Parameters

    zip

    The URL of the local zip file containing the packdata.

  • Downloads packdata for a given map ID.

    Declaration

    Swift

    func downloadPackdata(mapID: Int) -> Single<Packdata>

    Parameters

    mapID

    The ID of the map for which to download the packdata.

  • Checks if new packdata is available for a given map ID and ETag.

    Declaration

    Swift

    func isNewPackdataAvailable(mapID: Int, eTag: String) -> Single<Bool>

    Parameters

    mapID

    The ID of the map for which to check for new packdata.

    eTag

    The ETag of the current packdata.