Skip to content

UnitHudEntry beta ​

Interface of @v12-engine/client

ts
export interface UnitHudEntry

A unit in view, where its head is on the screen, for a system of the game's own (GameView.units.hud.system)

Members ​

def ​

ts
def: UnitHudDef | null;

The HUD the client would give it, as declared (set for it, its type's, the game's, the client's plate as a def of one): for a system of the game's own to draw what the game declared its own way. null for none

entity ​

ts
entity: EntityView;

The unit in view

hovered ​

ts
hovered: boolean;

Whether the unit is under the pointer

plate ​

ts
plate: UnitHudPlate | null;

The plate of def the client would draw now, for who looks, from how far, in its state: null for none

remembered ​

ts
remembered: boolean;

A building under the fog the player remembers, not in sight now

selected ​

ts
selected: boolean;

Whether the unit is selected

x ​

ts
x: number;

Over its head, in CSS pixels of the overlay

y ​

ts
y: number;

How far down the screen the plate's place over its head is, CSS pixels of the overlay