Skip to content

KeySettings beta ​

Interface of @v12-engine/client

ts
export interface KeySettings

The keys of a hero, which are on no button of the card: each is an action the player can put elsewhere (hero.ability.1…, hero.spell.1…, hero.shop). A key is written as the letter it is on a QWERTY keyboard

Members ​

abilities ​

ts
abilities?: string[];

Keys of what a hero learns, in the order its type lists them. Their own hotkey when left out

actions ​

ts
actions?: GameActions<GameClientApi>;

What the keys and the pointer's buttons do, by name (see client.keys): actions of the game's own, each with the keys it comes with and what it does; the client's it leaves out; and what it changes of the client's (other keys, other words). The player puts any of them on keys of their own

shop ​

ts
shop?: string;

The key that opens the shop a hero stands at. None when left out

spells ​

ts
spells?: string[];

Keys of the spells a hero brings along, in order