UNPKG

sc4

Version:

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

32 lines (31 loc) 799 B
import type { tracts } from 'sc4/types'; import type Box3 from './box-3.js'; import type Stream from './stream.js'; import type WriteBuffer from './write-buffer.js'; import type { Vector3Like } from './vector-3.js'; type Vector2<T = tracts> = [x: T, z: T]; export default class TractInfo { minX: number; minZ: number; maxX: number; maxZ: number; xTractSize: number; zTractSize: number; constructor(min?: Vector2<tracts>, max?: Vector2<tracts>); get min(): { x: number; z: number; }; get max(): { x: number; z: number; }; parse(rs: Stream): this; write(ws: WriteBuffer): this; update(record: { bbox: Box3; }): this; update(bbox: Box3): this; update(position: Vector3Like): this; } export {};