UNPKG

sc4

Version:

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

46 lines (45 loc) 1.21 kB
import Stream from './stream.js'; import Pointer from './pointer.js'; import Unknown from './unknown.js'; import { kFileType } from './symbols.js'; import type { byte, dword } from 'sc4/types'; import type { SimGridUint8 } from './sim-grid-file.js'; import type Pipe from './pipe.js'; import type DepartmentBudget from './department-budget.js'; type Building = { xAnchor: dword; zAnchor: dword; xMin: dword; zMin: dword; xMax: dword; zMax: dword; capacity: dword; actualCapacity: dword; pointer: Pointer; }; export default class PlumbingSimulator { static [kFileType]: 160481397; crc: number; mem: number; major: number; grid1: Pointer<SimGridUint8>; grid2: Pointer<SimGridUint8>; xSize: number; zSize: number; cells: byte[][]; revision: number; buildings: Building[]; citySize: number; xTiles: number; zTiles: number; filterCapacity: number; pipes: Pointer<Pipe>[]; departmentBudget: Pointer<DepartmentBudget>; totalProduced: number; actualFilterCapacity: number; u: Unknown; clear(): void; parse(buff: Stream | Uint8Array): void; toBuffer(): Uint8Array<ArrayBufferLike>; } export {};