DetailContext beta
Interface of @v12-engine/client
export interface DetailContextEverything 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
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
hour: number;The hour of the day, as the daylight has it
hovered
hovered: boolean;Whether the pointer is over the thing
important
important: boolean;Whether the game marked the thing important (DetailLook.important), which keeps it at full
pixels
pixels: number;How tall the thing is on the screen, in pixels
regions
regions: readonly string[];The names of the map's regions the camera is over
scale
scale: number;What every from is multiplied by now (the quality's, the map's or the game's scale), and the hour
selected
selected: boolean;Whether the thing is selected, hovered, or marked important by the game (DetailLook.important)
target
target: DetailTarget;The thing: an entity (a unit, a building, a tree) or a doodad, its model and kind
zoom
zoom: number;How high the camera is over the ground, and the regions it is over, by name