xcom2charpool
Version:
Library for reading, manipulating, and managing XCOM 2 character pool binary files, supporting both browser and Node.js environments.
15 lines (14 loc) • 583 B
TypeScript
import type { Writer } from './Writer';
import { PropertyFactory } from './PropertyFactory';
import { CharacterPoolDataElements } from './Arrays/CharacterPoolDataElements';
export declare class Packer {
protected readonly writer: Writer;
static types: Record<string, PropertyFactory<unknown>>;
constructor(writer: Writer);
writeFile(data: {
state: Record<string, any>;
data: CharacterPoolDataElements;
}): void;
writeProperties(obj: Record<string, any>): void;
writeProperty(name: string, property: any, isArrayElement?: boolean): void;
}