UNPKG

sc4

Version:

A command line utility for automating SimCity 4 modding tasks & modifying savegames

32 lines (31 loc) 881 B
import type { TGILiteral } from 'sc4/types'; type u32 = number; export default class Index { instance: number; tgis: Uint32Array; t: Uint32Array; ti: Uint32Array; tgi: Uint32Array; private constructor(); static fromEntries(entries: TGILiteral[]): Index; findType(type: u32): u32[]; findTGI(type: u32, group: u32, instance: u32): u32[]; findTI(type: u32, instance: u32): u32[]; getPerformanceLabel(name: string): string; getStats(): { size: number; indices: { name: string; buckets: number; byteLength: number; fillingDegree: number; performance: { name: string; duration: number; }[]; }[]; }; serialize(): Uint8Array; static fromBuffer({ buffer, byteOffset }: Uint8Array): Index; } export {};