sc4
Version:
A command line utility for automating SimCity 4 modding tasks & modifying savegames
48 lines (47 loc) • 1.25 kB
TypeScript
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 Color from './color.js';
export default class LotBaseTexture {
static [kFileType]: 3380582524;
static [kFileTypeArray]: boolean;
crc: number;
mem: number;
major: number;
minor: number;
u1: number;
u2: number;
u3: number;
u4: number;
u5: number;
tract: TractInfo;
u6: number;
u7: number;
u8: number;
u9: number;
bbox: Box3;
u10: number;
textures: Texture[];
constructor(opts?: ConstructorOptions<LotBaseTexture>);
move(offset: Vector3Like): this;
parse(rs: Stream): void;
toBuffer(): Uint8Array<ArrayBufferLike>;
add(opts: ConstructorOptions<Texture>): Texture;
}
declare class Texture {
IID: number;
x: number;
z: number;
orientation: number;
priority: number;
color: Color;
u6: number;
u7: number;
constructor(opts?: ConstructorOptions<Texture>);
parse(rs: Stream): this;
toBuffer(): Uint8Array<ArrayBufferLike>;
}
export {};