UNPKG

arx-convert

Version:

Converts various Arx Fatalis formats to JSON or YAML and back

14 lines (13 loc) 457 B
import { BinaryIO } from '../common/BinaryIO.js'; import type { Color } from '../common/Color.js'; /** * @see https://github.com/arx/ArxLibertatis/blob/1.2.1/src/scene/LevelFormat.h#L94 */ export type ArxLightingHeader = { numberOfColors: number; }; export declare class LightingHeader { static readFrom(binary: BinaryIO<ArrayBufferLike>): ArxLightingHeader; static accumulateFrom(colors: Color[]): ArrayBuffer; static sizeOf(): number; }