arx-convert
Version:
Converts various Arx Fatalis formats to JSON or YAML and back
27 lines (26 loc) • 881 B
TypeScript
import { BinaryIO } from '../common/BinaryIO.js';
import type { ArxVector3 } from '../common/types.js';
import type { ArxAnchor } from './Anchor.js';
/**
* @see https://github.com/arx/ArxLibertatis/blob/1.2.1/src/graphics/data/FastSceneFormat.h#L113
* @see https://github.com/arx/ArxLibertatis/blob/ArxFatalis-1.21/Sources/Include/EERIEPoly.h#L149
*/
export declare enum ArxAnchorFlags {
None = 0,
Blocked = 8
}
/**
* @see https://github.com/arx/ArxLibertatis/blob/1.2.1/src/graphics/data/FastSceneFormat.h#L117
*/
export type ArxAnchorData = {
position: ArxVector3;
radius: number;
height: number;
numberOfLinkedAnchors: number;
isBlocked: boolean;
};
export declare class AnchorData {
static readFrom(binary: BinaryIO<ArrayBufferLike>): ArxAnchorData;
static accumulateFrom(anchor: ArxAnchor): ArrayBuffer;
static sizeOf(): number;
}