arx-convert
Version:
Converts various Arx Fatalis formats to JSON or YAML and back
18 lines (17 loc) • 582 B
TypeScript
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, cellY, polygonIdx }: ArxEPData): ArrayBuffer;
static sizeOf(): number;
}