ts-ritofile
Version:
TypeScript library for reading and writing League of Legends game file formats
67 lines (59 loc) • 1.94 kB
text/typescript
/**
* pyritofile-ts - TypeScript port of pyritofile
* 1:1 API compatibility with Python version
*/
// Version information
export { VERSION as __version__ } from './core/version';
// File format classes - matching Python __init__.py exactly
export { SKL, SKLJoint } from './formats/skl';
export { SKN, SKNVertex, SKNSubmesh } from './formats/skn';
export { SO, SOFlag } from './formats/so';
export { ANM, ANMPose, ANMTrack, ANMErrorMetric } from './formats/anm';
export { MAPGEO } from './formats/mapgeo';
export { BIN, BINEntry, BINPatch, BINField, BINType, BINHelper, bin_hash } from './formats/bin';
export { BNK, BNKObjectType } from './formats/bnk';
export { WPK } from './formats/wpk';
export { TEX, TEXFormat } from './formats/tex';
export { WAD, WADChunk, WADCompressionType, wad_hash, guess_extension } from './formats/wad';
export { Elf, FNV1, FNV1a } from './hash/hash-utils';
export { RST } from './formats/rst';
// Stream utilities
export * as stream from './stream/bin-stream';
// Hash utilities
export { CACHED_BIN_HASHES } from './hash/hash-utils';
// JSON encoder
export { PRFEncoder, writeJson as write_json, toJson as to_json } from './core/json-encoder';
// Convenience functions - matching Python __init__.py exactly
export {
read_skl,
read_skn,
read_sco,
read_scb,
read_anm,
read_mapgeo,
read_bin,
read_bnk,
read_wpk,
read_tex,
read_wad,
read_rst
} from './core/readers';
export {
write_skl,
write_skn,
write_sco,
write_scb,
write_anm,
write_mapgeo,
write_bin,
write_bnk,
write_wpk,
write_wad,
write_rst
} from './core/writers';
// Additional exports for TypeScript-specific functionality
export * from './structures/vector';
export * from './structures/quaternion';
export * from './structures/matrix4';
export * from './structures/bounding-box';
export * from './structures/bounding-sphere';