UNPKG

arx-convert

Version:

Converts various Arx Fatalis formats to JSON or YAML and back

22 lines (21 loc) 691 B
import { BinaryIO } from '../common/BinaryIO.js'; import type { ArxVector3 } from '../common/types.js'; 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 = { pos: ArxVector3; type: ArxZoneAndPathPointType; /** milliseconds */ time: number; }; export declare class ZoneAndPathPoint { static readFrom(binary: BinaryIO<ArrayBufferLike>, pos: ArxVector3): ArxZoneAndPathPoint; static allocateFrom(point: ArxZoneAndPathPoint, pos: ArxVector3): ArrayBuffer; static sizeOf(): number; }