Plants vs. Zombies: Replanted - v1.0.3
    Preparing search index...

    Interface IDownload

    download information

    IDownload

    interface IDownload {
        chunks?: IChunk[];
        failCause?: IDownloadFailCause;
        fileMD5?: string;
        fileTime: number;
        game: string[];
        id: string;
        installed?: { gameId: string; modId: string };
        localPath?: string;
        modInfo: IModInfo;
        pausable?: boolean;
        received: number;
        size: number;
        startTime: number;
        state: DownloadState;
        urls: string[];
        verified: number;
    }
    Index

    Properties

    chunks?: IChunk[]

    for paused downloads, this contains the list segments that are still missing

    failCause?: IDownloadFailCause

    if the download failed, this will contain a more detailed description of the error

    IDownload

    fileMD5?: string

    hash of the file data

    IDownload

    fileTime: number

    MS timestamp the file finished downloading

    game: string[]

    id of the game(s) to which this archive is compatible.

    IDownload

    id: string
    installed?: { gameId: string; modId: string }

    id of the (last) mod installed from this archive. Will be undefined while the archive is not installed. This will not be unset if the mod is uninstalled, so to determine if the archive is actually installed one has to look at the dictionary of installed mods

    localPath?: string

    path of the file being downloaded to. This is relative to the base download directory for the game and since we use a flat directory structure, this is in practice just the file name

    IDownload

    modInfo: IModInfo

    info about the mod being downloaded. This will be associated with the mod entry after its installation

    IDownload

    pausable?: boolean

    whether the download server supports resuming downloads

    received: number

    number of bytes received so far

    IDownload

    size: number

    size in bytes

    IDownload

    startTime: number

    MS timestamp the download was started

    current state of the download

    IDownload

    urls: string[]

    list of urls we know serve this file. Should be sorted by preference. If download from the first url isn't possible, the others may be used

    IDownload

    verified: number

    number of bytes hashed during finalizing