UNPKG

sc4

Version:

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

48 lines (47 loc) 1.47 kB
import type { byte, ConstructorOptions, dword, qword } from 'sc4/types'; import type SGProp from './sgprop.js'; import type Stream from './stream.js'; import { kFileType, kFileTypeArray } from './symbols.js'; import TractInfo from './tract-info.js'; import Unknown from './unknown.js'; import Vector3 from './vector-3.js'; import type Matrix3 from './matrix-3.js'; import Vertex from './vertex.js'; import Box3 from './box-3.js'; import type Pointer from './pointer.js'; import NetworkCrossing from './network-crossing.js'; import TGI from './tgi.js'; type NetworkTunnelOccupantOptions = ConstructorOptions<NetworkTunnelOccupant>; export default class NetworkTunnelOccupant { static [kFileType]: 2320225579; static [kFileTypeArray]: boolean; crc: number; mem: number; version: string; appearance: number; tract: TractInfo; sgprops: SGProp[]; tgi: TGI<number>; matrix3: Matrix3 | null; position: Vector3; vertices: [Vertex, Vertex, Vertex, Vertex]; modelId: dword; wealthTexture: byte; baseTexture: dword; orientation: byte; crossings: NetworkCrossing[]; walls: ({ texture: dword; vertex: Vertex; })[]; bbox: Box3; constructionStates: dword; pathId: dword; demolishingCosts: qword; sibling: Pointer; u: Unknown; constructor(opts?: NetworkTunnelOccupantOptions); parse(rs: Stream): this; toBuffer(): Uint8Array<ArrayBufferLike>; } export {};