UNPKG

xcom2charpool

Version:

Library for reading, manipulating, and managing XCOM 2 character pool binary files, supporting both browser and Node.js environments.

22 lines (21 loc) 737 B
import type { Reader } from './Reader'; import { PropertyFactory } from './PropertyFactory'; import { CharacterPoolDataElements } from './Arrays/CharacterPoolDataElements'; import { ArrayFactory } from './Arrays/ArrayFactory'; export declare class Unpacker { protected readonly reader: Reader; static types: Record<string, PropertyFactory<unknown>>; static knownArrays: Record<string, ArrayFactory<unknown>>; get position(): number; get length(): number; constructor(reader: Reader); readFile(): { state: Record<string, any>; data: CharacterPoolDataElements; }; properties(): Record<string, any>; property(): { name: string; property: unknown; } | undefined; }