UNPKG

sc4

Version:

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

44 lines (43 loc) 1.31 kB
import Unknown from './unknown.js'; import Vertex from './vertex.js'; import { kFileType, kFileTypeArray } from './symbols.js'; import type { byte, dword, qword } from 'sc4/types'; import type Stream from './stream.js'; import type SGProp from './sgprop.js'; import type { ConstructorOptions } from 'sc4/types'; import Box3 from './box-3.js'; import TractInfo from './tract-info.js'; import { Vector3, type Vector3Like } from './vector-3.js'; import NetworkCrossing from './network-crossing.js'; import TGI from './tgi.js'; export default class Network { static [kFileType]: 3384826990; static [kFileTypeArray]: boolean; crc: dword; version: string; mem: dword; appearance: dword; tract: TractInfo; sgprops: SGProp[]; tgi: TGI<number>; position: Vector3; vertices: [Vertex, Vertex, Vertex, Vertex]; textureId: dword; wealthTexture: byte; baseTexture: dword; orientation: byte; crossings: NetworkCrossing[]; walls: ({ texture: dword; vertex: Vertex; })[]; bbox: Box3; constructionStates: dword; alternatePathId: dword; demolishingCosts: qword; u: Unknown; constructor(opts?: ConstructorOptions<Network>); move(offset: Vector3Like): void; parse(rs: Stream): this; toBuffer(): Uint8Array; }