arx-convert
Version:
Converts various Arx Fatalis formats to JSON or YAML and back
22 lines (21 loc) • 703 B
TypeScript
import { BinaryIO } from '../common/BinaryIO.js';
import type { ArxRotation, ArxVector3 } from '../common/types.js';
import type { ArxDLF } from './DLF.js';
/**
* @see https://github.com/arx/ArxLibertatis/blob/1.2.1/src/scene/LevelFormat.h#L58
*/
export type ArxDlfHeader = {
lastUser: string;
time: number;
posEdit: ArxVector3;
angleEdit: ArxRotation;
numberOfInteractiveObjects: number;
numberOfFogs: number;
numberOfBackgroundPolygons: number;
numberOfZonesAndPaths: number;
};
export declare class DlfHeader {
static readFrom(binary: BinaryIO<ArrayBufferLike>): ArxDlfHeader;
static accumulateFrom(json: ArxDLF): ArrayBuffer;
static sizeOf(): number;
}