UNPKG

arx-convert

Version:

Converts various Arx Fatalis formats to JSON or YAML and back

27 lines (26 loc) 924 B
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 of an image within graph/obj3d/textures, like "[stone]_human_castle_wall1.bmp" */ 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; }