arx-convert
Version:
Converts various Arx Fatalis formats to JSON or YAML and back
24 lines (23 loc) • 663 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 = {
/**
* either 2014 or 2015
*/
version: number;
name: string;
/**
* Total number of frames that make up the whole animation
*/
totalNumberOfFrames: number;
numberOfGroups: number;
numberOfKeyFrames: number;
};
export declare class TeaHeader {
static readFrom(binary: BinaryIO<ArrayBufferLike>): ArxTeaHeader;
static accumulateFrom(json: ArxTEA): ArrayBuffer;
static sizeOf(): number;
}