Skip to content

DetailContext beta ​

Interface of @v12-engine/client

ts
export interface DetailContext

Everything the picker knows of a thing as it picks its level: for DetailLevel.when and DetailLook.pick. One object, filled again for each thing: keep nothing of it

Members ​

distance ​

ts
distance: number;

How far its middle is from the camera, in cells, and how tall it is on the screen, in pixels at the screen's size

hour ​

ts
hour: number;

The hour of the day, as the daylight has it

hovered ​

ts
hovered: boolean;

Whether the pointer is over the thing

important ​

ts
important: boolean;

Whether the game marked the thing important (DetailLook.important), which keeps it at full

pixels ​

ts
pixels: number;

How tall the thing is on the screen, in pixels

regions ​

ts
regions: readonly string[];

The names of the map's regions the camera is over

scale ​

ts
scale: number;

What every from is multiplied by now (the quality's, the map's or the game's scale), and the hour

selected ​

ts
selected: boolean;

Whether the thing is selected, hovered, or marked important by the game (DetailLook.important)

target ​

ts
target: DetailTarget;

The thing: an entity (a unit, a building, a tree) or a doodad, its model and kind

zoom ​

ts
zoom: number;

How high the camera is over the ground, and the regions it is over, by name