HudDescribeContext beta
Interface of @v12-engine/client
ts
export interface HudDescribeContextWhat a describer is given each time the HUD updates: the game as the client knows it, what is selected, the HUD's words, the keys
Members
key
ts
key(action: string): string;The key an action is on (client.keys), as a button shows it: empty where none is
selected
ts
readonly selected: readonly EntityView[];What is selected, in its order
session
ts
readonly session: GameSession;The session the game runs in, for what the state does not hold
state
ts
readonly state: GameState;The game as the client knows it: the entities, as the local player sees them
words
ts
readonly words: HudWords;The HUD's words, as the view has them (GameView.hud.words)
wordsOf
ts
wordsOf(message: Message | undefined): string | undefined;A message of the rules, in the game's words (GameView.hud.messages)