Skip to content

MessageWords beta ​

TypeAlias of @v12-engine/client

ts
export type MessageWords = string | ((params: MessageParams, registry: Registry, viewer: MessageViewer) => string);

The words for a message (see Message in the engine): text where {param} stands for a param, or a function for anything more, like turning ids into names. The registry is the game's, to look names up in, and the viewer is who reads them (their race)