unreal.js
Version:
A pak reader for games like VALORANT & Fortnite written in Node.JS
80 lines (79 loc) • 2.29 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.FFileManifest = void 0;
/**
* FFileManifest
*/
class FFileManifest {
/**
* Creates an instance using values
* @param {string} fileName File name to use
* @param {string} symlinkTarget Symlink target to use
* @param {Buffer} fileHash File hash to use
* @param {number} fileMetaFlags File meta flags to use
* @param {number} installTags Install tags size to use
* @param {Array<FChunkPart>} chunkParts Chunk parts to use
* @param {number} fileSize File size to use
* @constructor
* @public
*/
constructor(fileName, symlinkTarget, fileHash, fileMetaFlags, installTags, chunkParts, fileSize) {
/**
* File Name
* @type {string}
* @public
*/
this.fileName = "";
/**
* Symlink target
* @type {string}
* @public
*/
this.symlinkTarget = "";
/**
* File hash
* @type {Buffer}
* @public
*/
this.fileHash = Buffer.alloc(0);
/**
* File meta flags
* @type {number}
* @public
*/
this.fileMetaFlags = 0;
/**
* Install tags
* @type {Array<string>}
* @public
*/
this.installTags = [];
/**
* Chunk parts
* @type {Array<FChunkPart>}
* @public
*/
this.chunkParts = [];
/**
* File size
* @type {number}
* @public
*/
this.fileSize = 0;
if (fileName != null)
this.fileName = fileName;
if (symlinkTarget != null)
this.symlinkTarget = symlinkTarget;
if (fileHash != null)
this.fileHash = fileHash;
if (fileMetaFlags != null)
this.fileMetaFlags = fileMetaFlags;
if (installTags != null)
this.installTags = installTags;
if (chunkParts != null)
this.chunkParts = chunkParts;
if (fileSize != null)
this.fileSize = fileSize;
}
}
exports.FFileManifest = FFileManifest;