UnitHudContext beta
Interface of @v12-engine/client
ts
export interface UnitHudContextWhat a plate function is told besides the unit
Members
all
ts
all: boolean;Whether everyone's bars are asked for, as the setting all
default
ts
default(): UnitHudPlate | null;The plate the client would give the unit: to start from, or to fall back on
distance
ts
distance: number | undefined;Cells from the camera to the plate's place over the unit: undefined where the camera is not known
hovered
ts
hovered: boolean;Whether the unit is under the pointer
relation
ts
relation: HudRelation;What the player at this screen is to the unit's owner
remembered
ts
remembered: boolean;A building under the fog the player remembers as it was last seen: not in sight now
selected
ts
selected: boolean;Whether the unit is selected, under the pointer, and whether everyone's bars are asked for
state
ts
state: GameState;The game state the plate is worked out from