UNPKG

sc4

Version:

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

54 lines (53 loc) 1.39 kB
import Stream from './stream.js'; import { kFileType } from './symbols.js'; import type { byte, dword, float, word } from 'sc4/types'; import Unknown from './unknown.js'; import WriteBuffer from './write-buffer.js'; import type SGProp from './sgprop.js'; type OccupantGroupInfo = { occupantGroup: dword; population: dword; }; export default class RegionView { static [kFileType]: 3389161179; version: string; x: number; z: number; xSize: number; zSize: number; population: { residential: dword; commercial: dword; industrial: dword; }; rating: byte; starCount: byte; tutorial: boolean; guid: dword; mode: 'god' | 'mayor'; name: string; formerName: string; mayorName: string; description: string; defaultMayor: string; currentInfo: OccupantGroupInfo[]; maxInfo: OccupantGroupInfo[]; limits: OccupantGroupInfo[]; unknownFloats: float[]; neighbourConnections: NeighbourConnection[]; u: Unknown; parse(buff: Stream | Uint8Array): void; toBuffer(): Uint8Array<ArrayBufferLike>; } declare class NeighbourConnection { version: string; type: dword; connection: [dword, dword]; destination: [dword, dword]; byte: number; sgprops: SGProp[]; propertyVersion: word; parse(rs: Stream): this; write(ws: WriteBuffer): void; } export {};