UnitHudWhen beta
Interface of @v12-engine/client
ts
export interface UnitHudWhenWhen a plate of a unit's HUD is the one (UnitHudPlate.when): every field said must hold. By what the player at this screen is to the unit, the unit's state, or a function
Members
asleep
ts
asleep?: boolean;A creep sleeping through the night
constructing
ts
constructing?: boolean;Being built
hovered
ts
hovered?: boolean;Under the pointer
hurt
ts
hurt?: boolean;Below its whole health
of
ts
of?: (entity: EntityView, context: UnitHudContext) => boolean;The game's own test, asked every frame for each unit in view: a plate with one is not picked from the kept pick
relation
ts
relation?: readonly HudRelation[];What the player at this screen is to the unit's owner: one of these
remembered
ts
remembered?: boolean;A building under the fog that the player remembers, not in sight now (see UnitHudDef.remembered)
selected
ts
selected?: boolean;Selected by the player at this screen