arx-convert
Version:
Converts various Arx Fatalis formats to JSON or YAML and back
24 lines (23 loc) • 813 B
TypeScript
import { BinaryIO } from '../common/BinaryIO.js';
/**
* @see https://github.com/arx/ArxLibertatis/blob/1.2.1/src/graphics/data/FastSceneFormat.h#L107
*/
export type ArxTextureContainer = {
id: number;
filename: string;
};
export declare class TextureContainer {
static readFrom(binary: BinaryIO<ArrayBufferLike>): ArxTextureContainer;
static accumulateFrom(textureContainer: ArxTextureContainer): ArrayBuffer;
/**
* from: GRAPH\\OBJ3D\\TEXTURES\\[STONE]_HUMAN_GROUND_WET.BMP
* to: [stone]_human_ground_wet.bmp
*/
static toRelativePath(filename: string): string;
/**
* from: [stone]_human_ground_wet.bmp
* to: graph\\obj3d\\textures\\[stone]_human_ground_wet.bmp
*/
static toAbsolutePath(filename: string): string;
static sizeOf(): number;
}