PrefabModel beta
Interface of @v12-engine/editor
ts
export interface PrefabModelOne model of a prefab about to be put down: a building by its type, or scenery by its model, where it would stand, which way it faces (radians, as entities do) and how big, and whether the place suits it
Members
fits
ts
fits: boolean;Whether the place suits the model; it is drawn tinted when it does not
model
ts
model?: string;Scenery, by its path in models/
scale
ts
scale: [number, number, number];How big the model is drawn, along x, y and z
type
ts
type?: string;A building of the game's, drawn with the model its type has
x
ts
x: number;Where the model would stand, along x, in cells
y
ts
y?: number;How high above the ground under it
yaw
ts
yaw: number;Which way the model faces, in radians
z
ts
z: number;Where the model would stand, along z, in cells