UNPKG

arx-convert

Version:

Converts various Arx Fatalis formats to JSON or YAML and back

17 lines (16 loc) 534 B
import { BinaryIO } from '../common/BinaryIO.js'; import { type ArxPortalPolygon } from './PortalPolygon.js'; /** * @see https://github.com/arx/ArxLibertatis/blob/1.2.1/src/graphics/GraphicsTypes.h#L268 */ export type ArxPortal = { polygon: ArxPortalPolygon; room1: number; room2: number; usePortal: number; }; export declare class Portal { static readFrom(binary: BinaryIO<ArrayBufferLike>): ArxPortal; static accumulateFrom(portal: ArxPortal, levelIdx: number): ArrayBuffer; static sizeOf(): number; }