UNPKG

unpak.js

Version:

Modern TypeScript library for reading Unreal Engine pak files and assets, inspired by CUE4Parse

33 lines 1.09 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.FAssetData = void 0; const UnrealMap_1 = require("../../../util/UnrealMap"); class FAssetData { objectPath; packagePath; assetClass; packageName; assetName; tagsAndValues = new UnrealMap_1.UnrealMap(); taggedAssetBundles; chunkIds; packageFlags; constructor(Ar) { // Serialize out the asset info this.objectPath = Ar.readFName(); this.packagePath = Ar.readFName(); this.assetClass = Ar.readFName(); // These are derived from ObjectPath, we manually serialize them because they get pooled this.packageName = Ar.readFName(); this.assetName = Ar.readFName(); Ar.serializeTagsAndBundles(this); const chunkLen = Ar.readInt32(); this.chunkIds = new Array(chunkLen); for (let i = 0; i < chunkLen; ++i) { this.chunkIds[i] = Ar.readInt32(); } this.packageFlags = Ar.readUInt32(); } } exports.FAssetData = FAssetData; //# sourceMappingURL=FAssetData.js.map