UNPKG

arx-convert

Version:

Converts various Arx Fatalis formats to JSON or YAML and back

18 lines (17 loc) 553 B
import type { Simplify } from 'type-fest'; import { type ArxColor } from '../common/Color.js'; import { type ArxLight } from './Light.js'; import { type ArxLlfHeader } from './LlfHeader.js'; export type ArxLLF = { $schema?: string; header: Simplify<Omit<ArxLlfHeader, 'numberOfLights'>>; lights: ArxLight[]; /** * pre-computed vertex light colors for FTS.polygons */ colors: ArxColor[]; }; export declare class LLF { static load(decompressedFile: ArrayBufferLike): ArxLLF; static save(json: ArxLLF): ArrayBuffer; }