UNPKG

sc4

Version:

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

12 lines (11 loc) 438 B
import type { uint32 } from 'sc4/types'; import type { SavegameRecord } from './types.js'; export default class Pointer<T extends SavegameRecord | Uint8Array = SavegameRecord> { type: uint32; address: uint32; constructor(object: Exclude<T, Uint8Array>); constructor(type: number, address?: uint32); get mem(): number; set mem(value: number); [Symbol.toPrimitive](hint: 'number' | 'string'): string | number; }