sc4
Version:
A command line utility for automating SimCity 4 modding tasks & modifying savegames
47 lines (46 loc) • 1.22 kB
TypeScript
import SGProp from './sgprop.js';
import { kFileType, kFileTypeArray } from './symbols.js';
import type { ConstructorOptions } from 'sc4/types';
import type Stream from './stream.js';
import Box3 from './box-3.js';
import TractInfo from './tract-info.js';
import type { Vector3Like } from './vector-3.js';
import type SimulatorDate from './simulator-date.js';
import TGI from './tgi.js';
type Timing = {
interval: number;
duration: number;
start: SimulatorDate;
end: SimulatorDate;
};
export default class Prop {
static [kFileType]: 695708231;
static [kFileTypeArray]: boolean;
crc: number;
mem: number;
major: number;
minor: number;
zot: number;
unknown1: number;
appearance: number;
unknown2: number;
tract: TractInfo;
sgprops: SGProp[];
tgi: TGI<number>;
IID1: number;
bbox: Box3;
orientation: number;
state: number;
start: number;
stop: number;
timing: Timing | null;
chance: number;
lotType: number;
OID: number;
condition: number;
constructor(opts?: ConstructorOptions<Prop>);
move(offset: Vector3Like): void;
parse(rs: Stream): this;
toBuffer(): Uint8Array<ArrayBufferLike>;
}
export {};