Say型
リファレンスの説明と例は英語です。見出しと目次は日本語です。
A line of words to be said in the player's language: a key of KARAKURI_STRINGS and the values for its {name}s.
インポート
import type { Say } from "@johnmorrisdotca/karakuri/play";
ほかのエクスポート元: @johnmorrisdotca/karakuri
定義
interface Say {
key: string;
values?: Record<string, string | number>;
}
メンバー
| 名前 | 型 | 説明 |
|---|---|---|
key | string | |
values (省略可) | Record<string, string | number> | undefined |
例
import { createController } from "@johnmorrisdotca/karakuri/play";
import type { Say } from "@johnmorrisdotca/karakuri/play";
const controller=createController("tube-sort",1);
const value: Say = controller.info;
console.log(value);{ key: 'tubePours', values: { n: 0 } }出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。