UNPKG

arx-convert

Version:

Converts various Arx Fatalis formats to JSON or YAML and back

17 lines (16 loc) 599 B
import { BinaryIO } from '../common/BinaryIO.js'; import type { ArxFTS } from './FTS.js'; /** * @see https://github.com/arx/ArxLibertatis/blob/1.2.1/src/graphics/data/FastSceneFormat.h#L56 */ export type ArxFtsHeader = { levelIdx: number; numberOfUniqueHeaders: number; }; export declare class FtsHeader { static readFrom(binary: BinaryIO<ArrayBufferLike>): ArxFtsHeader; static accumulateFrom(json: ArxFTS, uncompressedSize: number): ArrayBuffer; static pathToLevelIdx(path: string): number; static levelIdxToPath(levelIdx: number): string; static sizeOf(): number; }