arx-convert
Version:
Converts various Arx Fatalis formats to JSON or YAML and back
19 lines (18 loc) • 581 B
TypeScript
import { BinaryIO } from '../common/BinaryIO.js';
import type { ArxTEA } from './TEA.js';
/**
* @see https://github.com/arx/ArxLibertatis/blob/1.2.1/src/animation/AnimationFormat.h#L82
*/
export type ArxTeaHeader = {
ident: string;
version: number;
name: string;
numberOfFrames: number;
numberOfGroups: number;
numberOfKeyFrames: number;
};
export declare class TeaHeader {
static readFrom(binary: BinaryIO<ArrayBufferLike>): ArxTeaHeader;
static accumulateFrom(json: ArxTEA, uncompressedSize: number): ArrayBuffer;
static sizeOf(): number;
}