UNPKG

arx-convert

Version:

Converts various Arx Fatalis formats to JSON or YAML and back

25 lines (24 loc) 770 B
import { BinaryIO } from '../common/BinaryIO.js'; import type { ArxVector3 } from '../common/types.js'; /** * These are not bitwise flags, they cannot be combined */ export declare enum ArxZoneAndPathPointType { Standard = 0, Bezier = 1, BezierControlPoint = 2 } /** * @see https://github.com/arx/ArxLibertatis/blob/1.2.1/src/scene/LevelFormat.h#L168 */ export type ArxZoneAndPathPoint = { position: ArxVector3; type: ArxZoneAndPathPointType; /** milliseconds */ time: number; }; export declare class ZoneAndPathPoint { static readFrom(binary: BinaryIO<ArrayBufferLike>, position: ArxVector3): ArxZoneAndPathPoint; static allocateFrom(point: ArxZoneAndPathPoint, position: ArxVector3): ArrayBuffer; static sizeOf(): number; }