UNPKG

unreal.js

Version:

A pak reader for games like VALORANT & Fortnite written in Node.JS

27 lines (26 loc) 982 B
/// <reference types="node" /> /// <reference types="ref-napi" /> import { VersionContainer } from "../versions/VersionContainer"; import { GameFile } from "../pak/GameFile"; import { FByteArchive } from "../reader/FByteArchive"; export declare abstract class AbstractVfsReader { path: string; versions: VersionContainer; name: string; protected constructor(path: string, versions: VersionContainer); files: GameFile[]; get fileCount(): number; abstract get hasDirectoryIndex(): boolean; mountPoint: string; concurrent: boolean; get game(): number; set game(v: number); get ver(): number; set ver(v: number); abstract readIndex(): GameFile[]; abstract extract(gameFile: GameFile): Buffer; protected validateMountPoint(mountPoint: string): string; static readonly MAX_MOUNTPOINT_TEST_LENGTH = 128; static isValidIndex(source: Buffer | FByteArchive): boolean; toString(): string; }