UNPKG

sc4

Version:

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

75 lines (74 loc) 2.01 kB
import Unknown from './unknown.js'; import WriteBuffer from './write-buffer.js'; import SGProp from './sgprop.js'; import Matrix from './matrix.js'; import Matrix3 from './matrix-3.js'; import Vertex from './vertex.js'; import Box3 from './box-3.js'; import TractInfo from './tract-info.js'; import Vector3 from './vector-3.js'; import { kFileType, kFileTypeArray } from './symbols.js'; import type { byte, dword, float, word, ConstructorOptions } from 'sc4/types'; import type Stream from './stream.js'; export default class Pipe { static [kFileType]: 1237343135; static [kFileTypeArray]: boolean; crc: dword; mem: dword; major: word; minor: word; zot: word; appearance: byte; tract: TractInfo; sgprops: SGProp[]; GID: dword; TID: dword; IID: dword; matrix3: Matrix3; position: Vector3; vertices: [Vertex, Vertex, Vertex, Vertex]; textureId: dword; orientation: byte; networkType: byte; westConnection: byte; northConnection: byte; eastConnection: byte; southConnection: byte; bbox: Box3; blocks: dword; sideTextures: SideTextures; matrix: Matrix; xTile: dword; zTile: dword; diagonalFlipped: boolean; sideFlag1: boolean; sideFlag2: boolean; yNW: float; ySW: float; ySE: float; yNE: float; yModel: float; subfileId: dword; u: Unknown; constructor(opts?: ConstructorOptions<Pipe>); parse(rs: Stream): this; toBuffer(): Uint8Array; } declare class SideTextures extends Array<Vertex[]> { constructor(); get west(): Vertex[]; set west(value: Vertex[]); get north(): Vertex[]; set north(value: Vertex[]); get east(): Vertex[]; set east(value: Vertex[]); get south(): Vertex[]; set south(value: Vertex[]); get bottom(): Vertex[]; set bottom(value: Vertex[]); vertical(): Generator<Vertex[]>; parse(rs: Stream): this; write(ws: WriteBuffer): WriteBuffer; toBuffer(): Uint8Array; } export {};