arx-convert
Version:
Converts various Arx Fatalis formats to JSON or YAML and back
19 lines (18 loc) • 618 B
TypeScript
import { BinaryIO } from '../common/BinaryIO.js';
import type { ArxFTL } from './FTL.js';
/** @see https://github.com/arx/ArxLibertatis/blob/1.2.1/src/graphics/data/FTLFormat.h#L86 */
export type ArxFtlHeader = {
numberOfVertices: number;
numberOfFaces: number;
numberOfTextures: number;
numberOfGroups: number;
numberOfActions: number;
numberOfSelections: number;
origin: number;
name: string;
};
export declare class FtlHeader {
static readFrom(binary: BinaryIO<ArrayBufferLike>): ArxFtlHeader;
static accumulateFrom(json: ArxFTL): ArrayBuffer;
static sizeOf(): number;
}