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
zipThe 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
mapIDThe 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
mapIDThe ID of the map for which to check for new packdata.
eTagThe ETag of the current packdata.
View on GitHub