UNPKG

arx-convert

Version:

Converts various Arx Fatalis formats to JSON or YAML and back

18 lines (17 loc) 595 B
import { BinaryIO } from '../common/BinaryIO.js'; /** * @see https://github.com/arx/ArxLibertatis/blob/1.2.1/src/graphics/data/FastSceneFormat.h#L161 */ export type ArxEPData = { cellX: number; cellY: number; /** * this number is a counter for polygons in the cell, it has no relation to the order of polygons globally */ polygonIdx: number; }; export declare class EPData { static readFrom(binary: BinaryIO<ArrayBufferLike>): ArxEPData; static accumulateFrom({ cellX: px, cellY: py, polygonIdx: idx }: ArxEPData): ArrayBuffer; static sizeOf(): number; }